]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
vfio: Add vfio_container_ioctl()
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 10 Jun 2014 05:39:22 +0000 (15:39 +1000)
committerAlexander Graf <agraf@suse.de>
Fri, 27 Jun 2014 11:48:23 +0000 (13:48 +0200)
commit6d8be4c3434783a59ae29f7ea6a792b56c812349
treea836f89a33c6e8427449e2cb51eb43c16cecdcd2
parent9bb62a0702dec4e103a3bb820b2a642e75995a56
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>
hw/misc/vfio.c
include/hw/misc/vfio.h [new file with mode: 0644]