]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:23 +0000 (10:14 +0100)
commit35ddb0b6240060cc4e70ea1774cd2892106469e1
tree14a87ef11dac23188bf26024e5063ae5e0f5e25f
parentde39f5a4be1376d97c1276ee2d0cff0ca250aeaa
KVM: nSVM: Clear exit_code_hi in VMCB when synthesizing nested VM-Exits

commit da01f64e7470988f8607776aa7afa924208863fb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h