KVM: VMX: Don't switch 64-bit msrs for 32-bit guests
authorAvi Kivity <avi@qumranet.com>
Thu, 19 Apr 2007 10:22:48 +0000 (13:22 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:30 +0000 (10:52 +0300)
commite38aea3e9330624d19a233c05f3e69c57519edd5
tree68daabdafa535043ab68d01b80642fbf6a4c0977
parent2345df8c555ecb92c0c36172c07d5ac321a92dc7
KVM: VMX: Don't switch 64-bit msrs for 32-bit guests

Some msrs are only used by x86_64 instructions, and are therefore
not needed when the guest is legacy mode.  By not bothering to switch
them, we reduce vmexit latency by 2400 cycles (from about 8800) when
running a 32-bt guest on a 64-bit host.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c