Re: [PATCH 2/3] intel-iommu: drop VTDBus

2022-01-16 Thread Peter Xu
On Mon, Jan 17, 2022 at 09:27:03AM +0800, Peter Xu wrote: > On Fri, Jan 14, 2022 at 05:15:35PM +0800, Jason Wang wrote: > > > > 在 2022/1/14 上午10:32, Jason Wang 写道: > > > > > dressSpace *as) > > > > >   /* GHashTable functions */ > > > > >   static gboolean vtd_uint64_equal(gconstpointer v1,

Re: [PATCH 2/3] intel-iommu: drop VTDBus

2022-01-16 Thread Peter Xu
On Fri, Jan 14, 2022 at 05:15:35PM +0800, Jason Wang wrote: > > 在 2022/1/14 上午10:32, Jason Wang 写道: > > > > dressSpace *as) > > > >   /* GHashTable functions */ > > > >   static gboolean vtd_uint64_equal(gconstpointer v1, gconstpointer v2) > > > >   { > > > > -    return *((const uint64_t *)v1)

Re: [PATCH 2/3] intel-iommu: drop VTDBus

2022-01-14 Thread Jason Wang
在 2022/1/14 上午10:32, Jason Wang 写道: dressSpace *as)   /* GHashTable functions */   static gboolean vtd_uint64_equal(gconstpointer v1, gconstpointer v2)   { -    return *((const uint64_t *)v1) == *((const uint64_t *)v2); +    const struct vtd_as_key *key1 = v1; +    const struct vtd_as_key

Re: [PATCH 2/3] intel-iommu: drop VTDBus

2022-01-13 Thread Jason Wang
在 2022/1/13 下午12:12, Peter Xu 写道: On Wed, Jan 05, 2022 at 12:19:44PM +0800, Jason Wang wrote: We introduce VTDBus structure as an intermediate step for searching the address space. This works well with SID based matching/lookup. But when we want to support SID plus PASID based address space

Re: [PATCH 2/3] intel-iommu: drop VTDBus

2022-01-12 Thread Peter Xu
On Wed, Jan 05, 2022 at 12:19:44PM +0800, Jason Wang wrote: > We introduce VTDBus structure as an intermediate step for searching > the address space. This works well with SID based matching/lookup. But > when we want to support SID plus PASID based address space lookup, > this intermediate steps