On Wed, Oct 29, 2025 at 08:53:05 +0100, Michal Privoznik wrote:
> From: Michal Privoznik <[email protected]>
> 
> 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 <[email protected]>
> ---
>  src/conf/domain_conf.c                        | 12 ++++++++++
>  src/conf/domain_conf.h                        |  1 +
>  src/conf/domain_validate.c                    |  5 ++++
>  src/conf/schemas/domaincommon.rng             |  5 ++++
>  .../virtio-options.x86_64-latest.args         |  9 +++++---
>  tests/qemuxmlconfdata/virtio-options.xml      | 23 +++++++++++++++++--
>  6 files changed, 50 insertions(+), 5 deletions(-)

Reviewed-by: Jiri Denemark <[email protected]>

Reply via email to