memory: handle alias in memory_region_is_iommu()
Cc: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
efcd38c529
commit
12d37882f0
@ -628,6 +628,9 @@ static inline bool memory_region_is_romd(MemoryRegion *mr)
|
||||
*/
|
||||
static inline bool memory_region_is_iommu(MemoryRegion *mr)
|
||||
{
|
||||
if (mr->alias) {
|
||||
return memory_region_is_iommu(mr->alias);
|
||||
}
|
||||
return mr->iommu_ops;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user