From: Avi Kivity Date: Wed, 20 Apr 2011 12:55:40 +0000 (+0300) Subject: KVM: Avoid using x86_emulate_ctxt.vcpu X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5197b808a7f459f9c7436573c7785ff3c1324c08;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git KVM: Avoid using x86_emulate_ctxt.vcpu We can use container_of() instead. Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 5d853d540f9..65a5b0c545a 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) 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.