]> git.baikalelectronics.ru Git - kernel.git/commit
KVM nVMX: MSRs should not be stored if VM-entry fails during or after loading guest...
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Wed, 5 Dec 2018 00:00:13 +0000 (19:00 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 17:00:01 +0000 (18:00 +0100)
commitab8286fc23d1e6a20909c1df221c60745bb08c67
tree9c366d29a4903eddd2c47661b561d29665eb7808
parent74dc14d804a28360ec26d708c295f7ae044e39aa
KVM nVMX: MSRs should not be stored if VM-entry fails during or after loading guest state

According to section "VM-entry Failures During or After Loading Guest State"
in Intel SDM vol 3C,

"No MSRs are saved into the VM-exit MSR-store area."

when bit 31 of the exit reason is set.

Reported-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Suggested-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c