[Top][All Lists]

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

Re: [Qemu-devel] [PATCH] vhost: check region type before casting

From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] vhost: check region type before casting
Date: Fri, 20 Jul 2018 10:08:56 +0100

On 20 July 2018 at 09:36, Tiwei Bie <address@hidden> wrote:
> Check region type first before casting the memory region
> to IOMMUMemoryRegion. Otherwise QEMU will abort with below
> error message when casting non-IOMMU memory region:
> vhost_iommu_region_add: Object 0x561f28bce4f0 is not an
> instance of type qemu:iommu-memory-region
> Fixes: cb1efcf462a2 ("iommu: Add IOMMU index argument to notifier APIs")
> Cc: Peter Maydell <address@hidden>
> Signed-off-by: Tiwei Bie <address@hidden>
> ---

Reviewed-by: Peter Maydell <address@hidden>

-- PMM

reply via email to

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