]> git.proxmox.com Git - mirror_qemu.git/commit - softmmu/physmem.c
memory: Fix wrong end address dump
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Wed, 22 Jun 2022 09:59:12 +0000 (17:59 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 8 Nov 2022 20:53:40 +0000 (15:53 -0500)
commitf9c307c3f9dfda64355fd2c6d73b002913d6752c
tree4cfa307af03574c1ca8c92c8fc1925bf74f3a439
parentbc5add1dadcc140fef9af4fe215167e796cd1a58
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: 5e8fd947e2670 ("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>
softmmu/physmem.c