]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: check descriptor table exits on instruction emulation
authorOliver Upton <oupton@google.com>
Sat, 29 Feb 2020 19:30:14 +0000 (11:30 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 1 Mar 2020 18:26:31 +0000 (19:26 +0100)
commitf3ed4f5a1bb3c7d1594ac5e831004f42114f4152
tree7679ea76c6ff795ed0d53bc755aa43d77b4ce7a5
parent2de9734d95d4dc6e77f20a992c75765ba99aa881
KVM: VMX: check descriptor table exits on instruction emulation

KVM emulates UMIP on hardware that doesn't support it by setting the
'descriptor table exiting' VM-execution control and performing
instruction emulation. When running nested, this emulation is broken as
KVM refuses to emulate L2 instructions by default.

Correct this regression by allowing the emulation of descriptor table
instructions if L1 hasn't requested 'descriptor table exiting'.

Fixes: 742795a47032 ("KVM: nVMX: Don't emulate instructions in guest mode")
Reported-by: Jan Kiszka <jan.kiszka@web.de>
Cc: stable@vger.kernel.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c