Skip to content

don't use NVDIMM for balooning

Vladimir Sementsov-Ogievskiy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 10 repliesIn review

v6 from the cover letter

add stubbed pc_dimm_build_list, fix compilation for !CONFIG_MEM_HOTPLUG targets - thx to Cornelia.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5move get_current_ram_size to virtio-balloon.chw/mem/pc-dimm.c hw/virtio/virtio-balloon.c include/exec/cpu-common.h +1 more+26 -320 replies
2/5pc-dimm: rename pc_dimm_built_list()hw/mem/pc-dimm.c+3 -31 reply
3/5pc-dimm: add pc_dimm_build_list()hw/mem/pc-dimm.c include/hw/mem/pc-dimm.h stubs/Makefile.objs +2 more+31 -82 replies
4/5virtio-balloon: rewrite get_current_ram_size()hw/virtio/virtio-balloon.c+6 -173 replies
5/5balloon: Use only 'pc-dimm' type dimm for ballooninghw/virtio/virtio-balloon.c+5 -14 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchEric BlakeIgor Mammedov
1/5R-b
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] don't use NVDIMM for balooning

v6:
add stubbed pc_dimm_build_list, fix compilation for !CONFIG_MEM_HOTPLUG targets - thx to Cornelia.

v5: do not use qapi
0002-0004: new patches
0005: white list instead of black list

v4:
0001: Reviewed-by: Eric Blake <[email protected]>
second patch is splitted to 0002 and 0003
0002: Add 'type' field instead of 'balloonable' to PCDIMMDeviceInfo 0003: chec 'type' instead of 'balloonable'

v3:
- do not use additional class variable

NVDIMM for now is planned to use as a backing store for DAX filesystem in the guest and thus this memory is excluded from guest memory management and LRUs.

In this case libvirt running QEMU along with configured balloon almost immediately inflates balloon and effectively kill the guest as qemu counts nvdimm as part of the ram.

Vladimir Sementsov-Ogievskiy (5):
move get_current_ram_size to virtio-balloon.c
pc-dimm: rename pc_dimm_built_list()
pc-dimm: add pc_dimm_build_list()
virtio-balloon: rewrite get_current_ram_size()
balloon: Use only 'pc-dimm' type dimm for ballooning

 hw/mem/pc-dimm.c                | 47 ++++++++++++++++-------------------------
 hw/virtio/virtio-balloon.c      | 19 +++++++++++++++++
 include/exec/cpu-common.h       |  1 -
 include/hw/mem/pc-dimm.h        |  3 +++
 stubs/Makefile.objs             |  2 +-
 stubs/pc_dimm.c                 | 12 +++++++++++
 stubs/qmp_pc_dimm_device_list.c | 12 -----------
 7 files changed, 53 insertions(+), 43 deletions(-)
 create mode 100644 stubs/pc_dimm.c
 delete mode 100644 stubs/qmp_pc_dimm_device_list.c
Signature · 1 line
1.8.3.1