Skip to content
  • Gonglei (Arei)'s avatar
    58eaa217
    exec: store RAMBlock pointer into memory region · 58eaa217
    Gonglei (Arei) authored
    
    
    Each RAM memory region has a unique corresponding RAMBlock.
    In the current realization, the memory region only stored
    the ram_addr which means the offset of RAM address space,
    We need to qurey the global ram.list to find the ram block
    by ram_addr if we want to get the ram block, which is very
    expensive.
    
    Now, we store the RAMBlock pointer into memory region
    structure. So, if we know the mr, we can easily get the
    RAMBlock.
    
    Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
    Message-Id: <1456130097-4208-2-git-send-email-arei.gonglei@huawei.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    58eaa217
    exec: store RAMBlock pointer into memory region
    Gonglei (Arei) authored
    
    
    Each RAM memory region has a unique corresponding RAMBlock.
    In the current realization, the memory region only stored
    the ram_addr which means the offset of RAM address space,
    We need to qurey the global ram.list to find the ram block
    by ram_addr if we want to get the ram block, which is very
    expensive.
    
    Now, we store the RAMBlock pointer into memory region
    structure. So, if we know the mr, we can easily get the
    RAMBlock.
    
    Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
    Message-Id: <1456130097-4208-2-git-send-email-arei.gonglei@huawei.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading