nova/nova/tests/unit/virt
Boris Bobrov 1a88d35cb1 Also enable iommu for virtio controllers and video in libvirt
Ie54fca066f33 added logic to libvirt/designer.py for enabling iommu
for certain devices where virtio is used.  This is required for AMD
SEV[0].  However it missed two cases.

Firstly, a SCSI controller can have the model as 'virtio-scsi', e.g.:

    <controller type='scsi' index='0' model='virtio-scsi'>

As with other virtio devices, here a child element needs to be added
to the config when SEV is enabled:

    <driver iommu="on" />

We do not need to cover the case of a controller with type
'virtio-serial' now, since even though it is supported by libvirt, it
is not currently used anywhere in Nova.

Secondly, a video device can be virtio, e.g. when vgpus are in use:

    <video>
        <model type='virtio'/>
    </video>

Also take this opportunity to clarify the corresponding documentation
around disk bus options.

[0] http://specs.openstack.org/openstack/nova-specs/specs/train/approved/amd-sev-libvirt-support.html#proposed-change

Partial-Bug: #1845986
Change-Id: I626c35d1653e6a25125320032d0a4a0c67ab8bcf
2019-12-10 11:01:08 +00:00
..
disk lxc: make use of filter python3 compatible 2019-08-13 22:29:57 +00:00
hyperv hyperv: Remove vestigial nova-network support 2019-11-29 17:20:02 +00:00
image
ironic Merge "Fix rebuild of baremetal instance when vm_state is ERROR" 2019-09-07 23:08:19 +00:00
libvirt Also enable iommu for virtio controllers and video in libvirt 2019-12-10 11:01:08 +00:00
powervm Tests: autospecs all the mock.patch usages 2019-08-19 09:43:10 -05:00
vmwareapi Merge "VMware: disk_io_limits settings are not reflected when resize" 2019-12-09 22:08:45 +00:00
xenapi xenapi: Remove vestigial nova-network support 2019-11-29 17:20:03 +00:00
zvm ZVM: Implement update_provider_tree 2019-11-21 15:37:54 +00:00
__init__.py
fakelibosinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
test_block_device.py block_device: Copy original volume_type when missing for snapshot based volumes 2019-11-21 18:13:04 +00:00
test_configdrive.py Skip existing VMs when hosts apply force_config_drive 2019-05-22 21:02:16 +00:00
test_driver.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
test_events.py
test_fake.py
test_firewall.py remove get_nw_info_for_instance from compute.utils 2017-06-13 13:30:06 +02:00
test_hardware.py Add support for translating CPU policy extra specs, image meta 2019-09-18 00:21:10 +01:00
test_imagecache.py Consolidate [image_cache] conf options 2019-11-13 11:09:03 -06:00
test_images.py qemu: Make disk image conversion dramatically faster 2019-03-18 14:53:39 -05:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
test_virt_drivers.py LM: Use Claims to update numa-related XML on the source 2019-09-12 17:34:34 -04:00
test_virt.py We no longer need rootwrap. 2019-02-27 05:06:31 +00:00