]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce virtio options for virtio memory models
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 27 Oct 2025 10:38:57 +0000 (11:38 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Oct 2025 11:09:28 +0000 (12:09 +0100)
commit4848c85053e26d89fd30f29319076f6141cd592c
treef292db1be08a2d3eff16f3967fc47f588bd9277c
parent3c6d7f2705acd6559ee703ba9945afd6103373ae
conf: Introduce virtio options for virtio memory models

Both virtio-mem and virtio-pmem memory models are virtio devices
and as such support setting various virtio knobs (iommu, ats,
packed, page_per_vq) common to other virtio devices.

Introduce <driver/> element as a child to <memory/> element, just
like we do for other virtio devices, where aforementioned knobs
live.

NB, this is without docs changes, since we do not document which
virtio devices support these knobs and each one is already
documented.

Also, the virtio-options.xml test needed some additional
adjustment (apart from adding virtio-mem device) to enable memory
hotplug.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/domain_validate.c
src/conf/schemas/domaincommon.rng
tests/qemuxmlconfdata/virtio-options.x86_64-latest.args
tests/qemuxmlconfdata/virtio-options.xml