nova/nova/virt/libvirt
Adam Spiers d2f8995103 Move libvirt calculation of machine type to utils.py
The libvirt driver contains some code to calculate the
default machine type given an architecture, by looking it up
in CONF.libvirt.hw_machine_type.

This code will need to be reused when introducing calls to
libvirt's getDomainCapabilities() API, which requires the
machine type as one of the parameters.  However those calls
will need to be made from nova.virt.libvirt.host.Host which
has no access to the driver, so move the machine type
calculation code into nova.virt.libvirt.utils so that it can
be reused by both classes.

Also add some unit tests, and warn when an invalid config
value is used.

blueprint: amd-sev-libvirt-support
Change-Id: I055918ff16766c5b106d794a111ad8af8ff9ab23
2019-03-19 22:28:33 +00:00
..
storage Fix string interpolations in logging calls 2019-01-29 15:06:39 +09:00
volume Merge "Extend volume for libvirt network volumes (RBD)" 2019-03-07 00:52:10 +00:00
__init__.py
blockinfo.py Add configuration of maximum disk devices to attach 2019-01-30 15:47:10 +00:00
compat.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
config.py Parse <emulator> elements from virConnectGetCapabilities() 2019-03-05 10:07:21 +00:00
designer.py add mtu to libvirt xml for ethernet and bridge types 2018-06-06 09:39:40 -04:00
driver.py Move libvirt calculation of machine type to utils.py 2019-03-19 22:28:33 +00:00
firewall.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
guest.py Add missing libvirt exception during device detach 2019-03-07 00:04:48 +00:00
host.py Transform libvirt.error notification 2018-09-18 07:06:09 +00:00
imagebackend.py Allow utime call to fail on qcow2 image base file 2019-03-12 10:40:45 -04:00
imagecache.py Move the dac_admin privsep code to a new location. 2017-09-18 23:14:11 +10:00
instancejobtracker.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
migration.py libvirt: remove live_migration_progress_timeout config 2018-12-14 14:50:38 -05:00
utils.py Move libvirt calculation of machine type to utils.py 2019-03-19 22:28:33 +00:00
vif.py Move set_vf_interface_vlan to be with its only caller. 2019-03-05 22:18:08 +00:00