Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5197b808 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Avoid using x86_emulate_ctxt.vcpu



We can use container_of() instead.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent bcaf5cc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.