summaryrefslogtreecommitdiffstats
path: root/scripts/tracetool/format/events_h.py
diff options
context:
space:
mode:
authorXiao Guangrong2016-07-13 06:18:06 +0200
committerPaolo Bonzini2016-07-13 13:30:04 +0200
commit2aece63c8a9d2c3a8ff41d2febc4cdeff2633331 (patch)
tree02964fa0c17b241f41f4be55d1381eb8f2b24018 /scripts/tracetool/format/events_h.py
parenthostmem: fix QEMU crash by 'info memdev' (diff)
downloadqemu-2aece63c8a9d2c3a8ff41d2febc4cdeff2633331.tar.gz
qemu-2aece63c8a9d2c3a8ff41d2febc4cdeff2633331.tar.xz
qemu-2aece63c8a9d2c3a8ff41d2febc4cdeff2633331.zip
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>
Diffstat (limited to 'scripts/tracetool/format/events_h.py')
0 files changed, 0 insertions, 0 deletions