RE: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context callback

2020-03-25 Thread Liu, Yi L
> From: Peter Xu > Sent: Tuesday, March 24, 2020 11:24 PM > To: Liu, Yi L > Subject: Re: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context > callback > > On Tue, Mar 24, 2020 at 11:15:24AM +, Liu, Yi L wrote: > > [...] > > > > > struc

Re: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context callback

2020-03-24 Thread Peter Xu
On Tue, Mar 24, 2020 at 11:15:24AM +, Liu, Yi L wrote: [...] > > > struct VTDIOTLBEntry { > > > @@ -271,6 +282,8 @@ struct IntelIOMMUState { > > > /* > > > * Protects IOMMU states in general. Currently it protects the > > > * per-IOMMU IOTLB cache, and context entry cache

RE: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context callback

2020-03-24 Thread Liu, Yi L
> From: Peter Xu > Sent: Tuesday, March 24, 2020 5:29 AM > To: Liu, Yi L > Subject: Re: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context > callback > > On Sun, Mar 22, 2020 at 05:36:04AM -0700, Liu Yi L wrote: > > This patch adds set/unset_iommu_context

Re: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context callback

2020-03-23 Thread Peter Xu
On Sun, Mar 22, 2020 at 05:36:04AM -0700, Liu Yi L wrote: > This patch adds set/unset_iommu_context() impelementation in Intel > vIOMMU. For Intel platform, pass-through modules (e.g. VFIO) could > set HostIOMMUContext to Intel vIOMMU emulator. > > Cc: Kevin Tian > Cc: Jacob Pan > Cc: Peter Xu

[PATCH v1 07/22] intel_iommu: add set/unset_iommu_context callback

2020-03-22 Thread Liu Yi L
This patch adds set/unset_iommu_context() impelementation in Intel vIOMMU. For Intel platform, pass-through modules (e.g. VFIO) could set HostIOMMUContext to Intel vIOMMU emulator. Cc: Kevin Tian Cc: Jacob Pan Cc: Peter Xu Cc: Yi Sun Cc: Paolo Bonzini Cc: Richard Henderson Cc: Eduardo