Skip to content
Commit e38aea3e authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@qumranet.com>
parent 2345df8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment