[PATCH v6 00/16] Introduce virtio-mem <memory/> model

Ján Tomko jtomko at redhat.com
Tue Sep 21 15:21:13 UTC 2021


On a Tuesday in 2021, Michal Privoznik wrote:
>v6 of:
>
>https://listman.redhat.com/archives/libvir-list/2021-September/msg00333.html
>
>diff to v5:
>- Rebased onto current master
>- Produce warning (in 05/16) when prealloc was requested for virtio-mem
>  (it's not officially supported by QEMU yet).
>
>Special thanks goes to David Hildebrand for testing these patches and
>giving valuable feedback.
>
>Michal Prívozník (16):
>  virhostmem: Introduce virHostMemGetTHPSize()
>  qemu_capabilities: Introduce QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI
>  qemu_capabilities: Introduce QEMU_CAPS_MEMORY_BACKEND_RESERVE
>  conf: Introduce virtio-mem <memory/> model
>  qemu: Build command line for virtio-mem
>  qemu: Wire up <memory/> live update
>  qemu: Wire up <memory/> offline update
>  Introduce <current/> property to virtio-mem
>  conf: Introduce virDomainMemoryFindByDeviceAlias()
>  qemu: Wire up MEMORY_DEVICE_SIZE_CHANGE event
>  qemu: Refresh the current size of virtio-mem on monitor reconnect
>  qemu: Account for both memballoon and virtio-mem
>  qemuDomainSetMemoryFlags: Take virtio-mem into consideration
>  virsh: Introduce update-memory-device command
>  news: document recent virtio memory addition
>  kbase: Document virtio-mem
>
> NEWS.rst                                      |   7 +
> docs/formatdomain.rst                         |  45 ++-
> docs/kbase/index.rst                          |   4 +
> docs/kbase/memorydevices.rst                  | 150 ++++++++++
> docs/kbase/meson.build                        |   1 +
> docs/manpages/virsh.rst                       |  30 ++
> docs/schemas/domaincommon.rng                 |  16 ++
> examples/c/misc/event-test.c                  |  17 ++
> include/libvirt/libvirt-domain.h              |  24 ++
> src/conf/domain_conf.c                        | 126 ++++++++-
> src/conf/domain_conf.h                        |  16 ++
> src/conf/domain_event.c                       |  84 ++++++
> src/conf/domain_event.h                       |  10 +
> src/conf/domain_validate.c                    |  39 +++
> src/libvirt_private.syms                      |   5 +
> src/qemu/qemu_alias.c                         |  10 +-
> src/qemu/qemu_capabilities.c                  |   6 +
> src/qemu/qemu_capabilities.h                  |   4 +
> src/qemu/qemu_command.c                       |  29 +-
> src/qemu/qemu_domain.c                        |  33 ++-
> src/qemu/qemu_domain.h                        |   1 +
> src/qemu/qemu_domain_address.c                |  38 ++-
> src/qemu/qemu_driver.c                        | 259 +++++++++++++++++-
> src/qemu/qemu_hotplug.c                       |  18 ++
> src/qemu/qemu_hotplug.h                       |   5 +
> src/qemu/qemu_monitor.c                       |  34 +++
> src/qemu/qemu_monitor.h                       |  28 ++
> src/qemu/qemu_monitor_json.c                  |  97 +++++--
> src/qemu/qemu_monitor_json.h                  |   5 +
> src/qemu/qemu_process.c                       |  72 +++++
> src/qemu/qemu_validate.c                      |   8 +
> src/remote/remote_daemon_dispatch.c           |  30 ++
> src/remote/remote_driver.c                    |  32 +++
> src/remote/remote_protocol.x                  |  15 +-
> src/remote_protocol-structs                   |   7 +
> src/security/security_apparmor.c              |   1 +
> src/security/security_dac.c                   |   2 +
> src/security/security_selinux.c               |   2 +
> src/util/virhostmem.c                         |  54 ++++
> src/util/virhostmem.h                         |   3 +
> tests/domaincapsmock.c                        |   9 +
> .../caps_5.1.0.x86_64.xml                     |   1 +
> .../caps_5.2.0.x86_64.xml                     |   1 +
> .../caps_6.0.0.x86_64.xml                     |   1 +
> .../caps_6.1.0.x86_64.xml                     |   2 +
> ...mory-hotplug-virtio-mem.x86_64-latest.args |  41 +++
> .../memory-hotplug-virtio-mem.xml             |  67 +++++
> tests/qemuxml2argvtest.c                      |   1 +
> ...emory-hotplug-virtio-mem.x86_64-latest.xml |   1 +
> tests/qemuxml2xmltest.c                       |   1 +
> tools/virsh-domain.c                          | 181 ++++++++++++
> 51 files changed, 1617 insertions(+), 56 deletions(-)
> create mode 100644 docs/kbase/memorydevices.rst
> create mode 100644 tests/qemuxml2argvdata/memory-hotplug-virtio-mem.x86_64-latest.args
> create mode 100644 tests/qemuxml2argvdata/memory-hotplug-virtio-mem.xml
> create mode 120000 tests/qemuxml2xmloutdata/memory-hotplug-virtio-mem.x86_64-latest.xml
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210921/b8abe6ba/attachment-0001.sig>


More information about the libvir-list mailing list