RE: [PATCH v1 09/22] vfio/common: check PASID alloc/free availability

2020-03-24 Thread Liu, Yi L
> From: Peter Xu > Sent: Tuesday, March 24, 2020 6:07 AM > To: Liu, Yi L > Subject: Re: [PATCH v1 09/22] vfio/common: check PASID alloc/free availability > > On Sun, Mar 22, 2020 at 05:36:06AM -0700, Liu Yi L wrote: > > [...] > > > @@ -1256,11 +1334,19

Re: [PATCH v1 09/22] vfio/common: check PASID alloc/free availability

2020-03-23 Thread Peter Xu
On Sun, Mar 22, 2020 at 05:36:06AM -0700, Liu Yi L wrote: [...] > @@ -1256,11 +1334,19 @@ static int vfio_init_container(VFIOContainer > *container, int group_fd, > } > > if (iommu_type == VFIO_TYPE1_NESTING_IOMMU) { > -/* > - * TODO: config flags per host IOMMU nesti

[PATCH v1 09/22] vfio/common: check PASID alloc/free availability

2020-03-22 Thread Liu Yi L
VFIO exposes host IOMMU dual-stage DMA translation programming capability to userspace by VFIO_TYPE1_NESTING_IOMMU type. However, userspace needs more info on the nesting type. e.g. the supported stage 1 format and PASID alloc/free request availability. This patch gets the iommu nesting cap info f