aboutsummaryrefslogtreecommitdiff
path: root/page-target.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2024-06-05 16:30:32 +0800
committerCédric Le Goater <clg@redhat.com>2024-06-24 23:15:30 +0200
commitd441e05e26033eb0e49c4185293424a480ef750f (patch)
tree161736c20c432f0cb75030d3128867d4571706dc /page-target.c
parent6f274444c579305d14d355bab24af31ea2bef224 (diff)
vfio/container: Implement HostIOMMUDeviceClass::realize() handler
The realize function populates the capabilities. For now only the aw_bits caps is computed for legacy backend. Introduce a helper function vfio_device_get_aw_bits() which calls range_get_last_bit() to get host aw_bits and package it in HostIOMMUDeviceCaps for query with .get_cap(). This helper will also be used by iommufd backend. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'page-target.c')
0 files changed, 0 insertions, 0 deletions