]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: learn about non-volatile memory region
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 3 Oct 2018 11:44:52 +0000 (15:44 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Nov 2018 20:35:05 +0000 (21:35 +0100)
commitc26763f8ec70b1011098cab0da9178666d8256a5
tree58f08cb76a279fdb86ad4cb36b5c4c6b527488cc
parent1a1435dd61e28c1e3b70971107d72a7d05b28d03
memory: learn about non-volatile memory region

Add a new flag to mark memory region that are used as non-volatile, by
NVDIMM for example. That bit is propagated down to the flat view, and
reflected in HMP info mtree with a "nv-" prefix on the memory type.

This way, guest_phys_blocks_region_add() can skip the NV memory
regions for dumps and TCG memory clear in a following patch.

Cc: dgilbert@redhat.com
Cc: imammedo@redhat.com
Cc: pbonzini@redhat.com
Cc: guangrong.xiao@linux.intel.com
Cc: mst@redhat.com
Cc: xiaoguangrong.eric@gmail.com
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181003114454.5662-2-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/devel/migration.rst
include/exec/memory.h
memory.c