mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
05dfb447a4
commit
b8893a3c86
2 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue