lkml.org 
[lkml]   [2024]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v13 16/26] KVM: SEV: Support SEV-SNP AP Creation NAE event
On Thu, Apr 18, 2024 at 9:45 PM Michael Roth <michael.roth@amd.com> wrote:
> * the VMSA will be NULL if this vCPU is the destination for intrahost
> * migration, and will be copied later.
> */
> - if (svm->sev_es.vmsa)
> + if (!svm->sev_es.snp_has_guest_vmsa)
> svm->vmcb->control.vmsa_pa = __pa(svm->sev_es.vmsa);
>
> /* Can't intercept CR register access, HV can't modify CR registers */

This needs to be svm->sev_es.vmsa && ... (see existing comment above the "if").

Paolo


\
 
 \ /
  Last update: 2024-05-27 16:47    [W:0.222 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site