Re: [PATCH v5] KVM: VMX: Execute WBINVD to keep data consistency with assigned devices

Roedel, Joerg
2010-06-29T13:38:56Z

On Tue, Jun 29, 2010 at 08:35:35AM -0400, Avi Kivity wrote:
> On 06/29/2010 03:28 PM, Roedel, Joerg wrote:
>
> The flag indicates to kvm that it doesn't need to worry about iommu
> cache coherency issues (for example, it can ignore wbinvd), so it needs
> to be set. THe following code
>
> if (iommu_domain_has_cap(kvm->arch.iommu_domain,
> IOMMU_CAP_CACHE_COHERENCY))
> kvm->arch.iommu_flags |= KVM_IOMMU_CACHE_COHERENCY;
>
> does this, so it looks like you need to return true for
> iommu_domain_has_cap() after the change. So far only the intel iommu
> supports it.

Ah ok, good to know. Thanks.

Joerg