[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v6 08/21] vfio/pci: Introduce a vfio pci hot reset interface
|
From: |
Duan, Zhenzhong |
|
Subject: |
RE: [PATCH v6 08/21] vfio/pci: Introduce a vfio pci hot reset interface |
|
Date: |
Wed, 15 Nov 2023 02:55:55 +0000 |
>-----Original Message-----
>From: Cédric Le Goater <clg@redhat.com>
>Sent: Tuesday, November 14, 2023 9:52 PM
>Subject: Re: [PATCH v6 08/21] vfio/pci: Introduce a vfio pci hot reset
>interface
>
>On 11/14/23 11:09, Zhenzhong Duan wrote:
>> Legacy vfio pci and iommufd cdev have different process to hot reset
>> vfio device, expand current code to abstract out pci_hot_reset callback
>> for legacy vfio, this same interface will also be used by iommufd
>> cdev vfio device.
>>
>> Rename vfio_pci_hot_reset to vfio_legacy_pci_hot_reset and move it
>> into container.c.
>>
>> vfio_pci_[pre/post]_reset and vfio_pci_host_match are exported so
>> they could be called in legacy and iommufd pci_hot_reset callback.
>
>vfio_pci_host_match() is never used outside ot the legacy reset cb.
>Do you have future plans ?
No future plans, I'm just following a rule to keep pci specific functions
in pci.c whenever possible. Maybe another rule is to make functions
static whenever possible. I'm fine with bothđ
Thanks
Zhenzhong
- [PATCH v6 04/21] vfio/iommufd: Implement the iommufd backend, (continued)
- [PATCH v6 04/21] vfio/iommufd: Implement the iommufd backend, Zhenzhong Duan, 2023/11/14
- [PATCH v6 07/21] vfio/pci: Extract out a helper vfio_pci_get_pci_hot_reset_info, Zhenzhong Duan, 2023/11/14
- [PATCH v6 06/21] vfio/iommufd: Add support for iova_ranges and pgsizes, Zhenzhong Duan, 2023/11/14
- [PATCH v6 08/21] vfio/pci: Introduce a vfio pci hot reset interface, Zhenzhong Duan, 2023/11/14
- [PATCH v6 09/21] vfio/iommufd: Enable pci hot reset through iommufd cdev interface, Zhenzhong Duan, 2023/11/14
- [PATCH v6 10/21] vfio/pci: Allow the selection of a given iommu backend, Zhenzhong Duan, 2023/11/14
- [PATCH v6 11/21] vfio/pci: Make vfio cdev pre-openable by passing a file handle, Zhenzhong Duan, 2023/11/14