Skip to content

Object-based physical memory management

Avi Kivity qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Add PhysicalMemoryRegion typecpu-all.h exec.c+55 -02 replies
2/3Add PCI memory region registrationhw/pci.c hw/pci.h+103 -110 replies
3/3Convert RTL8139 to use PCI memory regitration facilityhw/rtl8139.c+5 -100 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] Object-based physical memory management

Currently, qemu manages physical memory at a page granularity (and with subpage, at a byte granularity). This is expensive in memory and runtime (requiring 8 bytes per page, and likely a cache miss on access), and is difficult to manage: devices must remember their ranges so they can free them, and the memory system has no insight into how memory is laid out.

This patchset introduces object-based memory management. The first patch adds objects and functions for memory regions; the second patch wraps this for PCI; and the third converts RTL8139 as an example.

Avi Kivity (3):
Add PhysicalMemoryRegion type
Add PCI memory region registration
Convert RTL8139 to use PCI memory regitration facility

 cpu-all.h    |   13 +++++++++
 exec.c       |   42 +++++++++++++++++++++++++++++++
 hw/pci.c     |   78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 hw/pci.h     |   26 +++++++++++++++++++
 hw/rtl8139.c |   15 +++-------
 5 files changed, 163 insertions(+), 11 deletions(-)