We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf371f commit 48f15f6Copy full SHA for 48f15f6
arch/x86/kvm/svm/sev.c
@@ -4449,8 +4449,12 @@ static void sev_es_init_vmcb(struct vcpu_svm *svm)
4449
* the VMSA will be NULL if this vCPU is the destination for intrahost
4450
* migration, and will be copied later.
4451
*/
4452
- if (svm->sev_es.vmsa && !svm->sev_es.snp_has_guest_vmsa)
4453
- svm->vmcb->control.vmsa_pa = __pa(svm->sev_es.vmsa);
+ if (!svm->sev_es.snp_has_guest_vmsa) {
+ if (svm->sev_es.vmsa)
4454
+ svm->vmcb->control.vmsa_pa = __pa(svm->sev_es.vmsa);
4455
+ else
4456
+ svm->vmcb->control.vmsa_pa = INVALID_PAGE;
4457
+ }
4458
4459
if (cpu_feature_enabled(X86_FEATURE_ALLOWED_SEV_FEATURES))
4460
svm->vmcb->control.allowed_sev_features = sev->vmsa_features |
0 commit comments