Re: [Intel-gfx] [PATCH v6 09/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-06-01 Thread Alex Williamson
On Thu, 1 Jun 2023 06:06:17 + "Liu, Yi L" wrote: > > From: Jason Gunthorpe > > Sent: Thursday, June 1, 2023 3:00 AM > > > > On Fri, May 26, 2023 at 10:04:27AM +0800, Baolu Lu wrote: > > > On 5/25/23 9:02 PM, Liu, Yi L wrote: > > > > > It's possible that requirement > > > > > might be

Re: [Intel-gfx] [PATCH v6 09/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-06-01 Thread Liu, Yi L
> From: Jason Gunthorpe > Sent: Thursday, June 1, 2023 3:00 AM > > On Fri, May 26, 2023 at 10:04:27AM +0800, Baolu Lu wrote: > > On 5/25/23 9:02 PM, Liu, Yi L wrote: > > > > It's possible that requirement > > > > might be relaxed in the new DMA ownership model, but as it is right > > > > now,

Re: [Intel-gfx] [PATCH v6 09/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-05-31 Thread Jason Gunthorpe
On Fri, May 26, 2023 at 10:04:27AM +0800, Baolu Lu wrote: > On 5/25/23 9:02 PM, Liu, Yi L wrote: > > > It's possible that requirement > > > might be relaxed in the new DMA ownership model, but as it is right > > > now, the code enforces that requirement and any new discussion about > > > what

Re: [Intel-gfx] [PATCH v6 09/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-05-25 Thread Baolu Lu
On 5/25/23 9:02 PM, Liu, Yi L wrote: It's possible that requirement might be relaxed in the new DMA ownership model, but as it is right now, the code enforces that requirement and any new discussion about what makes hot-reset available should note both the ownership and dev_set requirement.

Re: [Intel-gfx] [PATCH v6 09/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-05-25 Thread Liu, Yi L
> From: Alex Williamson > Sent: Thursday, May 25, 2023 3:56 AM > On Mon, 22 May 2023 04:57:50 -0700 > Yi Liu wrote: > > > + > > +/* > > + * Return devid for vfio_device if the device is owned by the input > > + * ictx. > > + * - valid devid > 0 for the device that are bound to the input > > + *

Re: [Intel-gfx] [PATCH v6 09/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-05-24 Thread Alex Williamson
On Mon, 22 May 2023 04:57:50 -0700 Yi Liu wrote: > This allows VFIO_DEVICE_GET_PCI_HOT_RESET_INFO ioctl use the iommufd_ctx > of the cdev device to check the ownership of the other affected devices. > > When VFIO_DEVICE_GET_PCI_HOT_RESET_INFO is called on an IOMMUFD managed > device, the new

[Intel-gfx] [PATCH v6 09/10] vfio/pci: Extend VFIO_DEVICE_GET_PCI_HOT_RESET_INFO for vfio device cdev

2023-05-22 Thread Yi Liu
This allows VFIO_DEVICE_GET_PCI_HOT_RESET_INFO ioctl use the iommufd_ctx of the cdev device to check the ownership of the other affected devices. When VFIO_DEVICE_GET_PCI_HOT_RESET_INFO is called on an IOMMUFD managed device, the new flag VFIO_PCI_HOT_RESET_FLAG_DEV_ID is reported to indicate the