>-----Original Message-----
>>> +static void vtd_destroy_old_fs_hwpt(HostIOMMUDeviceIOMMUFD
>*idev,
>>> + VTDAddressSpace *vtd_as)
>>> +{
>>> + if (!vtd_as->fs_hwpt) {
>>> + return;
>>> + }
>>> + iommufd_backend_free_id(idev->iommufd, vtd_as->fs_hwpt);
>>> + vtd_as->fs_hwpt = 0;
>>is it a valid assumption a valid ID cannot be null? Is it documented
>>somewhere?
>
>I didn't find it in uAPI doc, but it's hard coded in kernel:
>
>xa_init_flags(&ictx->objects, XA_FLAGS_ALLOC1 | XA_FLAGS_ACCOUNT);
>
>Hi @[email protected], @[email protected] do you have a guideline
>on this?
>Could I take zero id reserved?
Sorry, typo error, I meant to @Jason Gunthorpe
Thanks
Zhenzhong