[libvirt PATCH 00/10] Enable hyperv-passthrough

Tim Wiederhake twiederh at redhat.com
Fri Nov 26 14:34:52 UTC 2021


This series enables "hv-passthrough" in libvirt.
See https://bugzilla.redhat.com/show_bug.cgi?id=1851249.

Example usage in VM definition:
  <features>
    <hyperv mode='passthrough'/>
  </features>

Tim Wiederhake (10):
  schema: Wrap hyperv element in choice and group
  schema: Add optional "mode" attribute to hyperv
  conf: domain: Define enum for HyperV mode
  virDomainFeaturesHyperVDefParse: Read attribute "mode" of element
    "hyperv"
  virDomainDefFormatFeatures: Write attribute "mode" of element "hyperv"
  docs: domain: Add documentation for "hyperv"'s new "mode" attribute
  conf: domain: Add hyperv passthrough mode
  schema: hyperv: Add mode "passthrough"
  tests: Add tests for hyperv-passthrough
  docs: domain: Add documentation for hyperv passthrough mode

 docs/formatdomain.rst                         |  13 +-
 docs/schemas/domaincommon.rng                 | 172 ++++++++++--------
 src/conf/domain_conf.c                        |  23 ++-
 src/conf/domain_conf.h                        |   8 +
 src/qemu/qemu_command.c                       |  18 +-
 src/qemu/qemu_validate.c                      |   2 +-
 .../hyperv-passthrough.x86_64-6.1.0.args      |  32 ++++
 .../hyperv-passthrough.x86_64-latest.args     |  32 ++++
 tests/qemuxml2argvdata/hyperv-passthrough.xml |  27 +++
 tests/qemuxml2argvtest.c                      |   2 +
 tests/qemuxml2xmloutdata/hyperv-off.xml       |   2 +-
 .../qemuxml2xmloutdata/hyperv-passthrough.xml |  31 ++++
 .../hyperv-stimer-direct.xml                  |   2 +-
 tests/qemuxml2xmloutdata/hyperv.xml           |   2 +-
 tests/qemuxml2xmltest.c                       |   1 +
 15 files changed, 277 insertions(+), 90 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/hyperv-passthrough.x86_64-6.1.0.args
 create mode 100644 tests/qemuxml2argvdata/hyperv-passthrough.x86_64-latest.args
 create mode 100644 tests/qemuxml2argvdata/hyperv-passthrough.xml
 create mode 100644 tests/qemuxml2xmloutdata/hyperv-passthrough.xml

-- 
2.31.1





More information about the libvir-list mailing list