mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
To prepare the support of region capabilities, this commit factorizes the `VFIO_USER_DEVICE_GET_REGION_INFO` operation in its own function. In this process, it also removes the need of the hard-coded arbitrary value for `vfio_region_info.argsz` (the maximum size of the reply payload). Signed-off-by: Bo Chen <chen.bo@intel.com>