RE: [PATCH v4 04/20] vfio/iommufd: Force creating nested parent domain

2025-07-30 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Subject: Re: [PATCH v4 04/20] vfio/iommufd: Force creating nested parent >domain > >On 7/30/25 12:55, Duan, Zhenzhong wrote: >> >> >>> -Original Message- >>> From: Cédric Le Goater

Re: [PATCH v4 04/20] vfio/iommufd: Force creating nested parent domain

2025-07-30 Thread Cédric Le Goater
On 7/30/25 12:55, Duan, Zhenzhong wrote: -Original Message- From: Cédric Le Goater Subject: Re: [PATCH v4 04/20] vfio/iommufd: Force creating nested parent domain On 7/29/25 11:20, Zhenzhong Duan wrote: Call pci_device_get_viommu_cap() to get if vIOMMU supports

RE: [PATCH v4 04/20] vfio/iommufd: Force creating nested parent domain

2025-07-30 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Subject: Re: [PATCH v4 04/20] vfio/iommufd: Force creating nested parent >domain > >On 7/29/25 11:20, Zhenzhong Duan wrote: >> Call pci_device_get_viommu_cap() to get if vIOMMU supports >VIOMMU_CAP_HW_NESTED, >

Re: [PATCH v4 04/20] vfio/iommufd: Force creating nested parent domain

2025-07-29 Thread Cédric Le Goater
On 7/29/25 11:20, Zhenzhong Duan wrote: Call pci_device_get_viommu_cap() to get if vIOMMU supports VIOMMU_CAP_HW_NESTED, if yes, create nested parent domain which could be reused by vIOMMU to create nested domain. It is safe because hw_caps & VIOMMU_CAP_HW_NESTED cannot be set yet because s->flt

[PATCH v4 04/20] vfio/iommufd: Force creating nested parent domain

2025-07-29 Thread Zhenzhong Duan
Call pci_device_get_viommu_cap() to get if vIOMMU supports VIOMMU_CAP_HW_NESTED, if yes, create nested parent domain which could be reused by vIOMMU to create nested domain. It is safe because hw_caps & VIOMMU_CAP_HW_NESTED cannot be set yet because s->flts is forbidden until we support passthroug