]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit520c3ab31f5fb3a10317d4b8777ec96c098f6bde
treecbb301da65acd972d521a98b7530f0e2746fe42b
parentb510b92dea5ddb7e07858bf35abde980aa19d590
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: 42b15bc4fa21 ("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