nova/nova
Boris Bobrov 2b0024c040 Switch to uses_virtio to enable iommu driver for AMD SEV
In order to use AMD SEV, devices that use virtio should also use
iommu driver. The problem is to understand that a device uses virtio,
because there are many attributes and values that can indicate it.
For example, it can be `model='virtio'` for rng and
`<target bus='virtio'/>` for disk.

Add new property for devices `uses_virtio`, that will indicate that a
device in its current configuration is a virtio device, and implement it
for known devices.

The patch does not change how resulting libvirt XMLs look and does not
fix user-visible bugs. This refactoring is required for further work on
AMD SEV related patches.

The changes to memballoon-related tests were required because the tests
were using fake values that does are not possible in real life and that
were preventing tests of the new method. The tests now use the value
that nova currently uses to generate libvirt xml.

Change-Id: I0f85918996128d573b5dbd6ac49a9c2356cd40a9
Partial-Bug: #1845986
2019-12-10 11:01:08 +00:00
..
api Block rebuild when NUMA topology changed 2019-12-05 23:20:52 +00:00
cmd Use Placement 1.34 (string suffixes & mappings) 2019-12-05 17:02:46 -06:00
compute Merge "Block rebuild when NUMA topology changed" 2019-12-09 23:49:06 +00:00
conductor Merge "Sanity check instance mapping during scheduling" 2019-11-28 23:25:35 +00:00
conf Merge "vmware: Remove vestigial nova-network support" 2019-12-05 00:11:48 +00:00
console Mask the token used to allow access to consoles 2019-11-27 16:24:35 +00:00
db Remove 'nova-console' service, 'console' RPC API 2019-11-22 16:09:38 +00:00
hacking Add a hacking rule for useless assertions 2019-08-21 14:42:53 +09:00
image Improve error log when snapshot fails 2019-11-06 22:54:05 +00:00
ipv6
keymgr
locale Imported Translations from Zanata 2019-12-09 06:44:38 +00:00
network Cache security group driver 2019-12-03 10:54:29 -05:00
notifications Add Aggregate image caching progress notifications 2019-10-29 08:18:32 -07:00
objects Merge "refactor: RequestGroup.is_empty() and .strip_zeros()" 2019-12-06 19:24:22 +00:00
pci hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
policies Merge "Add new default rules and mapping in policy base class" 2019-12-03 02:53:16 +00:00
privsep libvirt: Remove 'enable_hairpin' 2019-11-29 17:20:02 +00:00
scheduler refactor: RequestGroup.is_empty() and .strip_zeros() 2019-12-05 17:02:46 -06:00
servicegroup Handle ServiceNotFound in DbDriver._report_state 2019-12-04 09:50:17 -05:00
tests Switch to uses_virtio to enable iommu driver for AMD SEV 2019-12-10 11:01:08 +00:00
virt Switch to uses_virtio to enable iommu driver for AMD SEV 2019-12-10 11:01:08 +00:00
vnc xvp: Remove use of '_LI' marker 2019-06-19 10:04:45 +01:00
volume Fix exception translation when creating volume 2019-10-10 02:38:33 +00:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
availability_zones.py Always pass HostAPI to get_availability_zones 2019-04-26 15:30:48 -04:00
baserpc.py
block_device.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
cache_utils.py
config.py Rename 'nova.common.config' module to 'nova.middleware' 2019-08-16 00:53:03 +01:00
context.py Revert "Log CellTimeout traceback in scatter_gather_cells" 2019-10-22 17:12:28 -04:00
crypto.py
debugger.py
exception.py Block rebuild when NUMA topology changed 2019-12-05 23:20:52 +00:00
exception_wrapper.py
filters.py filters: Stop handling cells v1 2019-06-12 16:09:46 +01:00
hooks.py
i18n.py
loadables.py
manager.py
middleware.py Rename 'nova.common.config' module to 'nova.middleware' 2019-08-16 00:53:03 +01:00
monkey_patch.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
policy.py Pass RequestContext to oslo_policy 2019-10-29 15:21:50 +00:00
profiler.py
quota.py nova-net: Remove 'networks' quota 2019-11-22 16:49:31 +00:00
rpc.py Remove unnecessary wrapper 2019-05-29 17:14:13 +01:00
safe_utils.py
service.py Remove 'nova-console' service, 'console' RPC API 2019-11-22 16:09:38 +00:00
service_auth.py
test.py Cache security group driver 2019-12-03 10:54:29 -05:00
utils.py Remove workaround for bug #1709118 2019-10-07 16:33:20 +00:00
version.py
weights.py Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
wsgi.py