[libvirt] [PATCH 0/8 v7] Unprivileged SG_IO support

Osier Yang jyang at redhat.com
Thu Dec 13 19:05:35 UTC 2012


As a result of RFC [1], this implements the unprivleged SG_IO
support.

v6 - v7:
   * No restoring of unpriv_sgio per Daniel's thought.
   * Use "major:minor" as the hash key per Jirka's suggestion.

Osier Yang (8):
  util: Prepare helpers for unpriv_sgio setting
  qemu: Add a hash table for the shared disks
  docs: Add docs and rng schema for new XML cdbfilter
  conf: Parse and format the new XML tag cdbfilter
  qemu: set unpriv_sgio when domain starting
  qemu: Check if the shared disk's cdbfilter conflicts with others
  qemu: Set unpriv_sgio when attaching disk
  qemu: Error out if the shared disk conf conflicts with others when
    attaching

 docs/formatdomain.html.in                          |   13 ++-
 docs/schemas/domaincommon.rng                      |   52 ++++--
 src/conf/domain_conf.c                             |   58 +++++--
 src/conf/domain_conf.h                             |   10 +
 src/libvirt_private.syms                           |    4 +
 src/qemu/qemu_conf.c                               |   92 ++++++++++
 src/qemu/qemu_conf.h                               |   12 ++
 src/qemu/qemu_driver.c                             |   38 ++++
 src/qemu/qemu_process.c                            |   75 ++++++++
 src/qemu/qemu_process.h                            |    2 +
 src/util/util.c                                    |  180 ++++++++++++++++++++
 src/util/util.h                                    |    8 +
 ...ml2argv-disk-scsi-lun-passthrough-cdbfilter.xml |   32 ++++
 tests/qemuxml2xmltest.c                            |    1 +
 14 files changed, 547 insertions(+), 30 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-lun-passthrough-cdbfilter.xml

[1] https://www.redhat.com/archives/libvir-list/2012-November/msg00988.html
[2] https://www.redhat.com/archives/libvir-list/2012-December/msg00325.html

Regards,
Osier




More information about the libvir-list mailing list