diff options
author | Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> | 2021-03-29 10:43:12 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-05-14 10:26:18 -0400 |
commit | b8893a3c862111fa1c530c4be6f7426e7f07bf1e (patch) | |
tree | 86f22b896a2b653562034eadf63caa348542099c /include | |
parent | 05dfb447a4e11b32d4ed94f73629c497235fc3dc (diff) | |
download | qemu-b8893a3c862111fa1c530c4be6f7426e7f07bf1e.zip qemu-b8893a3c862111fa1c530c4be6f7426e7f07bf1e.tar.gz qemu-b8893a3c862111fa1c530c4be6f7426e7f07bf1e.tar.bz2 |
hw/virtio: enable ioeventfd configuring for mmio
This patch adds ioeventfd flag for virtio-mmio configuration.
It allows switching ioeventfd on and off.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id: <161700379211.1135943.8859209566937991305.stgit@pasha-ThinkPad-X280>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio-mmio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-mmio.h b/include/hw/virtio/virtio-mmio.h index d4c4c38..090f773 100644 --- a/include/hw/virtio/virtio-mmio.h +++ b/include/hw/virtio/virtio-mmio.h @@ -49,12 +49,17 @@ typedef struct VirtIOMMIOQueue { uint32_t used[2]; } VirtIOMMIOQueue; +#define VIRTIO_IOMMIO_FLAG_USE_IOEVENTFD_BIT 1 +#define VIRTIO_IOMMIO_FLAG_USE_IOEVENTFD \ + (1 << VIRTIO_IOMMIO_FLAG_USE_IOEVENTFD_BIT) + struct VirtIOMMIOProxy { /* Generic */ SysBusDevice parent_obj; MemoryRegion iomem; qemu_irq irq; bool legacy; + uint32_t flags; /* Guest accessible state needing migration and reset */ uint32_t host_features_sel; uint32_t guest_features_sel; |