Skip to content

Commit 0097f9d

Browse files
committed
Merge tag 'kvm-x86-svm-6.17' of https://github.com/kvm-x86/linux into HEAD
KVM SVM changes for 6.17 Drop KVM's rejection of SNP's SMT and single-socket policy restrictions, and instead rely on firmware to verify that the policy can actually be supported. Don't bother checking that requested policy(s) can actually be satisfied, as an incompatible policy doesn't put the kernel at risk in any way, and providing guarantees with respect to the physical topology is outside of KVM's purview.
2 parents b4733cd + 24be2b7 commit 0097f9d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/x86/kvm/svm/sev.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,11 +2135,7 @@ static int snp_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp)
21352135
return -EINVAL;
21362136

21372137
/* Check for policy bits that must be set */
2138-
if (!(params.policy & SNP_POLICY_MASK_RSVD_MBO) ||
2139-
!(params.policy & SNP_POLICY_MASK_SMT))
2140-
return -EINVAL;
2141-
2142-
if (params.policy & SNP_POLICY_MASK_SINGLE_SOCKET)
2138+
if (!(params.policy & SNP_POLICY_MASK_RSVD_MBO))
21432139
return -EINVAL;
21442140

21452141
sev->policy = params.policy;

0 commit comments

Comments
 (0)