diff options
| author | Eric Auger <eric.auger@redhat.com> | 2019-02-21 21:07:03 -0700 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2019-02-21 21:07:03 -0700 |
| commit | 2b6326c0bf2c686ae83d6904899cb80e9ad7a6fb (patch) | |
| tree | 3fc3447565d98996bbb815c5f509f74bb3a76631 /scripts/qmp/qmp.py | |
| parent | 567d7d3e6be5e84741655729aebf78c7257ed043 (diff) | |
| download | focaccia-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