KVM: VMX: Fix cr8 exiting control clobbering by EPT
commite38c35b0881a7706b3cbedd7cfe5165fb0371442
authorGleb Natapov <gleb@redhat.com>
Fri, 18 Sep 2009 23:08:00 +0000 (18 20:08 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 15:27:52 +0000 (5 08:27 -0700)
treedf41595323c15fd72ce72696384b7edb2c105123
parent0373fc0c209db541ec115700fbdb50e85b774a02
KVM: VMX: Fix cr8 exiting control clobbering by EPT

(cherry picked from commit 5fff7d270bd6a4759b6d663741b729cdee370257)
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.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/vmx.c