]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Replace kvm_set_cr0 with vmx_set_cr0 in load_vmcs12_host_state
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 3 Sep 2013 19:11:45 +0000 (21:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2013 17:12:13 +0000 (19:12 +0200)
commit9c30e36a3dac8e44f4a3ce9e48e0df43ca248ff0
tree1669e0f1ffedce4701b5eb9b2e85ef45509d2339
parenta623bbe5ee46ffda7015cd8c619e914ef730b06b
KVM: nVMX: Replace kvm_set_cr0 with vmx_set_cr0 in load_vmcs12_host_state

kvm_set_cr0 performs checks on the state transition that may prevent
loading L1's cr0. For now we rely on the hardware to catch invalid
states loaded by L1 into its VMCS. Still, consistency checks on the host
state part of the VMCS on guest entry will have to be improved later on.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c