]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:24:43 +0000 (09:24 +0200)
commit8b31e1ea3857e546d0d7f3431f4b44873cdb3787
treea404a8db60b796cf6762a3b3cd1b902b48c93aee
parentdd8d251d748e5b4f16ca2aced605b2b78c08cec8
KVM: nVMX: Leave most VM-Exit info fields unmodified on failed VM-Entry

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit c3634d25fbee88e2368a8e0903ae0d0670eb9e71 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/kvm/vmx/nested.c