]> git.baikalelectronics.ru Git - kernel.git/commit
kvm, vmx: Fix lazy FPU on nested guest
authorAnthoine Bourgeois <bourgeois@bertin.fr>
Wed, 13 Nov 2013 10:45:37 +0000 (11:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2013 17:46:54 +0000 (18:46 +0100)
commitdcc1ab55a262e5aa3fd88bc68c19b9b3deaca6e0
tree57f2107cf25e8fb660042616fdd9022a52359855
parenta755924f6d9b59cb39e60a8e8cebe09b79492b70
kvm, vmx: Fix lazy FPU on nested guest

If a nested guest does a NM fault but its CR0 doesn't contain the TS
flag (because it was already cleared by the guest with L1 aid) then we
have to activate FPU ourselves in L0 and then continue to L2. If TS flag
is set then we fallback on the previous behavior, forward the fault to
L1 if it asked for.

Signed-off-by: Anthoine Bourgeois <bourgeois@bertin.fr>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c