Re: [RFC v2 13/22] intel_iommu: add PASID cache management infrastructure

2019-11-07 Thread Peter Xu
On Wed, Nov 06, 2019 at 07:56:21AM +, Liu, Yi L wrote: > > > +static inline struct pasid_key *vtd_get_pasid_key(uint32_t pasid, > > > + uint16_t sid) > > > +{ > > > +struct pasid_key *key = g_malloc0(sizeof(*key)); > > > > I think you can

RE: [RFC v2 13/22] intel_iommu: add PASID cache management infrastructure

2019-11-05 Thread Liu, Yi L
> From: Peter Xu [mailto:pet...@redhat.com] > Sent: Tuesday, November 5, 2019 4:07 AM > To: Liu, Yi L > Subject: Re: [RFC v2 13/22] intel_iommu: add PASID cache management > infrastructure > > On Thu, Oct 24, 2019 at 08:34:34AM -0400, Liu Yi L wrote: > > This patch ad

Re: [RFC v2 13/22] intel_iommu: add PASID cache management infrastructure

2019-11-04 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:34AM -0400, Liu Yi L wrote: > This patch adds a PASID cache management infrastructure based on > new added structure VTDPASIDAddressSpace, which is used to track > the PASID usage and future PASID tagged DMA address translation > support in vIOMMU. > > struct

Re: [RFC v2 13/22] intel_iommu: add PASID cache management infrastructure

2019-11-04 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:34AM -0400, Liu Yi L wrote: > This patch adds a PASID cache management infrastructure based on > new added structure VTDPASIDAddressSpace, which is used to track > the PASID usage and future PASID tagged DMA address translation > support in vIOMMU. > > struct

[RFC v2 13/22] intel_iommu: add PASID cache management infrastructure

2019-10-24 Thread Liu Yi L
This patch adds a PASID cache management infrastructure based on new added structure VTDPASIDAddressSpace, which is used to track the PASID usage and future PASID tagged DMA address translation support in vIOMMU. struct VTDPASIDAddressSpace { VTDBus *vtd_bus; uint8_t devfn;