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.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
Signed-off-by: Denis V. Lunev <d...@openvz.org>
CC: Stefan Hajnoczi <stefa...@redhat.com>
CC: Xiao Guangrong <guangrong.x...@linux.intel.com>
CC: "Michael S. Tsirkin" <m...@redhat.com>
CC: Igor Mammedov <imamm...@redhat.com>
CC: Eric Blake <ebl...@redhat.com>
CC: Markus Armbruster <arm...@redhat.com>

v3:
- do not use additional class variable

Vladimir Sementsov-Ogievskiy (2):
  move get_current_ram_size to virtio-balloon.c
  nvdimm: disable balloon

 hw/mem/pc-dimm.c                | 28 ++--------------------------
 hw/virtio/virtio-balloon.c      | 28 ++++++++++++++++++++++++++++
 include/exec/cpu-common.h       |  1 -
 qapi-schema.json                |  5 ++++-
 stubs/qmp_pc_dimm_device_list.c |  5 -----
 5 files changed, 34 insertions(+), 33 deletions(-)

-- 
2.5.0


Reply via email to