diff options
author | Eric Auger | 2019-02-22 05:07:03 +0100 |
---|---|---|
committer | Alex Williamson | 2019-02-22 05:07:03 +0100 |
commit | 2b6326c0bf2c686ae83d6904899cb80e9ad7a6fb (patch) | |
tree | 3fc3447565d98996bbb815c5f509f74bb3a76631 /scripts/qemu.py | |
parent | vfio/common: Work around kernel overflow bug in DMA unmap (diff) | |
download | qemu-2b6326c0bf2c686ae83d6904899cb80e9ad7a6fb.tar.gz qemu-2b6326c0bf2c686ae83d6904899cb80e9ad7a6fb.tar.xz 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/qemu.py')
0 files changed, 0 insertions, 0 deletions