qemu/hw/mem
Xiao Guangrong 2aece63c8a hostmem: detect host backend memory is being used properly
Currently, we use memory_region_is_mapped() to detect if the host
backend memory is being used. This works if the memory is directly
mapped into guest's address space, however, it is not true for
nvdimm as it uses aliased memory region to map the memory. This is
why this bug can happen:
   https://bugzilla.redhat.com/show_bug.cgi?id=1352769

Fix it by introduce a new filed, is_mapped, to HostMemoryBackend,
we set/clear this filed accordingly when the device link/unlink to
host backend memory

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-07-13 13:30:04 +02:00
..
Makefile.objs nvdimm: implement NVDIMM device abstract 2015-12-22 18:39:20 +02:00
nvdimm.c nvdimm: support nvdimm label 2016-06-24 05:13:57 +03:00
pc-dimm.c hostmem: detect host backend memory is being used properly 2016-07-13 13:30:04 +02:00