KVM: VMX: Optimize vmx_get_cpl()
authorAvi Kivity <avi@redhat.com>
Mon, 7 Mar 2011 12:54:28 +0000 (14:54 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:56:54 +0000 (07:56 -0400)
commitf4c63e5d5a356b652a3d984edbefca289176c40f
tree90c505354b7c8562da59d67c8704da88904ca8f9
parent6de12732c42c7070af42e3d6e42ecee2838fc920
KVM: VMX: Optimize vmx_get_cpl()

In long mode, vm86 mode is disallowed, so we need not check for
it.  Reading rflags.vm may require a VMREAD, so it is expensive.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c