KVM: VMX: Add facility to atomically switch MSRs on guest entry/exit
authorAvi Kivity <avi@redhat.com>
Wed, 28 Apr 2010 13:40:38 +0000 (16:40 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 19 May 2010 08:36:31 +0000 (11:36 +0300)
commit61d2ef2ce3e0161bedf5d2867f546a8df77fa9bc
treed1e3423bac53d2222b4c607e15b29c6e7f9b546a
parent5dfa3d170e17cbf9e4816a5ba2f5913c31c03e93
KVM: VMX: Add facility to atomically switch MSRs on guest entry/exit

Some guest msr values cannot be used on the host (for example. EFER.NX=0),
so we need to switch them atomically during guest entry or exit.

Add a facility to program the vmx msr autoload registers accordingly.

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