]> 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>
Mon, 19 Jan 2026 12:09:53 +0000 (13:09 +0100)
commitfd4c14c7b77201f67b701b8d4343809d8a05c7cc
tree5401a03067ccf26a17133c3e137d837337a37905
parentd8c44d566187431bd572660a314eb9ae7767691a
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