From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiYFj-0003Km-8D for qemu-devel@nongnu.org; Fri, 31 May 2013 18:56:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiYFg-0002Wi-Ub for qemu-devel@nongnu.org; Fri, 31 May 2013 18:56:55 -0400 Received: from mail-vc0-f173.google.com ([209.85.220.173]:62132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiYFg-0002Wd-Qb for qemu-devel@nongnu.org; Fri, 31 May 2013 18:56:52 -0400 Received: by mail-vc0-f173.google.com with SMTP id ht10so1461719vcb.18 for ; Fri, 31 May 2013 15:56:52 -0700 (PDT) Sender: Richard Henderson Message-ID: <51A92AB0.5040201@twiddle.net> Date: Fri, 31 May 2013 15:56:48 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1369948629-2833-1-git-send-email-pbonzini@redhat.com> <1369948629-2833-13-git-send-email-pbonzini@redhat.com> In-Reply-To: <1369948629-2833-13-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 12/21] memory: Add iommu map/unmap notifiers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, David Gibson On 05/30/2013 02:17 PM, Paolo Bonzini wrote: > From: David Gibson > > This patch adds a NotifierList to MemoryRegions which represent IOMMUs > allowing other parts of the code to register interest in mappings or > unmappings from the IOMMU. All IOMMU implementations will need to call > memory_region_notify_iommu() to inform those waiting on the notifier list, > whenever an IOMMU mapping is made or removed. > > Signed-off-by: David Gibson > Signed-off-by: Paolo Bonzini > --- > include/exec/memory.h | 32 ++++++++++++++++++++++++++++++++ > memory.c | 18 ++++++++++++++++++ > 2 files changed, 50 insertions(+) Reviewed-by: Richard Henderson r~