[libvirt] [PATCH 0/8] domain: Support <address type='pci'/> allocation

Cole Robinson crobinso at redhat.com
Tue Mar 8 16:36:31 UTC 2016


This patch series allows the user to specify bare device
<address type='pci'/> to explicitly request PCI address allocation.

This has several uses, but the motivating one is providing an
easy way to request PCI address allocation where it normally isn't
the default address type, like for aarch64 VMs.


Cole Robinson (8):
  domain: Add virDomainDefAddImplicitDevices
  domain: conf: Export virDomainDefPostParseDevices
  qemu: Assign device addresses in PostParse
  util: xml: add virXMLPropertyCount
  tests: Add failure flags to CompareDomainXML2XML
  domain: Make <address type='pci'/> request address allocation
  qemu: Wire up address type=pci auto_allocate
  tests: qemu: test <address type='pci'/> with aarch64

 docs/schemas/domaincommon.rng                      |  5 +-
 src/conf/domain_conf.c                             | 81 +++++++++++++++++-----
 src/conf/domain_conf.h                             |  8 ++-
 src/libvirt_private.syms                           |  3 +-
 src/qemu/qemu_domain.c                             | 13 +++-
 src/qemu/qemu_domain_address.c                     | 47 +++++++++++++
 src/qemu/qemu_driver.c                             |  6 +-
 src/util/virxml.c                                  | 17 +++++
 src/util/virxml.h                                  |  1 +
 src/vmx/vmx.c                                      |  2 +-
 src/vz/vz_sdk.c                                    |  2 +-
 tests/bhyvexml2xmltest.c                           |  2 +-
 .../generic-pci-autofill-addr.xml                  | 27 ++++++++
 tests/genericxml2xmltest.c                         | 17 +++--
 tests/lxcxml2xmltest.c                             |  2 +-
 .../qemuargv2xmldata/qemuargv2xml-pseries-disk.xml |  4 +-
 ...l2argv-aarch64-virtio-pci-manual-addresses.args |  4 +-
 ...ml2argv-aarch64-virtio-pci-manual-addresses.xml |  5 ++
 .../qemuxml2argv-pci-autofill-addr.args            | 24 +++++++
 .../qemuxml2argv-pci-autofill-addr.xml             | 44 ++++++++++++
 tests/qemuxml2argvtest.c                           | 21 +++---
 ...2xmlout-aarch64-virtio-pci-manual-addresses.xml |  5 ++
 .../qemuxml2xmlout-pci-autofill-addr.xml           | 46 ++++++++++++
 tests/qemuxml2xmltest.c                            | 18 +++--
 tests/testutils.c                                  | 10 ++-
 tests/testutils.h                                  |  4 ++
 26 files changed, 359 insertions(+), 59 deletions(-)
 create mode 100644 tests/genericxml2xmlindata/generic-pci-autofill-addr.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-pci-autofill-addr.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-pci-autofill-addr.xml
 create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-autofill-addr.xml

-- 
2.5.0




More information about the libvir-list mailing list