Received: from eggs.gnu.org ([2001:4830:134:3::10]:48786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2LJD-0000YD-CP for qemu-devel@nongnu.org; Thu, 03 Nov 2016 12:56:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2LJ8-000218-JR for qemu-devel@nongnu.org; Thu, 03 Nov 2016 12:56:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36386) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2LJ8-00020q-8A for qemu-devel@nongnu.org; Thu, 03 Nov 2016 12:56:06 -0400 References: <1478165243-4767-1-git-send-email-jasowang@redhat.com> <1478165243-4767-11-git-send-email-jasowang@redhat.com> From: Paolo Bonzini Message-ID: <984fb97a-4800-805e-8c06-fedbeb20fa9c@redhat.com> Date: Thu, 3 Nov 2016 17:56:00 +0100 MIME-Version: 1.0 In-Reply-To: <1478165243-4767-11-git-send-email-jasowang@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V2 10/11] memory: handle alias in memory_region_is_iommu() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang , mst@redhat.com, peterx@redhat.com, wexu@redhat.com, qemu-devel@nongnu.org Cc: vkaplans@redhat.com, cornelia.huck@de.ibm.com On 03/11/2016 10:27, Jason Wang wrote: > Signed-off-by: Jason Wang > --- > 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