From 0f404b4b481212867e10fd2d4656ec26e467ddeb Mon Sep 17 00:00:00 2001 From: Kashyap Chamarthy Date: Fri, 4 Jun 2021 15:07:08 +0200 Subject: [PATCH] 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 --- os_traits/compute/graphics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/os_traits/compute/graphics.py b/os_traits/compute/graphics.py index 1dc8ff1..7a5ee0d 100644 --- a/os_traits/compute/graphics.py +++ b/os_traits/compute/graphics.py @@ -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',