From 6d8be4c3434783a59ae29f7ea6a792b56c812349 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Tue, 10 Jun 2014 15:39:22 +1000 Subject: vfio: Add vfio_container_ioctl() While most operations with VFIO IOMMU driver are generic and used inside vfio.c, there are still some operations which only specific VFIO IOMMU drivers implement. The first example of it will be reading a DMA window start from the host. This adds a helper which passes an ioctl request to the container's fd. The helper will check if @req is known. For this, stub is added. This return -1 on any requests for now. Signed-off-by: Alexey Kardashevskiy Acked-by: Alex Williamson Acked-by: Alex Williamson Signed-off-by: Alexander Graf --- include/hw/misc/vfio.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/hw/misc/vfio.h (limited to 'include') diff --git a/include/hw/misc/vfio.h b/include/hw/misc/vfio.h new file mode 100644 index 0000000000..0b26cd8e11 --- /dev/null +++ b/include/hw/misc/vfio.h @@ -0,0 +1,9 @@ +#ifndef VFIO_API_H +#define VFIO_API_H + +#include "qemu/typedefs.h" + +extern int vfio_container_ioctl(AddressSpace *as, int32_t groupid, + int req, void *param); + +#endif -- cgit v1.2.3