Re: [PATCH] x86,kvm: move qemu/guest FPU switching out to vcpu_run
From: Paolo Bonzini
Date: Tue Nov 14 2017 - 13:09:44 EST
On 14/11/2017 19:07, Rik van Riel wrote:
> My question is, can the in-kernel emulator code ever
> be called from OUTSIDE the KVM_RUN ioctl loop?
No, it can't. This makes the patch much more appealing...
> If so, we need to restore the user FPU context before
> returning from the emulator code. Given that the current
> emulator code does not do that, I suspect this is not
> the case. I also see no path from the kvm ioctl into
> the emulator code, other than via KVM_RUN.
> The FPU and XSAVE ioctls all work on the saved
> vcpu->arch.guest_fpu data, and never directly on the
Description: OpenPGP digital signature