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)
commita0d4f8034446df402a879dac04cab61f71c4fafc
tree9c366d29a4903eddd2c47661b561d29665eb7808
parente53d88af63ab4104e1226b8f9959f1e9903da10b
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