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

Francesco Lavra francescolavra.fl at gmail.com
Sun May 18 09:52:07 UTC 2025


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"


More information about the dri-devel mailing list