Skip to contentSkip to conversation

qemu-kvm: MSI-X support

PATCH New Michael S. Tsirkin 1 participant 1 message May 20, 2009 KVM

lore
Share & tools
lore
#0 lore raw

cover qemu-kvm: MSI-X support

Here's a new version of MSI-X support patchset. I have completed save/load support, and added a global option to disable MSI-X.

This is on top of qemu-kvm.git/queue

Todo: split patch up, support configurations without kernel irqchip, apply to upstream qemu.git.

Anthony, please take a look at capability bit support that I added in pci save/load. Does it look sane? Simple version number is not sufficient for msi, because user has an option to turn off msi even in new qemu.

Michael S. Tsirkin (2):
qemu-kvm: add MSI-X support
qemu-kvm: use common code for assigned msix

 Makefile.target        |    2 +-
 hw/device-assignment.c |  329 +++++++++--------------------------
 hw/device-assignment.h |    7 +-
 hw/msix.c              |  454 ++++++++++++++++++++++++++++++++++++++++++++++++
 hw/msix.h              |   38 ++++
 hw/pci.c               |  135 +++++++++++----
 hw/pci.h               |   72 +++++++-
 hw/virtio-balloon.c    |    2 +-
 hw/virtio-blk.c        |    3 +-
 hw/virtio-console.c    |    3 +-
 hw/virtio-net.c        |    3 +-
 hw/virtio.c            |  206 ++++++++++++++++++----
 hw/virtio.h            |    6 +-
 qemu-options.hx        |    2 +
 vl.c                   |    3 +
 15 files changed, 929 insertions(+), 336 deletions(-)
 create mode 100644 hw/msix.c
 create mode 100644 hw/msix.h