You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/softmmu
Zhenzhong Duan f9c307c3f9 memory: Fix wrong end address dump
The end address of memory region section isn't correctly calculated
which leads to overflowed mtree dump:

  Dispatch
    Physical sections
      ......
      #70 @0000000000002000..0000000000011fff io [ROOT]
      #71 @0000000000005000..0000000000005fff (noname)
      #72 @0000000000005000..0000000000014fff io [ROOT]
      #73 @0000000000005658..0000000000005658 vmport
      #74 @0000000000005659..0000000000015658 io [ROOT]
      #75 @0000000000006000..0000000000015fff io [ROOT]

After fix:
      #70 @0000000000002000..0000000000004fff io [ROOT]
      #71 @0000000000005000..0000000000005fff (noname)
      #72 @0000000000005000..0000000000005657 io [ROOT]
      #73 @0000000000005658..0000000000005658 vmport
      #74 @0000000000005659..0000000000005fff io [ROOT]
      #75 @0000000000006000..000000000000ffff io [ROOT]

Fixes: 5e8fd947e2 ("memory: Rework "info mtree" to print flat views and dispatch trees")
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20220622095912.3430583-1-zhenzhong.duan@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2 years ago
..
arch_init.c softmmu: Add qemu_init_arch_modules() 3 years ago
balloon.c qapi: Restrict balloon-related commands to machine code 4 years ago
bootdevice.c machine: use QAPI struct for boot configuration 3 years ago
cpu-throttle.c Remove qemu-common.h include from most units 3 years ago
cpu-timers.c Remove qemu-common.h include from most units 3 years ago
cpus.c * Fix and test the VISTR instruction on s390x 2 years ago
datadir.c meson: Prefix each element of firmware path 2 years ago
device_tree.c device-tree: add re-randomization helper function 2 years ago
dirtylimit.c Use g_new() & friends where that makes obvious sense 2 years ago
dma-helpers.c Use g_new() & friends where that makes obvious sense 3 years ago
globals.c ui: Switch "-display sdl" to use the QAPI parser 3 years ago
icount.c replay: rewrite async event handling 2 years ago
ioport.c softmmu: Add missing trace-events file 4 years ago
main.c ui/cocoa: Run qemu_init in the main thread 2 years ago
memory.c vfio: move implement of vfio_get_xlat_addr() to memory.c 2 years ago
memory_mapping.c Use g_new() & friends where that makes obvious sense 3 years ago
meson.build softmmu/dirtylimit: Implement vCPU dirtyrate calculation periodically 2 years ago
physmem.c memory: Fix wrong end address dump 2 years ago
qdev-monitor.c qdev: unplug blocker for devices 2 years ago
qemu-seccomp.c seccomp: Get actual errno value from failed seccomp functions 2 years ago
qtest.c module: add Error arguments to module_load and module_load_qom 2 years ago
rtc.c rtc: Move RTC function prototypes to their own header 3 years ago
runstate-action.c runstate: cleanup reboot and panic actions 4 years ago
runstate.c reset: allow registering handlers that aren't called by snapshot loading 2 years ago
timers-state.h qemu/atomic: Add aligned_{int64,uint64}_t types 3 years ago
tpm.c qapi: More complex uses of QAPI_LIST_APPEND 4 years ago
trace-events softmmu/dirtylimit: Implement virtual CPU throttle 2 years ago
trace.h softmmu: Add missing trace-events file 4 years ago
vl.c Hi, 2 years ago