[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v3 07/37] vfio/container: Introduce a empty VFIOIOMMUOps
|
From: |
Duan, Zhenzhong |
|
Subject: |
RE: [PATCH v3 07/37] vfio/container: Introduce a empty VFIOIOMMUOps |
|
Date: |
Mon, 30 Oct 2023 02:43:59 +0000 |
>-----Original Message-----
>From: Cédric Le Goater <clg@redhat.com>
>Sent: Friday, October 27, 2023 10:21 PM
>Subject: Re: [PATCH v3 07/37] vfio/container: Introduce a empty
>VFIOIOMMUOps
>
>On 10/26/23 12:30, Zhenzhong Duan wrote:
>> This empty VFIOIOMMUOps named vfio_legacy_ops will hold all general
>> IOMMU ops of legacy container.
>>
>> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
>> ---
>> include/hw/vfio/vfio-common.h | 2 +-
>> hw/vfio/container.c | 5 +++++
>> 2 files changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
>> index d8f293cb57..8ded5cd8e4 100644
>> --- a/include/hw/vfio/vfio-common.h
>> +++ b/include/hw/vfio/vfio-common.h
>> @@ -255,7 +255,7 @@ typedef QLIST_HEAD(VFIOGroupList, VFIOGroup)
>VFIOGroupList;
>> typedef QLIST_HEAD(VFIODeviceList, VFIODevice) VFIODeviceList;
>> extern VFIOGroupList vfio_group_list;
>> extern VFIODeviceList vfio_device_list;
>> -
>> +extern const VFIOIOMMUOps vfio_legacy_ops;
>
>
>why does it need to be external ?
It is referenced by vfio_connect_container() and vfio_attach_device().
Thanks
Zhenzhong
- [PATCH v3 02/37] vfio/container: Move vfio_container_add/del_section_window into spapr.c, (continued)
- [PATCH v3 02/37] vfio/container: Move vfio_container_add/del_section_window into spapr.c, Zhenzhong Duan, 2023/10/26
- [PATCH v3 03/37] vfio/container: Move spapr specific init/deinit into spapr.c, Zhenzhong Duan, 2023/10/26
- [PATCH v3 04/37] vfio/spapr: Make vfio_spapr_create/remove_window static, Zhenzhong Duan, 2023/10/26
- [PATCH v3 05/37] vfio/common: Move vfio_host_win_add/del into spapr.c, Zhenzhong Duan, 2023/10/26
- [PATCH v3 07/37] vfio/container: Introduce a empty VFIOIOMMUOps, Zhenzhong Duan, 2023/10/26
- [PATCH v3 06/37] vfio: Introduce base object for VFIOContainer and targetted interface, Zhenzhong Duan, 2023/10/26
[PATCH v3 08/37] vfio/container: Switch to dma_map|unmap API, Zhenzhong Duan, 2023/10/26
[PATCH v3 09/37] vfio/common: Move giommu_list in base container, Zhenzhong Duan, 2023/10/26