qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V2 10/11] memory: handle alias in memory_region_


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH V2 10/11] memory: handle alias in memory_region_is_iommu()
Date: Thu, 3 Nov 2016 17:56:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0


On 03/11/2016 10:27, Jason Wang wrote:
> Signed-off-by: Jason Wang <address@hidden>
> ---
>  include/exec/memory.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/exec/memory.h b/include/exec/memory.h
> index e605de3..ab37499 100644
> --- a/include/exec/memory.h
> +++ b/include/exec/memory.h
> @@ -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;
>  }
>  
> 

Acked-by: Paolo Bonzini <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]