summary refs log tree commit diff stats
path: root/scripts/qmp/qmp.py
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2019-02-21 21:07:03 -0700
committerAlex Williamson <alex.williamson@redhat.com>2019-02-21 21:07:03 -0700
commit2b6326c0bf2c686ae83d6904899cb80e9ad7a6fb (patch)
tree3fc3447565d98996bbb815c5f509f74bb3a76631 /scripts/qmp/qmp.py
parent567d7d3e6be5e84741655729aebf78c7257ed043 (diff)
downloadfocaccia-qemu-2b6326c0bf2c686ae83d6904899cb80e9ad7a6fb.tar.gz
focaccia-qemu-2b6326c0bf2c686ae83d6904899cb80e9ad7a6fb.zip
hw/vfio/common: Refactor container initialization
We introduce the vfio_init_container_type() helper.
It computes the highest usable iommu type and then
set the container and the iommu type.

Its usage in vfio_connect_container() makes the code
ready for addition of new iommu types.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts/qmp/qmp.py')
0 files changed, 0 insertions, 0 deletions