Add a trait for the "bochs" display device

The 'bochs' display device is a recommended[1] safe option for UEFI
guests.

This lets an admin set the trait either via the flavor extra-specs or
image metadata properties:

    trait:COMPUTE_GRAPHICS_MODEL_BOCHS=required

This also allows The libvirt virt dirver report a standard trait
for bochs graphics model support and enables the image_metadata_prefilter
to automatically request the trait. This will enable vm that request
the bochs graphics model to be automaticaly scheduled to hosts that
can support it.

Implements: blueprint add-bochs-display-device
[1]: https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/#tldr
Change-Id: Iba867f4632853f99373976e39c3494ea1c8b91a2
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
This commit is contained in:
Kashyap Chamarthy 2021-06-04 15:07:08 +02:00 committed by Sean Mooney
parent ac1b39eff3
commit 0f404b4b48
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ TRAITS = [
# traits corresponding to the allowed values of "hw_video_model"
# image metadata property
# https://github.com/openstack/nova/blob/1f74441/nova/objects/fields.py#L501-L509
'MODEL_BOCHS',
'MODEL_CIRRUS',
'MODEL_GOP',
'MODEL_NONE',