commit 5d65680095298764466af532381b81b604429426
Author: Lee Yarwood <email address hidden>
Date: Thu Jun 3 16:37:45 2021 +0100
libvirt: Set driver_iommu when attaching virtio devices to SEV instance
As called out in the original spec [1] virtio devices attached to a SEV
enabled instance must have the iommu attribute enabled. This was done
within the original implementation of the spec for all virtio devices
defined when initially spawning the instance but does not include volume
and interfaces that are later hot plugged.
This change corrects this for both volumes and nics and in doing so
slightly refactors the original designer code to make it usable in both
cases.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /796607 /opendev. org/openstack/ nova/commit/ 5d6568009529876 4466af532381b81 b604429426
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 5d6568009529876 4466af532381b81 b604429426
Author: Lee Yarwood <email address hidden>
Date: Thu Jun 3 16:37:45 2021 +0100
libvirt: Set driver_iommu when attaching virtio devices to SEV instance
As called out in the original spec [1] virtio devices attached to a SEV
enabled instance must have the iommu attribute enabled. This was done
within the original implementation of the spec for all virtio devices
defined when initially spawning the instance but does not include volume
and interfaces that are later hot plugged.
This change corrects this for both volumes and nics and in doing so
slightly refactors the original designer code to make it usable in both
cases.
[1] https:/ /specs. openstack. org/openstack/ nova-specs/ specs/train/ implemented/ amd-sev- libvirt- support. html#proposed- change
Closes-Bug: #1930734 85e7151b519fb26 d225629c391 416023e577e0f2c 277c216506)
Change-Id: I11131a3f90b8af
(cherry picked from commit 4d8bf15fec15dc3