[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V4 09/10] memory: handle alias in memory_region_
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [PATCH V4 09/10] memory: handle alias in memory_region_is_iommu() |
Date: |
Tue, 3 Jan 2017 11:42:17 +0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Fri, Dec 30, 2016 at 06:09:18PM +0800, Jason Wang wrote:
> Cc: Paolo Bonzini <address@hidden>
> Acked-by: Paolo Bonzini <address@hidden>
> Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Peter Xu <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 358edfb..bec9756 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;
> }
>
> --
> 2.7.4
>
-- peterx
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH V4 09/10] memory: handle alias in memory_region_is_iommu(),
Peter Xu <=