diff --git a/doc/source/admin/useful-image-properties.rst b/doc/source/admin/useful-image-properties.rst index 8de7d4b376..b682c67fe6 100644 --- a/doc/source/admin/useful-image-properties.rst +++ b/doc/source/admin/useful-image-properties.rst @@ -446,6 +446,15 @@ Here is a list of useful image properties and the values they expect. Only supported by the libvirt driver. +``hw_virtio_packed_ring`` + :Type: bool + + Enables Packed VIRT-IO Queue feature. When set to true, instance will be + scheduled to hosts that support negotiating the packed virt queue format. + This feature may or may not be enabled depending on the guest driver. + When used it will improve the small packet performance of network io. + Only supported by the libvirt driver. + ``hw_pointer_model`` :Type: str diff --git a/etc/metadefs/compute-libvirt.json b/etc/metadefs/compute-libvirt.json index a9a28a6f1a..397d4399b8 100644 --- a/etc/metadefs/compute-libvirt.json +++ b/etc/metadefs/compute-libvirt.json @@ -33,6 +33,13 @@ "type": "string", "enum": ["true", "false"] } + , + "virtio_packed_ring": { + "title": "Virtio Packed Ring", + "description": "Enables Packed VIRT-IO Queue feature. When set to true, instance will bescheduled to hosts that support negotiating the packed virt queue format. This feature may or may not be enabled depending on the guest driver. When used it will improve the small packet performance of network io.", + "type": "string", + "enum": ["true", "false"] + } }, "objects": [] } diff --git a/glance/tests/functional/db/base_metadef.py b/glance/tests/functional/db/base_metadef.py index 29372c1d1a..1760c6b7ab 100644 --- a/glance/tests/functional/db/base_metadef.py +++ b/glance/tests/functional/db/base_metadef.py @@ -773,7 +773,7 @@ class MetadefLoadUnloadTests: 'CIM::VirtualSystemSettingData': 17, 'OS::Compute::XenAPI': 1, 'OS::Compute::InstanceData': 2, - 'OS::Compute::Libvirt': 3, + 'OS::Compute::Libvirt': 4, 'OS::Compute::VMwareQuotaFlavor': 2, 'OS::Cinder::Volumetype': 1, 'OS::Glance::Signatures': 4, diff --git a/releasenotes/notes/bp-virtio-packed-ring-configuration-support-0cd0333c1c52c02b.yaml b/releasenotes/notes/bp-virtio-packed-ring-configuration-support-0cd0333c1c52c02b.yaml new file mode 100644 index 0000000000..9d737610d1 --- /dev/null +++ b/releasenotes/notes/bp-virtio-packed-ring-configuration-support-0cd0333c1c52c02b.yaml @@ -0,0 +1,12 @@ +--- +upgrade: + - | + The following metadata definitions have been modified: + + * Added ``hw:virtio_packed_ring`` boolean in the ``OS::Nova::Flavor`` + namespace, and ``hw_virtio_packed_ring`` boolean in the + ``OS::Glance::Image`` namespace. + + You may upgrade these definitions using: + + ``glance-manage db load_metadefs [--path ] [--merge] [--prefer_new]``