Re: [PATCH v4 0/8] IOMMU: Add support for IOMMU Bypass Feature

2021-06-15 Thread Xingang Wang
Hi Igor, On 2021/6/8 21:38, Igor Mammedov wrote: On Tue, 8 Jun 2021 20:24:35 +0800 Xingang Wang wrote: Hi Igor, On 2021/6/5 20:32, Igor Mammedov wrote: On Tue, 25 May 2021 03:49:57 + Wang Xingang wrote: From: Xingang Wang These patches add support for configure bypass_iommu on

Re: [PATCH v4 0/8] IOMMU: Add support for IOMMU Bypass Feature

2021-06-08 Thread Xingang Wang
Hi Igor, On 2021/6/5 20:32, Igor Mammedov wrote: On Tue, 25 May 2021 03:49:57 + Wang Xingang wrote: From: Xingang Wang These patches add support for configure bypass_iommu on/off for pci root bus, including primary bus and pxb root bus. At present, all root bus will go through iommu

Re: [PATCH v4 6/8] hw/arm/virt-acpi-build: Add explicit IORT idmap for smmuv3 node

2021-06-03 Thread Xingang Wang
Hi Eric, On 2021/6/2 22:21, Eric Auger wrote: Hi Xingang, On 5/25/21 5:50 AM, Wang Xingang wrote: From: Xingang Wang This add explicit IORT idmap info according to pci root bus number range, and only add smmu idmap for those which does not bypass iommu. For idmap directly to ITS node, this

Re: [PATCH v4 5/8] hw/pci: Add pci_bus_range to get bus number range

2021-06-03 Thread Xingang Wang
Hi Eric, On 2021/6/2 21:03, Eric Auger wrote: Hi Xingang, On 5/25/21 5:50 AM, Wang Xingang wrote: From: Xingang Wang This helps to get the bus number range of a pci bridge hierarchy. Signed-off-by: Xingang Wang --- hw/pci/pci.c | 15 +++ include/hw/pci/pci.h | 1

Re: [PATCH v4 3/8] hw/arm/virt: Add a machine option to bypass iommu for primary bus

2021-06-03 Thread Xingang Wang
Hi Eric, On 2021/6/2 20:25, Eric Auger wrote: Hi Xingang, On 5/25/21 5:50 AM, Wang Xingang wrote: From: Xingang Wang This add a bypass_iommu option for arm virt machine, the option can be used in this manner: qemu -machine virt,iommu=smmuv3,bypass_iommu=true This still looks confusing to

Re: [PATCH v4 1/8] hw/pci/pci_host: Allow bypass iommu for pci host

2021-06-03 Thread Xingang Wang
Hi Eric, On 2021/6/2 20:18, Eric Auger wrote: Hi Xingang, On 5/25/21 5:49 AM, Wang Xingang wrote: From: Xingang Wang This add a bypass_iommu property for pci host, which indicates whether devices attached to the pci root bus will bypass iommu. In pci_device_iommu_address_space(), add a

Re: [PATCH v4 0/8] IOMMU: Add support for IOMMU Bypass Feature

2021-05-31 Thread Xingang Wang
on is appropriate in all modules, do you have any suggestions? Thanks Xingang . On 2021/5/25 11:49, Wang Xingang wrote: From: Xingang Wang These patches add support for configure bypass_iommu on/off for pci root bus, including primary bus and pxb root bus. At present, all root bus will go th

Re: [PATCH RFC RESEND v2 4/6] hw/arm/virt-acpi-build: Add explicit idmap info in IORT table

2021-04-13 Thread Xingang Wang
Hi Eric, On 2021/4/13 17:03, Auger Eric wrote: Hi Xingang, On 3/25/21 8:22 AM, Wang Xingang wrote: From: Xingang Wang The idmap of smmuv3 and root complex covers the whole RID space for now, this patch add explicit idmap info according to root bus number range. This add smmuv3 idmap for

Re: [PATCH RFC RESEND v2 3/6] hw/pci: Add pci_root_bus_max_bus

2021-04-13 Thread Xingang Wang
Hi Eric, On 2021/4/13 16:05, Auger Eric wrote: Hi Xingang, On 3/25/21 8:22 AM, Wang Xingang wrote: From: Xingang Wang This helps to find max bus number of a root bus. s/max bus number of a root bus/highest bus number of a bridge hierarchy? Thanks, I will change the description. Signed