KVM: VMX: skip vmx->rmode.vm86_active check on cr0 write if unrestricted guest is...
authorGleb Natapov <gleb@redhat.com>
Mon, 21 Jan 2013 13:36:45 +0000 (15:36 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 24 Jan 2013 02:40:28 +0000 (00:40 -0200)
commit218e763f458c44f30041c1b48b4371e130fd4317
tree60c7a2053174f650133468f69836e3a56e0795d6
parent286da4156dc65c8a054580fdd96b7709132dce8d
KVM: VMX: skip vmx->rmode.vm86_active check on cr0 write if unrestricted guest is enabled

vmx->rmode.vm86_active is never true is unrestricted guest is enabled.
Make it more explicit that neither enter_pmode() nor enter_rmode() is
called in this case.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c