kvm: nVMX: Enforce cpl=0 for VMX instructions
authorFelix Wilhelm <fwilhelm@google.com>
Mon, 11 Jun 2018 07:43:44 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Jun 2018 07:45:15 +0000 (09:45 +0200)
commitb1bd9caf5e98d8111361f53367fece3444b0a7c2
tree64fc32ab6da33164a19ff475571e1cf37b12e3b9
parent3d2f03393267d42bdd8612ac1db265ee6591d14e
kvm: nVMX: Enforce cpl=0 for VMX instructions

commit 727ba748e110b4de50d142edca9d6a9b7e6111d8 upstream.

VMX instructions executed inside a L1 VM will always trigger a VM exit
even when executed with cpl 3. This means we must perform the
privilege check in software.

Fixes: 70f3aac964ae("kvm: nVMX: Remove superfluous VMX instruction fault checks")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Wilhelm <fwilhelm@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c