On 01/18/2016 07:42 PM, Denis V. Lunev wrote:
From: Vladimir Sementsov-Ogievskiy <address@hidden>
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 ballon almost
immediately inflates balloon and effectively kill the guest as
qemu counts nvdimm as part of the ram.
It looks good me.
However, it is not related to this patch, why not use the 'total memory'
reported
by guest instead? It is more precise as a) BIOS and other components will occupy
available memory and b) guest may limit the memory size it can use...