]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Ensure SPEC_CTRL[63:32] is context switched between guest and host
authorUros Bizjak <ubizjak@gmail.com>
Thu, 6 Nov 2025 19:12:30 +0000 (11:12 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 6 Nov 2025 20:35:51 +0000 (12:35 -0800)
commitc331b400e291a510eb9a0dbdc783b38e6f8321f0
treee20a0bc126e7a0c26e40a35d3876877c2fe52fe7
parent3d80f4c93d3d26d0f9a0dd2844961a632eeea634
KVM: SVM: Ensure SPEC_CTRL[63:32] is context switched between guest and host

SPEC_CTRL is an MSR, i.e. a 64-bit value, but the VMRUN assembly code
assumes bits 63:32 are always zero.  The bug is _currently_ benign because
neither KVM nor the kernel support setting any of bits 63:32, but it's
still a bug that needs to be fixed.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Suggested-by: Sean Christopherson <seanjc@google.com>
Co-developed-by: Sean Christopherson <seanjc@google.com>
Link: https://patch.msgid.link/20251106191230.182393-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/vmenter.S