[PULL v2 00/15] Host Memory Backends and Memory devices queue 2024-12-21

David Hildenbrand posted 15 patches 1 day, 22 hours ago
MAINTAINERS                        |   5 +
hw/s390x/Kconfig                   |   1 +
hw/s390x/meson.build               |  10 +-
hw/s390x/s390-hypercall.c          |  85 ++++++++++++++
hw/s390x/s390-hypercall.h          |  25 ++++
hw/s390x/s390-skeys.c              |   6 +-
hw/s390x/s390-stattrib-kvm.c       |  67 +++++++----
hw/s390x/s390-virtio-ccw.c         | 160 +++++++++++++++++---------
hw/s390x/s390-virtio-hcall.c       |  41 -------
hw/s390x/s390-virtio-hcall.h       |  25 ----
hw/s390x/sclp.c                    |  17 +--
hw/s390x/virtio-ccw-md-stubs.c     |  24 ++++
hw/s390x/virtio-ccw-md.c           | 153 +++++++++++++++++++++++++
hw/s390x/virtio-ccw-md.h           |  44 ++++++++
hw/s390x/virtio-ccw-mem.c          | 226 +++++++++++++++++++++++++++++++++++++
hw/s390x/virtio-ccw-mem.h          |  34 ++++++
hw/virtio/Kconfig                  |   1 +
hw/virtio/virtio-mem.c             | 107 ++++++++++++------
include/hw/s390x/s390-virtio-ccw.h |   9 ++
include/hw/virtio/virtio-mem.h     |  13 ++-
target/s390x/cpu-sysemu.c          |  15 ---
target/s390x/cpu.h                 |   2 -
target/s390x/kvm/kvm.c             |  21 +---
target/s390x/kvm/pv.c              |   2 +-
target/s390x/tcg/misc_helper.c     |  10 +-
25 files changed, 874 insertions(+), 229 deletions(-)
create mode 100644 hw/s390x/s390-hypercall.c
create mode 100644 hw/s390x/s390-hypercall.h
delete mode 100644 hw/s390x/s390-virtio-hcall.c
delete mode 100644 hw/s390x/s390-virtio-hcall.h
create mode 100644 hw/s390x/virtio-ccw-md-stubs.c
create mode 100644 hw/s390x/virtio-ccw-md.c
create mode 100644 hw/s390x/virtio-ccw-md.h
create mode 100644 hw/s390x/virtio-ccw-mem.c
create mode 100644 hw/s390x/virtio-ccw-mem.h
[PULL v2 00/15] Host Memory Backends and Memory devices queue 2024-12-21
Posted by David Hildenbrand 1 day, 22 hours ago
Hi,

this is the updated pull request from 2024-12-18; gitlab-ci seems to
be happy with it (container,build,avocado tests).

The following changes since commit 9863d46a5a25bfff7d2195ad5e3127ab3bae0a2b:

  Merge tag 'pull-loongarch-20241219' of https://gitlab.com/bibo-mao/qemu into staging (2024-12-19 15:46:43 -0500)

are available in the Git repository at:

  https://github.com/davidhildenbrand/qemu.git tags/mem-2024-12-21

for you to fetch changes up to aa910c20ec5f3b10551da19e441b3e2b54406e25:

  s390x: virtio-mem support (2024-12-21 20:15:06 +0100)

----------------------------------------------------------------
Hi,

"Host Memory Backends" and "Memory devices" queue ("mem"):
- Fixup handling of virtio-mem unplug during system resets, as
  preparation for s390x support (especially kdump in the Linux guest)
- virtio-mem support for s390x

----------------------------------------------------------------
David Hildenbrand (15):
      virtio-mem: unplug memory only during system resets, not device resets
      s390x/s390-virtio-ccw: don't crash on weird RAM sizes
      s390x/s390-virtio-hcall: remove hypercall registration mechanism
      s390x/s390-virtio-hcall: prepare for more diag500 hypercalls
      s390x: rename s390-virtio-hcall* to s390-hypercall*
      s390x/s390-virtio-ccw: move setting the maximum guest size from sclp to machine code
      s390x: introduce s390_get_memory_limit()
      s390x/s390-hypercall: introduce DIAG500 STORAGE_LIMIT
      s390x/s390-stattrib-kvm: prepare for memory devices and sparse memory layouts
      s390x/s390-skeys: prepare for memory devices
      s390x/s390-virtio-ccw: prepare for memory devices
      s390x/pv: prepare for memory devices
      s390x: remember the maximum page size
      s390x/virtio-ccw: add support for virtio based memory devices
      s390x: virtio-mem support

 MAINTAINERS                        |   5 +
 hw/s390x/Kconfig                   |   1 +
 hw/s390x/meson.build               |  10 +-
 hw/s390x/s390-hypercall.c          |  85 ++++++++++++++
 hw/s390x/s390-hypercall.h          |  25 ++++
 hw/s390x/s390-skeys.c              |   6 +-
 hw/s390x/s390-stattrib-kvm.c       |  67 +++++++----
 hw/s390x/s390-virtio-ccw.c         | 160 +++++++++++++++++---------
 hw/s390x/s390-virtio-hcall.c       |  41 -------
 hw/s390x/s390-virtio-hcall.h       |  25 ----
 hw/s390x/sclp.c                    |  17 +--
 hw/s390x/virtio-ccw-md-stubs.c     |  24 ++++
 hw/s390x/virtio-ccw-md.c           | 153 +++++++++++++++++++++++++
 hw/s390x/virtio-ccw-md.h           |  44 ++++++++
 hw/s390x/virtio-ccw-mem.c          | 226 +++++++++++++++++++++++++++++++++++++
 hw/s390x/virtio-ccw-mem.h          |  34 ++++++
 hw/virtio/Kconfig                  |   1 +
 hw/virtio/virtio-mem.c             | 107 ++++++++++++------
 include/hw/s390x/s390-virtio-ccw.h |   9 ++
 include/hw/virtio/virtio-mem.h     |  13 ++-
 target/s390x/cpu-sysemu.c          |  15 ---
 target/s390x/cpu.h                 |   2 -
 target/s390x/kvm/kvm.c             |  21 +---
 target/s390x/kvm/pv.c              |   2 +-
 target/s390x/tcg/misc_helper.c     |  10 +-
 25 files changed, 874 insertions(+), 229 deletions(-)
 create mode 100644 hw/s390x/s390-hypercall.c
 create mode 100644 hw/s390x/s390-hypercall.h
 delete mode 100644 hw/s390x/s390-virtio-hcall.c
 delete mode 100644 hw/s390x/s390-virtio-hcall.h
 create mode 100644 hw/s390x/virtio-ccw-md-stubs.c
 create mode 100644 hw/s390x/virtio-ccw-md.c
 create mode 100644 hw/s390x/virtio-ccw-md.h
 create mode 100644 hw/s390x/virtio-ccw-mem.c
 create mode 100644 hw/s390x/virtio-ccw-mem.h

-- 
2.47.1
Re: [PULL v2 00/15] Host Memory Backends and Memory devices queue 2024-12-21
Posted by Stefan Hajnoczi 20 hours ago
Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/10.0 for any user-visible changes.