4 * Copyright IBM, Corp. 2007
5 * Copyright (c) 2009 CodeSourcery
11 * This work is licensed under the terms of the GNU GPL, version 2. See
12 * the COPYING file in the top-level directory.
15 #ifndef QEMU_VIRTIO_PCI_H
16 #define QEMU_VIRTIO_PCI_H
18 #include "virtio-net.h"
19 #include "virtio-serial.h"
21 /* Performance improves when virtqueue kick processing is decoupled from the
22 * vcpu thread using ioeventfd for some devices. */
23 #define VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT 1
24 #define VIRTIO_PCI_FLAG_USE_IOEVENTFD (1 << VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT)
30 MemoryRegion msix_bar;
37 uint32_t host_features;
41 virtio_serial_conf serial;
43 bool ioeventfd_disabled;
44 bool ioeventfd_started;
47 void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
48 void virtio_pci_reset(DeviceState *d);
50 /* Virtio ABI version, if we increment this, we break the guest driver. */
51 #define VIRTIO_PCI_ABI_VERSION 0