[PATCH v2 00/13] Introduce virtio-mem <memory/> model

Michal Privoznik posted 13 patches 3 years, 2 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
NEWS.rst                                      |   7 +
docs/formatdomain.rst                         |  58 ++++-
docs/kbase/index.rst                          |   4 +
docs/kbase/memorydevices.rst                  | 160 ++++++++++++++
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              |  23 ++
src/conf/domain_conf.c                        | 115 +++++++++-
src/conf/domain_conf.h                        |  15 ++
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                  |   2 +
src/qemu/qemu_capabilities.h                  |   1 +
src/qemu/qemu_command.c                       |  13 +-
src/qemu/qemu_domain.c                        |  67 +++++-
src/qemu/qemu_domain.h                        |   1 +
src/qemu/qemu_domain_address.c                |  38 +++-
src/qemu/qemu_driver.c                        | 209 +++++++++++++++++-
src/qemu/qemu_hotplug.c                       |  18 ++
src/qemu/qemu_hotplug.h                       |   5 +
src/qemu/qemu_monitor.c                       |  37 ++++
src/qemu/qemu_monitor.h                       |  27 +++
src/qemu/qemu_monitor_json.c                  |  95 ++++++--
src/qemu/qemu_monitor_json.h                  |   5 +
src/qemu/qemu_process.c                       | 101 +++++++--
src/qemu/qemu_validate.c                      |  22 +-
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                         |  63 ++++++
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 +
...mory-hotplug-virtio-mem.x86_64-latest.args |  48 ++++
.../memory-hotplug-virtio-mem.xml             |  64 ++++++
tests/qemuxml2argvtest.c                      |   1 +
...emory-hotplug-virtio-mem.x86_64-latest.xml |   1 +
tests/qemuxml2xmltest.c                       |   1 +
tools/virsh-domain.c                          | 170 ++++++++++++++
50 files changed, 1619 insertions(+), 68 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
[PATCH v2 00/13] Introduce virtio-mem <memory/> model
Posted by Michal Privoznik 3 years, 2 months ago
v2 of:

https://listman.redhat.com/archives/libvir-list/2021-January/msg00965.html

diff to v1:
- Rebased onto current master
- Introduced new MEMORY_DEVICE_SIZE_CHANGE event
- Forbade using virtio-mem among with memballoon
- Wrote kbase article
- Hopefully, worked in all Peter's review suggestions

New patches in this series: 02, 03, 09, 13. The rest was more or less
okay. Daniel ACKed it. I will amend his tag to respective commit message
before pushing.

Michal Prívozník (13):
  virhostmem: Introduce virHostMemGetTHPSize()
  qemu_process: Deduplicate code in qemuProcessNeedHugepagesPath()
  qemu_process: Drop needless check in
    qemuProcessNeedMemoryBackingPath()
  qemu_capabilities: Introduce QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI
  conf: Introduce virtio-mem <memory/> model
  qemu: Build command line for virtio-mem
  qemu: Wire up <memory/> live update
  qemu: Wire up MEMORY_DEVICE_SIZE_CHANGE event
  Introduce MEMORY_DEVICE_SIZE_CHANGE event
  qemu: Refresh the actual size of virtio-mem on monitor reconnect
  virsh: Introduce update-memory command
  news: document recent virtio memory addition
  kbase: Document virtio-mem

 NEWS.rst                                      |   7 +
 docs/formatdomain.rst                         |  58 ++++-
 docs/kbase/index.rst                          |   4 +
 docs/kbase/memorydevices.rst                  | 160 ++++++++++++++
 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              |  23 ++
 src/conf/domain_conf.c                        | 115 +++++++++-
 src/conf/domain_conf.h                        |  15 ++
 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                  |   2 +
 src/qemu/qemu_capabilities.h                  |   1 +
 src/qemu/qemu_command.c                       |  13 +-
 src/qemu/qemu_domain.c                        |  67 +++++-
 src/qemu/qemu_domain.h                        |   1 +
 src/qemu/qemu_domain_address.c                |  38 +++-
 src/qemu/qemu_driver.c                        | 209 +++++++++++++++++-
 src/qemu/qemu_hotplug.c                       |  18 ++
 src/qemu/qemu_hotplug.h                       |   5 +
 src/qemu/qemu_monitor.c                       |  37 ++++
 src/qemu/qemu_monitor.h                       |  27 +++
 src/qemu/qemu_monitor_json.c                  |  95 ++++++--
 src/qemu/qemu_monitor_json.h                  |   5 +
 src/qemu/qemu_process.c                       | 101 +++++++--
 src/qemu/qemu_validate.c                      |  22 +-
 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                         |  63 ++++++
 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 +
 ...mory-hotplug-virtio-mem.x86_64-latest.args |  48 ++++
 .../memory-hotplug-virtio-mem.xml             |  64 ++++++
 tests/qemuxml2argvtest.c                      |   1 +
 ...emory-hotplug-virtio-mem.x86_64-latest.xml |   1 +
 tests/qemuxml2xmltest.c                       |   1 +
 tools/virsh-domain.c                          | 170 ++++++++++++++
 50 files changed, 1619 insertions(+), 68 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

-- 
2.26.2