[libvirt] [PATCH v3 0/3] Allow PCI virtio on ARM "virt" machine

Pavel Fedin p.fedin at samsung.com
Mon Jul 6 12:59:24 UTC 2015


Virt machine in qemu since v2.3.0 has PCI generic host controller, and can use
PCI devices. This provides performance improvement as well as vhost-net with
irqfd support for virtio-net. However libvirt currently does not allow ARM virt
machine to have PCI devices. This patchset adds the necessary support.

This version is completely reworked and uses different approach.

Changes since v2:
- Correctly model PCI Express bus on the machine. It is now possible to
  explicitly specify <address-type='pci'> with attributes. This allows to
  attach not only virtio, but any other PCI device to the model.
- Default is not changed and still mmio, for backwards compatibility with
  existing installations. PCI bus has to be explicitly specified.
- Check for the capability in correct place, in v2 it actually did not work
Changes since v1:
- Added capability based on qemu version number
- Recognize also "virt-" prefix

Pavel Fedin (3):
  Introduce QEMU_CAPS_ARM_VIRT_PCI
  Add PCI-Express root to ARM virt machine
  Build correct command line for PCI NICs on ARM

 src/qemu/qemu_capabilities.c |  5 +++++
 src/qemu/qemu_capabilities.h |  1 +
 src/qemu/qemu_command.c      |  3 ++-
 src/qemu/qemu_domain.c       | 12 ++++++++----
 4 files changed, 16 insertions(+), 5 deletions(-)

-- 
1.9.5.msysgit.0




More information about the libvir-list mailing list