|
From: | Yi Liu |
Subject: | Re: [PATCH V2 4/4] intel-iommu: PASID support |
Date: | Fri, 1 Apr 2022 21:42:50 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0 |
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 PASID and support IOMMU/DMA translation with PASIDshould it be tagging with bdf+pasid?The problem is BDF is programmable by the guest. So we may end up duplicated BDFs. That's why the code uses struct PCIBus.
how about the devfn? will it also change? taggiing addressspace with BDF+PASID mostly suits the spec since the PASID table is per-bdf. If bus number may change, using PCIBus is fine. Regards, Yi Liu
[Prev in Thread] | Current Thread | [Next in Thread] |