Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-23 Thread Michael S. Tsirkin
On Fri, Apr 22, 2022 at 11:03:51AM -0400, Peter Xu wrote: > On Sat, Apr 02, 2022 at 07:27:15AM +, Tian, Kevin wrote: > > > > > > Earlier when Yi proposed Qemu changes for guest SVA [1] he aimed for > > > a > > > > > > coarse-grained knob design: > > > > > > -- > > > > > > Intel VT-d 3.0 intro

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-22 Thread Peter Xu
On Sat, Apr 02, 2022 at 07:27:15AM +, Tian, Kevin wrote: > > > > > Earlier when Yi proposed Qemu changes for guest SVA [1] he aimed for > > a > > > > > coarse-grained knob design: > > > > > -- > > > > > Intel VT-d 3.0 introduces scalable mode, and it has a bunch of > > capabilities > > > > >

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-05 Thread Jason Wang
On Sat, Apr 2, 2022 at 3:27 PM Tian, Kevin wrote: > > > From: Jason Wang > > Sent: Wednesday, March 30, 2022 4:32 PM > > > > > > > > > > > > > > If there is certain fault > > > > > triggered by a request with PASID, we do want to report this > > information > > > > > upward. > > > > > > > > I ten

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-05 Thread Jason Wang
On Sat, Apr 2, 2022 at 3:24 PM Tian, Kevin wrote: > > > From: Jason Wang > > Sent: Wednesday, March 30, 2022 4:32 PM > > > > On Wed, Mar 30, 2022 at 4:02 PM Tian, Kevin wrote: > > > > > > > From: Jason Wang > > > > Sent: Tuesday, March 29, 2022 12:49 PM > > > > > > > > On Mon, Mar 28, 2022 at 3

RE: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-02 Thread Tian, Kevin
> From: Jason Wang > Sent: Wednesday, March 30, 2022 4:32 PM > > > > > > > > > > If there is certain fault > > > > triggered by a request with PASID, we do want to report this > information > > > > upward. > > > > > > I tend to do it increasingly on top of this series (anyhow at least > > > RID2P

RE: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-02 Thread Tian, Kevin
> From: Jason Wang > Sent: Wednesday, March 30, 2022 4:32 PM > > On Wed, Mar 30, 2022 at 4:02 PM Tian, Kevin wrote: > > > > > From: Jason Wang > > > Sent: Tuesday, March 29, 2022 12:49 PM > > > > > > On Mon, Mar 28, 2022 at 3:03 PM Tian, Kevin > wrote: > > > > > > > > > From: Jason Wang > > >

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-01 Thread Jason Wang
On Fri, Apr 1, 2022 at 9:43 PM Yi Liu wrote: > > > > On 2022/3/29 12:54, Jason Wang wrote: > > > > 在 2022/3/28 下午4:45, Yi Liu 写道: > >> > >> > >> On 2022/3/21 13:54, Jason Wang wrote: > >>> This patch introduce ECAP_PASID via "x-pasid-mode". Based on the > >>> existing support for scalable mode, we

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-04-01 Thread Yi Liu
On 2022/3/29 12:54, Jason Wang wrote: 在 2022/3/28 下午4:45, Yi Liu 写道: On 2022/3/21 13:54, Jason Wang wrote: This patch introduce ECAP_PASID via "x-pasid-mode". Based on the existing support for scalable mode, we need to implement the following missing parts: 1) tag VTDAddressSpace with PA

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-30 Thread Jason Wang
On Wed, Mar 30, 2022 at 4:00 PM Tian, Kevin wrote: > > > From: Jason Wang > > Sent: Tuesday, March 29, 2022 12:47 PM > > > > On Mon, Mar 28, 2022 at 2:47 PM Tian, Kevin wrote: > > > > > > > From: Jason Wang > > > > Sent: Monday, March 28, 2022 10:31 AM > > > > > > > > On Thu, Mar 24, 2022 at 4:

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-30 Thread Jason Wang
On Wed, Mar 30, 2022 at 4:02 PM Tian, Kevin wrote: > > > From: Jason Wang > > Sent: Tuesday, March 29, 2022 12:49 PM > > > > On Mon, Mar 28, 2022 at 3:03 PM Tian, Kevin wrote: > > > > > > > From: Jason Wang > > > > Sent: Monday, March 21, 2022 1:54 PM > > > > > > > > +/* > > > > + * vtd-

RE: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-30 Thread Tian, Kevin
> From: Jason Wang > Sent: Tuesday, March 29, 2022 12:49 PM > > On Mon, Mar 28, 2022 at 3:03 PM Tian, Kevin wrote: > > > > > From: Jason Wang > > > Sent: Monday, March 21, 2022 1:54 PM > > > > > > +/* > > > + * vtd-spec v3.4 3.14: > > > + * > > > + * """ > > > + * Requests-wi

RE: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-30 Thread Tian, Kevin
> From: Jason Wang > Sent: Tuesday, March 29, 2022 12:47 PM > > On Mon, Mar 28, 2022 at 2:47 PM Tian, Kevin wrote: > > > > > From: Jason Wang > > > Sent: Monday, March 28, 2022 10:31 AM > > > > > > On Thu, Mar 24, 2022 at 4:54 PM Tian, Kevin > wrote: > > > > > > > > > From: Jason Wang > > > >

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-28 Thread Jason Wang
在 2022/3/28 下午4:45, Yi Liu 写道: On 2022/3/21 13:54, Jason Wang wrote: This patch introduce ECAP_PASID via "x-pasid-mode". Based on the existing support for scalable mode, we need to implement the following missing parts: 1) tag VTDAddressSpace with PASID and support IOMMU/DMA translation    

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-28 Thread Jason Wang
On Mon, Mar 28, 2022 at 3:03 PM Tian, Kevin wrote: > > > From: Jason Wang > > Sent: Monday, March 21, 2022 1:54 PM > > > > +/* > > + * vtd-spec v3.4 3.14: > > + * > > + * """ > > + * Requests-with-PASID with input address in range 0xFEEx_ are > > + * translated normally

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-28 Thread Jason Wang
On Mon, Mar 28, 2022 at 2:47 PM Tian, Kevin wrote: > > > From: Jason Wang > > Sent: Monday, March 28, 2022 10:31 AM > > > > On Thu, Mar 24, 2022 at 4:54 PM Tian, Kevin wrote: > > > > > > > From: Jason Wang > > > > Sent: Monday, March 21, 2022 1:54 PM > > > > > > > > This patch introduce ECAP_PAS

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-28 Thread Yi Liu
On 2022/3/21 13:54, Jason Wang wrote: This patch introduce ECAP_PASID via "x-pasid-mode". Based on the existing support for scalable mode, we need to implement the following missing parts: 1) tag VTDAddressSpace with PASID and support IOMMU/DMA translation with PASID should it be taggin

RE: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-28 Thread Tian, Kevin
> From: Jason Wang > Sent: Monday, March 21, 2022 1:54 PM > > +/* > + * vtd-spec v3.4 3.14: > + * > + * """ > + * Requests-with-PASID with input address in range 0xFEEx_ are > + * translated normally like any other request-with-PASID through > + * DMA-remapping hard

RE: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-27 Thread Tian, Kevin
> From: Jason Wang > Sent: Monday, March 28, 2022 10:31 AM > > On Thu, Mar 24, 2022 at 4:54 PM Tian, Kevin wrote: > > > > > From: Jason Wang > > > Sent: Monday, March 21, 2022 1:54 PM > > > > > > This patch introduce ECAP_PASID via "x-pasid-mode". Based on the > > > existing support for scalable

Re: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-27 Thread Jason Wang
On Thu, Mar 24, 2022 at 4:54 PM Tian, Kevin wrote: > > > From: Jason Wang > > Sent: Monday, March 21, 2022 1:54 PM > > > > This patch introduce ECAP_PASID via "x-pasid-mode". Based on the > > existing support for scalable mode, we need to implement the following > > missing parts: > > > > 1) tag V

RE: [PATCH V2 4/4] intel-iommu: PASID support

2022-03-24 Thread Tian, Kevin
> From: Jason Wang > Sent: Monday, March 21, 2022 1:54 PM > > This patch introduce ECAP_PASID via "x-pasid-mode". Based on the > existing support for scalable mode, we need to implement the following > missing parts: > > 1) tag VTDAddressSpace with PASID and support IOMMU/DMA translation >wit