]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: nSVM: Clear exit_code_hi in VMCB when synthesizing nested VM-Exits
authorSean Christopherson <seanjc@google.com>
Thu, 13 Nov 2025 22:56:13 +0000 (14:56 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 4 Dec 2025 15:24:04 +0000 (07:24 -0800)
commitda01f64e7470988f8607776aa7afa924208863fb
tree425b4c4b62f2a4f7ce90bbbc061d38529b3e8b01
parentaf62fe2494da84eb01752282c8228c9bb3fe9f67
KVM: nSVM: Clear exit_code_hi in VMCB when synthesizing nested VM-Exits

Explicitly clear exit_code_hi in the VMCB when synthesizing "normal"
nested VM-Exits, as the full exit code is a 64-bit value (spoiler alert),
and all exit codes for non-failing VMRUN use only bits 31:0.

Cc: Jim Mattson <jmattson@google.com>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Cc: stable@vger.kernel.org
Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20251113225621.1688428-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h