projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcaf5cc
)
KVM: Avoid using x86_emulate_ctxt.vcpu
author
Avi Kivity
<avi@redhat.com>
Wed, 20 Apr 2011 12:55:40 +0000
(15:55 +0300)
committer
Avi Kivity
<avi@redhat.com>
Sun, 22 May 2011 12:39:22 +0000
(08:39 -0400)
We can use container_of() instead.
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index 5d853d540f95528bcb17fb05832fdbeda04590b1..65a5b0c545aaae9aac6f6488beddd994d99e8ad0 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-4366,7
+4366,7
@@
static void emulator_halt(struct x86_emulate_ctxt *ctxt)
static void emulator_get_fpu(struct x86_emulate_ctxt *ctxt)
{
preempt_disable();
- kvm_load_guest_fpu(
ctxt->vcpu
);
+ kvm_load_guest_fpu(
emul_to_vcpu(ctxt)
);
/*
* CR0.TS may reference the host fpu state, not the guest fpu state,
* so it may be clear at this point.