KVM: VMX: Fix cr8 exiting control clobbering by EPT
authorGleb Natapov <gleb@redhat.com>
Thu, 27 Aug 2009 15:41:30 +0000 (18:41 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:57 +0000 (10:46 +0300)
commit5fff7d270bd6a4759b6d663741b729cdee370257
tree9d80d9aa7e949a60488f9d16145e7054fc0d9968
parent60f24784a92c25c269a5e741a8ce8ff63e887be8
KVM: VMX: Fix cr8 exiting control clobbering by EPT

Don't call adjust_vmx_controls() two times for the same control.
It restores options that were dropped earlier.  This loses us the cr8
exit control, which causes a massive performance regression Windows x64.

Cc: stable@kernel.org
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c