Skip to content
  • Zhenzhong Duan's avatar
    f9c307c3
    memory: Fix wrong end address dump · f9c307c3
    Zhenzhong Duan authored
    
    
    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: 5e8fd947 ("memory: Rework "info mtree" to print flat views and dispatch trees")
    Signed-off-by: default avatarZhenzhong Duan <zhenzhong.duan@intel.com>
    Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
    Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
    Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
    Message-Id: <20220622095912.3430583-1-zhenzhong.duan@intel.com>
    Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
    f9c307c3
    memory: Fix wrong end address dump
    Zhenzhong Duan authored
    
    
    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: 5e8fd947 ("memory: Rework "info mtree" to print flat views and dispatch trees")
    Signed-off-by: default avatarZhenzhong Duan <zhenzhong.duan@intel.com>
    Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
    Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
    Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
    Message-Id: <20220622095912.3430583-1-zhenzhong.duan@intel.com>
    Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Loading