]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37a2e3f7758a3e8bdd70ee52cee532a316b147e7
treed1e3423bac53d2222b4c607e15b29c6e7f9b546a
parent9544095c2f69dd9462276bdee817f6529353e5c3
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