RE: [PATCH v5 01/13] vfio/pci: Extract mdev check into an helper

2024-07-21 Thread Duan, Zhenzhong
>-Original Message- >From: Joao Martins >Sent: Friday, July 19, 2024 8:05 PM >To: qemu-devel@nongnu.org >Cc: Liu, Yi L ; Eric Auger ; Duan, >Zhenzhong ; Alex Williamson >; Cedric Le Goater ; Jason >Gunthorpe ; Avihai Horon ; Joao >Martins >Subject: [PAT

Re: [PATCH v5 01/13] vfio/pci: Extract mdev check into an helper

2024-07-19 Thread Cédric Le Goater
On 7/19/24 14:04, Joao Martins wrote: In preparation to skip initialization of the HostIOMMUDevice for mdev, extract the checks that validate if a device is an mdev into helpers. A vfio_device_is_mdev() is created, and subsystems consult VFIODevice::mdev to check if it's mdev or not.

[PATCH v5 01/13] vfio/pci: Extract mdev check into an helper

2024-07-19 Thread Joao Martins
In preparation to skip initialization of the HostIOMMUDevice for mdev, extract the checks that validate if a device is an mdev into helpers. A vfio_device_is_mdev() is created, and subsystems consult VFIODevice::mdev to check if it's mdev or not. Signed-off-by: Joao Martins ---