Skip to content

proposal to make hostmem listener RAM unplug safe

Liu Ping Fan qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v26 patches 12 repliesSuperseded
  3. v15 patches 29 repliesSuperseded

Changes in v3 from the cover letter

1.Drop the memory region's ref in virtio-blk. Now all the reference are kept inside Vring.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hostmem: make hostmem single, not per Vring relatedexec.c hw/virtio/dataplane/hostmem.c hw/virtio/dataplane/vring.c +2 more+34 -260 replies
2/5hostmem: AddressSpace has its own map and maintained by RCU prepared stylehw/virtio/dataplane/hostmem.c include/hw/virtio/dataplane/hostmem.h+103 -500 replies
3/5memory: add ref/unref interface for MemroyRegionOpsinclude/exec/memory.h memory.c+28 -00 replies
4/5hostmem: hostmem listener pin RAM-Device by refcnthw/virtio/dataplane/hostmem.c hw/virtio/dataplane/vring.c include/hw/virtio/dataplane/hostmem.h+26 -100 replies
5/5Vring: use hostmem's RAM safe apihw/block/dataplane/virtio-blk.c hw/virtio/dataplane/vring.c include/hw/virtio/dataplane/vring.h+89 -270 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/5] proposal to make hostmem listener RAM unplug safe

Open issue:
As to [PATCH v3 2/5] hostmem: AddressSpace has its own map and maintained by RCU prepared style, Paolo may want to use memory_region_find() to re-implement hostmem. It is still under discussion

v2->v3:
1.Drop the memory region's ref in virtio-blk. Now all the reference are kept inside Vring.

v1->v2:
1.split RCU prepared style update and monitor the RAM-Device refcnt into two patches (patch 2,4) 2.introduce AddrSpaceMem, which is similar to HostMem, but based on address space, while
the original HostMem only server system memory address space

*** BLURB HERE ***

Liu Ping Fan (5):
hostmem: make hostmem single, not per Vring related
hostmem: AddressSpace has its own map and maintained by RCU prepared
style
memory: add ref/unref interface for MemroyRegionOps
hostmem: hostmem listener pin RAM-Device by refcnt
Vring: use hostmem's RAM safe api

 exec.c                                |    2 +
 hw/block/dataplane/virtio-blk.c       |    8 --
 hw/virtio/dataplane/hostmem.c         |  150 ++++++++++++++++++++++++---------
 hw/virtio/dataplane/vring.c           |   98 ++++++++++++++++-----
 include/exec/memory.h                 |   10 ++
 include/hw/virtio/dataplane/hostmem.h |   33 +++++---
 include/hw/virtio/dataplane/vring.h   |   16 ++++-
 memory.c                              |   18 ++++
 8 files changed, 251 insertions(+), 84 deletions(-)
Signature · 1 line
1.7.4.4