aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-04-20 08:55:40 -0400
committerAvi Kivity <avi@redhat.com>2011-05-22 08:39:22 -0400
commit5197b808a7f459f9c7436573c7785ff3c1324c08 (patch)
tree65e0671f42093a5d8908259760d440f27164eb69 /arch/x86/kvm
parentbcaf5cc543bdb8f61fc3ce09944e0ecde2966595 (diff)
KVM: Avoid using x86_emulate_ctxt.vcpu
We can use container_of() instead. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 5d853d540f95..65a5b0c545aa 100644
--- 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)
4366static void emulator_get_fpu(struct x86_emulate_ctxt *ctxt) 4366static void emulator_get_fpu(struct x86_emulate_ctxt *ctxt)
4367{ 4367{
4368 preempt_disable(); 4368 preempt_disable();
4369 kvm_load_guest_fpu(ctxt->vcpu); 4369 kvm_load_guest_fpu(emul_to_vcpu(ctxt));
4370 /* 4370 /*
4371 * CR0.TS may reference the host fpu state, not the guest fpu state, 4371 * CR0.TS may reference the host fpu state, not the guest fpu state,
4372 * so it may be clear at this point. 4372 * so it may be clear at this point.