nova/nova/tests/unit/virt/libvirt
Kashyap Chamarthy cc27a2007f libvirt: Lift the restriction of choices for `cpu_model_extra_flags`
Commit 6b601b7 (libvirt: Allow to specify granular CPU feature flags)
added support for allowing to specify individual CPU feature flags, but
restricted the options only to "PCID" (refer to its commit message for
why).

In this change we lift the restriction of choices, and allow to specify
multiple CPU feature flags for all three CPU modes for the libvirt
driver: 'custom', 'host-model', and 'host-passthrough'.

For example:

     [libvirt]
     cpu_mode = custom
     cpu_model = IvyBridge
     cpu_model_extra_flags = pcid, vmx, pdpe1gb

This will allow additional use cases such as:

  - Ability to use 1GB huge pages with models that don't provide it
    (such as Intel "Haswell" variants) as one use case for extra flags:

        cpu_mode = custom
        cpu_model = Haswell-noTSX-IBRS
        cpu_model_extra_flags = pdpe1gb

  - Nested Virtualization -- an operator can specify the Intel 'vmx' (or
    AMD 'svm') flags for the level-1 Nova guest CPU models.  (Assuming
    the 'nested' flag is enabled on the level-0 / bare-metal kernel.)

(A future Nova patch will also allow ability to remove CPU flags.)

Change-Id: I9a862619f379057bb48cb85a84dfc50d763030a6
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
BluePrint: libvirt-cpu-model-extra-flags
2018-05-01 11:47:18 -04:00
..
storage tests: refactors and cleans up test_rbd.py 2018-01-30 02:26:07 -08:00
volume Merge "Support extending attached ScaleIO volumes" 2018-04-09 15:18:22 +00:00
__init__.py
fake_imagebackend.py libvirt: update logic to configure device for scsi controller 2017-07-03 03:23:53 -04:00
fake_libvirt_utils.py libvirt: move version to string in utils 2018-04-13 03:16:40 -04:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py libvirt: Bump MIN_{LIBVIRT,QEMU}_VERSION for "Rocky" 2018-04-23 17:02:27 +02:00
test_blockinfo.py Modify the test case of get_disk_mapping_rescue_with_config 2018-01-12 14:08:51 +08:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py libvirt: add support for virtio-net rx/tx queue sizes 2018-04-23 06:26:40 -04:00
test_designer.py libvirt: add support for virtio-net rx/tx queue sizes 2018-04-23 06:26:40 -04:00
test_driver.py libvirt: Lift the restriction of choices for `cpu_model_extra_flags` 2018-05-01 11:47:18 -04:00
test_fakelibvirt.py conf: Deprecate 'keymap' options 2018-03-07 10:18:23 +00:00
test_firewall.py Don't modify objects directly 2018-01-30 16:35:02 +00:00
test_guest.py Merge "libvirt: add method to configure migration speed" 2017-10-19 03:36:53 +00:00
test_host.py Encode libvirt domain XML in UTF-8 2018-02-08 15:45:59 -05:00
test_imagebackend.py Handle deprecation of inspect.getargspec 2018-04-26 11:51:10 +00:00
test_imagecache.py Move the dac_admin privsep code to a new location. 2017-09-18 23:14:11 +10:00
test_migration.py libvirt: QEMU native LUKS decryption for encrypted volumes 2018-01-23 10:47:05 +00:00
test_utils.py Move configurable mkfs to privsep. 2018-04-04 06:29:32 +10:00
test_vif.py libvirt: add support for virtio-net rx/tx queue sizes 2018-04-23 06:26:40 -04:00