qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 21/30] memory: Add iommu map/unmap notifiers


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 21/30] memory: Add iommu map/unmap notifiers
Date: Thu, 23 May 2013 19:27:23 +0100

On 21 May 2013 11:57, Paolo Bonzini <address@hidden> wrote:
> From: David Gibson <address@hidden>
>
> 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 <address@hidden>
> @@ -423,6 +425,11 @@ static inline bool memory_region_is_romd(MemoryRegion 
> *mr)
>   */
>  bool memory_region_is_iommu(MemoryRegion *mr);
>
> +void memory_region_notify_iommu(MemoryRegion *mr,
> +                                IOMMUTLBEntry entry);
> +void memory_region_register_iommu_notifier(MemoryRegion *mr, Notifier *n);
> +void memory_region_unregister_iommu_notifier(Notifier *n);

These all need doc comments.

The code looks good.

thanks
-- PMM



reply via email to

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