[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 2/4] util/vfio-helpers: Report error when IOMMU page size
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v6 2/4] util/vfio-helpers: Report error when IOMMU page size is not supported |
Date: |
Thu, 10 Sep 2020 11:50:15 +0100 |
On Wed, Sep 09, 2020 at 04:23:52PM +0200, Philippe Mathieu-Daudé wrote:
> This driver uses the host page size to align its memory regions,
> but this size is not always compatible with the IOMMU. Add a
> check if the size matches, and bails out with listing the sizes
> the IOMMU supports.
>
> Example on Aarch64:
>
> $ qemu-system-aarch64 -M virt -drive
> if=none,id=nvme0,file=nvme://0006:90:00.0/1,format=raw
> qemu-system-aarch64: -drive
> if=none,id=nvme0,file=nvme://0006:90:00.0/1,format=raw: Unsupported IOMMU
> page size: 4 KiB
> Available page size:
> 64 KiB
> 512 MiB
>
> Suggested-by: Alex Williamson <alex.williamson@redhat.com>
> Reviewed-by: Fam Zheng <fam@euphon.net>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> util/vfio-helpers.c | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
[PATCH v6 4/4] block/nvme: Use qemu_vfio_pci_init_msix_irqs() to initialize our IRQ, Philippe Mathieu-Daudé, 2020/09/09