Skip to content
  • Paolo Bonzini's avatar
    9d82b5a7
    exec: make iotlb RCU-friendly · 9d82b5a7
    Paolo Bonzini authored
    
    
    After the previous patch, TLBs will be flushed on every change to
    the memory mapping.  This patch augments that with synchronization
    of the MemoryRegionSections referred to in the iotlb array.
    
    With this change, it is guaranteed that iotlb_to_region will access
    the correct memory map, even once the TLB will be accessed outside
    the BQL.
    
    Reviewed-by: default avatarFam Zheng <famz@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    9d82b5a7
    exec: make iotlb RCU-friendly
    Paolo Bonzini authored
    
    
    After the previous patch, TLBs will be flushed on every change to
    the memory mapping.  This patch augments that with synchronization
    of the MemoryRegionSections referred to in the iotlb array.
    
    With this change, it is guaranteed that iotlb_to_region will access
    the correct memory map, even once the TLB will be accessed outside
    the BQL.
    
    Reviewed-by: default avatarFam Zheng <famz@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading