[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v3 27/37] vfio/iommufd: Switch to manual hwpt allocation
From: |
Duan, Zhenzhong |
Subject: |
RE: [PATCH v3 27/37] vfio/iommufd: Switch to manual hwpt allocation |
Date: |
Tue, 31 Oct 2023 02:02:51 +0000 |
>-----Original Message-----
>From: Cédric Le Goater <clg@redhat.com>
>Sent: Monday, October 30, 2023 9:52 PM
>Subject: Re: [PATCH v3 27/37] vfio/iommufd: Switch to manual hwpt allocation
>
>On 10/26/23 12:30, Zhenzhong Duan wrote:
>> IOMMUFD supports auto allocated hwpt and manually allocated one.
>> Manually allocated hwpt has benefit that its life cycle is under
>> user's control, so it could be used as stage 2 page table by nested
>> feature in the future.
>
>Would an option be useful to switch from one mode to another ?
Looks unnecessary for me as we prefer manual allocation.
The purpose of splitting is to make review easier.
>
>>
>> Introduce two helpers __vfio_device_attach/detach_hwpt to facilitate
>> this change.
>
>I think merging this change with the previous patch makes sense.
>It doesn't add much to keep it as a standalone patch unless we
>want a feature toggle.
OK, will merge them in v4.
Thanks
Zhenzhong
- RE: [PATCH v3 24/37] backends/iommufd: Introduce the iommufd object, (continued)
[PATCH v3 20/37] vfio/spapr: switch to spapr IOMMU BE add/del_section_window, Zhenzhong Duan, 2023/10/26
[PATCH v3 22/37] vfio/spapr: Move hostwin_list into spapr container, Zhenzhong Duan, 2023/10/26
[PATCH v3 21/37] vfio/spapr: Move prereg_listener into spapr container, Zhenzhong Duan, 2023/10/26
[PATCH v3 23/37] Add iommufd configure option, Zhenzhong Duan, 2023/10/26
[PATCH v3 26/37] vfio/iommufd: Implement the iommufd backend, Zhenzhong Duan, 2023/10/26
[PATCH v3 27/37] vfio/iommufd: Switch to manual hwpt allocation, Zhenzhong Duan, 2023/10/26
[PATCH v3 28/37] vfio/iommufd: Add support for iova_ranges, Zhenzhong Duan, 2023/10/26
[PATCH v3 30/37] vfio/pci: Extract out a helper vfio_pci_get_pci_hot_reset_info, Zhenzhong Duan, 2023/10/26
[PATCH v3 31/37] vfio/pci: Adapt vfio pci hot reset support with iommufd BE, Zhenzhong Duan, 2023/10/26
[PATCH v3 29/37] vfio/iommufd: Bypass EEH if iommufd backend, Zhenzhong Duan, 2023/10/26