KVM: VMX: Avoid vmx_recover_nmi_blocking() when unneeded
authorAvi Kivity <avi@redhat.com>
Mon, 7 Mar 2011 14:52:07 +0000 (16:52 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:56:56 +0000 (07:56 -0400)
commit9d58b93192065f4b2ba6b880e9b0dab0bc11d0ba
tree819bc3357ebaa90854d90ffa2ab18948d9f5df39
parent69c730289011df706a1c9890d6e6c5ee822623c7
KVM: VMX: Avoid vmx_recover_nmi_blocking() when unneeded

When we haven't injected an interrupt, we don't need to recover
the nmi blocking state (since the guest can't set it by itself).
This allows us to avoid a VMREAD later on.

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