[libvirt] [PATCH 0/3] start of patches to support VFIO device assignment

Laine Stump laine at laine.org
Tue Apr 23 16:45:53 UTC 2013


This work isn't finished, but since there's a freeze coming up in a
few days, I thought I should send these patches that *are* finished to
get them out of the way before the last minute rush.

Patch 1 is trivial.

Patch 2 is longer, but completely mechanical (NOTE: there may be some
uses of that struct living in code that I lack the environment to
compile for, so test builds by people with odd platforms would be
appreciated!)

Patch 3 is standard parser/formatter/RNG/docs for the new XML. I
haven't added any test cases, because lacking backend functionality I
could only test xml-to-xml, which would require adding yet another
test xml file, and I'd rather wait until the backend
commandline-building code is in place, then simply add the new element
to a few existing test XML files.

In email awhile ago, danpb had suggested

  <driver name='vfio|qemu'/>

I've used

  <driver name='kvm'/>

because, unlike vhost-net where <driver name='qemu'/> indicates that
the driver used is in the usermode qemu process (and *not* in the
kernel), in this case <driver name='kvm'/> indicates that the driver
used is in the kernel (and I've seen it referenced in several places
as being "done by KVM", but never as "done by QEMU" (makes sense,
since qemu is all in userland)


Laine Stump (3):
  qemu: detect vfio-pci device assignment support
  conf: put hostdev pci address in a struct
  conf: formatter/parser/RNG/docs for hostdev <driver name='kvm|vfio'/>

 docs/formatdomain.html.in        | 42 ++++++++++++++++++++-
 docs/formatnetwork.html.in       | 15 ++++++++
 docs/schemas/domaincommon.rng    | 79 ++++++++++++++++++++++++++--------------
 docs/schemas/network.rng         | 11 ++++++
 src/conf/domain_audit.c          |  8 ++--
 src/conf/domain_conf.c           | 48 +++++++++++++++++++++---
 src/conf/domain_conf.h           | 15 +++++++-
 src/network/bridge_driver.c      | 24 ++++++------
 src/qemu/qemu_capabilities.c     |  3 ++
 src/qemu/qemu_capabilities.h     |  1 +
 src/qemu/qemu_command.c          | 34 ++++++++---------
 src/qemu/qemu_hostdev.c          | 42 ++++++++++-----------
 src/qemu/qemu_hotplug.c          | 14 +++----
 src/security/security_apparmor.c |  8 ++--
 src/security/security_dac.c      | 16 ++++----
 src/security/security_selinux.c  | 16 ++++----
 src/security/virt-aa-helper.c    | 10 ++---
 src/xen/xend_internal.c          | 10 ++---
 src/xenxs/xen_sxpr.c             | 16 ++++----
 src/xenxs/xen_xm.c               | 16 ++++----
 20 files changed, 286 insertions(+), 142 deletions(-)

-- 
1.7.11.7




More information about the libvir-list mailing list