RE: [PATCH v1 15/22] intel_iommu: replay guest pasid bindings to host

2020-03-25 Thread Liu, Yi L
ger.kernel.org; > Wu, > Hao ; jean-phili...@linaro.org; Jacob Pan > ; Yi Sun ; Richard > Henderson > Subject: Re: [PATCH v1 15/22] intel_iommu: replay guest pasid bindings to host > > On Wed, Mar 25, 2020 at 01:14:26PM +, Liu, Yi L wrote: > > [...] > > >

Re: [PATCH v1 15/22] intel_iommu: replay guest pasid bindings to host

2020-03-25 Thread Peter Xu
On Wed, Mar 25, 2020 at 01:14:26PM +, Liu, Yi L wrote: [...] > > > +/** > > > + * Caller of this function should hold iommu_lock. > > > + */ > > > +static bool vtd_sm_pasid_table_walk_one(IntelIOMMUState *s, > > > +dma_addr_t pt_base, > > > +

RE: [PATCH v1 15/22] intel_iommu: replay guest pasid bindings to host

2020-03-25 Thread Liu, Yi L
> From: Peter Xu > Sent: Wednesday, March 25, 2020 2:00 AM > To: Liu, Yi L > Subject: Re: [PATCH v1 15/22] intel_iommu: replay guest pasid bindings to host > > On Sun, Mar 22, 2020 at 05:36:12AM -0700, Liu Yi L wrote: > > This patch adds guest pasid bindings replay

Re: [PATCH v1 15/22] intel_iommu: replay guest pasid bindings to host

2020-03-24 Thread Peter Xu
On Sun, Mar 22, 2020 at 05:36:12AM -0700, Liu Yi L wrote: > This patch adds guest pasid bindings replay for domain > selective pasid cache invalidation(dsi) and global pasid > cache invalidation by walking guest pasid table. > > Reason: > Guest OS may flush the pasid cache with a larger granularit