]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Add nested msr load/restore algorithm
authorWincy Van <fanwenyi0529@gmail.com>
Thu, 11 Dec 2014 05:52:58 +0000 (08:52 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Jan 2015 21:45:14 +0000 (22:45 +0100)
commit5013262e3e0ffcd61ead6c0d69e9a520e78c70e7
tree8c3bcd9e4076404fa9a899b47ce321c716296e32
parent981369db3df4f6e821d3554bc0046723423683ef
KVM: nVMX: Add nested msr load/restore algorithm

Several hypervisors need MSR auto load/restore feature.
We read MSRs from VM-entry MSR load area which specified by L1,
and load them via kvm_set_msr in the nested entry.
When nested exit occurs, we get MSRs via kvm_get_msr, writing
them to L1`s MSR store area. After this, we read MSRs from VM-exit
MSR load area, and load them via kvm_set_msr.

Signed-off-by: Wincy Van <fanwenyi0529@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/uapi/asm/vmx.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c