Commit e94caf0
Maxim Levitsky
KVM: SVM: Disable interception of SPEC_CTRL iff the MSR exists for the guest
JIRA: https://issues.redhat.com/browse/RHEL-47242
commit 674ffc6
Author: Sean Christopherson <seanjc@google.com>
Date: Tue Jun 10 15:57:06 2025 -0700
KVM: SVM: Disable interception of SPEC_CTRL iff the MSR exists for the guest
Disable interception of SPEC_CTRL when the CPU virtualizes (i.e. context
switches) SPEC_CTRL if and only if the MSR exists according to the vCPU's
CPUID model. Letting the guest access SPEC_CTRL is generally benign, but
the guest would see inconsistent behavior if KVM happened to emulate an
access to the MSR.
Fixes: d00b99c ("KVM: SVM: Add support for Virtual SPEC_CTRL")
Reported-by: Chao Gao <chao.gao@intel.com>
Link: https://lore.kernel.org/r/20250610225737.156318-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>1 parent fef417b commit e94caf0
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
1360 | | - | |
1361 | | - | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1362 | 1363 | | |
1363 | 1364 | | |
1364 | | - | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1365 | 1368 | | |
1366 | 1369 | | |
1367 | 1370 | | |
| |||
0 commit comments