Re: [PATCH v2 5/8] KVM: SEV: Prefer WBNOINVD over WBINVD for cache maintenance efficiency

From: Francesco Lavra
Date: Sun May 18 2025 - 05:52:22 EST


On 2025-05-16 at 21:28, Sean Christopherson wrote:
> @@ -3901,7 +3908,7 @@ void sev_snp_init_protected_guest_state(struct
> kvm_vcpu *vcpu)
>   * From this point forward, the VMSA will always be a guest-
> mapped page
>   * rather than the initial one allocated by KVM in svm-
> >sev_es.vmsa. In
>   * theory, svm->sev_es.vmsa could be free'd and cleaned up here,
> but
> - * that involves cleanups like wbinvd_on_all_cpus() which would
> ideally
> + * that involves cleanups like flushing caches, which would
> ideally be
>   * be handled during teardown rather than guest boot. Deferring
> that

Duplicate "be"