KVM: nVMX: Leave most VM-Exit info fields unmodified on failed VM-Entry
authorSean Christopherson <seanjc@google.com>
Thu, 7 Apr 2022 00:23:14 +0000 (00:23 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Apr 2022 17:37:46 +0000 (13:37 -0400)
commitc3634d25fbee88e2368a8e0903ae0d0670eb9e71
treecbb301da65acd972d521a98b7530f0e2746fe42b
parent45846661d10422ce9e22da21f8277540b29eca22
KVM: nVMX: Leave most VM-Exit info fields unmodified on failed VM-Entry

Don't modify vmcs12 exit fields except EXIT_REASON and EXIT_QUALIFICATION
when performing a nested VM-Exit due to failed VM-Entry.  Per the SDM,
only the two aformentioned fields are filled and "All other VM-exit
information fields are unmodified".

Fixes: 4704d0befb07 ("KVM: nVMX: Exiting from L2 to L1")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220407002315.78092-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c