>-----Original Message-----
>From: Liu, Yi L <[email protected]>
>Subject: Re: [PATCH v6 06/22] intel_iommu: Implement get_viommu_flags()
>callback
>
>On 2025/9/18 16:57, Zhenzhong Duan wrote:
>> Implement get_viommu_flags() callback and expose a request for nesting
>> parent HWPT for now.
>>
>> VFIO uses it to create nesting parent HWPT which is further used to create
>> nested HWPT in vIOMMU. All these will be implemented in following
>patches.
>>
>> Suggested-by: Yi Liu <[email protected]>
>> Signed-off-by: Zhenzhong Duan <[email protected]>
>> Reviewed-by: Eric Auger <[email protected]>
>> Reviewed-by: Nicolin Chen <[email protected]>
>> ---
>>   hw/i386/intel_iommu.c | 12 ++++++++++++
>>   1 file changed, 12 insertions(+)
>>
>> diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
>> index a47482ba9d..83c40975cc 100644
>> --- a/hw/i386/intel_iommu.c
>> +++ b/hw/i386/intel_iommu.c
>> @@ -24,6 +24,7 @@
>>   #include "qemu/main-loop.h"
>>   #include "qapi/error.h"
>>   #include "hw/sysbus.h"
>> +#include "hw/iommu.h"
>>   #include "intel_iommu_internal.h"
>>   #include "hw/pci/pci.h"
>>   #include "hw/pci/pci_bus.h"
>> @@ -4412,6 +4413,16 @@ static void
>vtd_dev_unset_iommu_device(PCIBus *bus, void *opaque, int devfn)
>>       vtd_iommu_unlock(s);
>>   }
>>
>> +static uint64_t vtd_get_viommu_flags(void *opaque)
>> +{
>> +    IntelIOMMUState *s = opaque;
>> +    uint64_t caps;
>
>s/caps/flags

done

Thanks
Zhenzhong

Reply via email to