diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2014-06-10 15:39:22 +1000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-06-27 13:48:23 +0200 |
commit | 6d8be4c3434783a59ae29f7ea6a792b56c812349 (patch) | |
tree | a836f89a33c6e8427449e2cb51eb43c16cecdcd2 /include/hw | |
parent | 9bb62a0702dec4e103a3bb820b2a642e75995a56 (diff) | |
download | hqemu-6d8be4c3434783a59ae29f7ea6a792b56c812349.zip hqemu-6d8be4c3434783a59ae29f7ea6a792b56c812349.tar.gz |
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 <aik@ozlabs.ru>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/misc/vfio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hw/misc/vfio.h b/include/hw/misc/vfio.h new file mode 100644 index 0000000..0b26cd8 --- /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 |