[PATCH v3 0/8] Enable mshv support for Qemu domains

Praveen K Paladugu posted 8 patches 1 week, 1 day ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20250829202838.8550-1-prapal@linux.microsoft.com
src/conf/schemas/capability.rng               |     1 +
src/qemu/qemu.conf.in                         |     2 +-
src/qemu/qemu_capabilities.c                  |    61 +-
src/qemu/qemu_capabilities.h                  |     1 +
src/qemu/qemu_cgroup.c                        |     2 +-
src/qemu/qemu_command.c                       |     4 +-
src/qemu/qemu_monitor.c                       |    12 +
src/qemu/qemu_monitor.h                       |    12 +-
src/qemu/qemu_monitor_json.c                  |    32 +-
src/qemu/qemu_monitor_json.h                  |    13 +-
src/qemu/test_libvirtd_qemu.aug.in            |     3 +-
.../qemu_10.1.0-q35.x86_64+mshv.xml           |   222 +
.../qemu_10.1.0-tcg.x86_64+mshv.xml           |  1810 +
.../qemu_10.1.0.x86_64+mshv.xml               |   222 +
tests/qemucapabilitiesdata/README.rst         |     5 +
.../caps_10.1.0_x86_64+mshv.replies           | 46912 ++++++++++++++++
.../caps_10.1.0_x86_64+mshv.xml               |  4996 ++
.../qemucaps2xmloutdata/caps.x86_64+mshv.xml  |    29 +
...86_64-q35-headless.x86_64-latest+mshv.args |    48 +
...x86_64-q35-headless.x86_64-latest+mshv.xml |    87 +
...mshv-x86_64-q35-headless.x86_64-latest.err |     1 +
.../mshv-x86_64-q35-headless.xml              |    35 +
tests/qemuxmlconftest.c                       |     5 +
23 files changed, 54495 insertions(+), 20 deletions(-)
create mode 100644 tests/domaincapsdata/qemu_10.1.0-q35.x86_64+mshv.xml
create mode 100644 tests/domaincapsdata/qemu_10.1.0-tcg.x86_64+mshv.xml
create mode 100644 tests/domaincapsdata/qemu_10.1.0.x86_64+mshv.xml
create mode 100644 tests/qemucapabilitiesdata/caps_10.1.0_x86_64+mshv.replies
create mode 100644 tests/qemucapabilitiesdata/caps_10.1.0_x86_64+mshv.xml
create mode 100644 tests/qemucaps2xmloutdata/caps.x86_64+mshv.xml
create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+mshv.args
create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+mshv.xml
create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest.err
create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.xml
[PATCH v3 0/8] Enable mshv support for Qemu domains
Posted by Praveen K Paladugu 1 week, 1 day ago
"[PATCH v3 00/26] Implementing a MSHV (Microsoft Hypervisor) accelerator"
patchset in qemu-devel mailing list introduces MSHV support within Qemu.

With above patchset, Qemu guests can be started with `-accel mshv` option to use
Microsoft Hypervisor (/dev/mshv) as the hypervisor. Retaining Libvirt's naming
convention, this translates to `hyperv` domains. Below is an excerpt of the xml
to use with this patchset:

```
<domain type='hyperv'>
		<name>qemu_msh_testv</name>

		<cpu mode='host-model'/>
  	<os>
    		<type machine='q35'>hvm</type>
  	</os>
		...

```

This patch set introduces the necessary changes within libvirt to support Qemu
guest with hyperv (mshv) hypervisor.

Chages in v3:
- Addressed review comments on v2.
- fixed qemucapabilitiestest case
- Added a case to qemuxmlconftest

Changes in v2:
- Addressed review comments on v1.
- Added a test to verify mshv capabilities.

Praveen K Paladugu (8):
  qemu: introduce mshv capabilities
  qemu: use mshv accel for hyperv domains
  qemu: add /dev/mshv to default cgroup acl
  qemu: probe mshv capabilities
  conf: update capability schema
  tests: Add mshv variant for qemucapabilitiestest
  tests: Add domaincaps and qemucaps case for mshv
  tests: add mshv test to qemuxmlconftest

 src/conf/schemas/capability.rng               |     1 +
 src/qemu/qemu.conf.in                         |     2 +-
 src/qemu/qemu_capabilities.c                  |    61 +-
 src/qemu/qemu_capabilities.h                  |     1 +
 src/qemu/qemu_cgroup.c                        |     2 +-
 src/qemu/qemu_command.c                       |     4 +-
 src/qemu/qemu_monitor.c                       |    12 +
 src/qemu/qemu_monitor.h                       |    12 +-
 src/qemu/qemu_monitor_json.c                  |    32 +-
 src/qemu/qemu_monitor_json.h                  |    13 +-
 src/qemu/test_libvirtd_qemu.aug.in            |     3 +-
 .../qemu_10.1.0-q35.x86_64+mshv.xml           |   222 +
 .../qemu_10.1.0-tcg.x86_64+mshv.xml           |  1810 +
 .../qemu_10.1.0.x86_64+mshv.xml               |   222 +
 tests/qemucapabilitiesdata/README.rst         |     5 +
 .../caps_10.1.0_x86_64+mshv.replies           | 46912 ++++++++++++++++
 .../caps_10.1.0_x86_64+mshv.xml               |  4996 ++
 .../qemucaps2xmloutdata/caps.x86_64+mshv.xml  |    29 +
 ...86_64-q35-headless.x86_64-latest+mshv.args |    48 +
 ...x86_64-q35-headless.x86_64-latest+mshv.xml |    87 +
 ...mshv-x86_64-q35-headless.x86_64-latest.err |     1 +
 .../mshv-x86_64-q35-headless.xml              |    35 +
 tests/qemuxmlconftest.c                       |     5 +
 23 files changed, 54495 insertions(+), 20 deletions(-)
 create mode 100644 tests/domaincapsdata/qemu_10.1.0-q35.x86_64+mshv.xml
 create mode 100644 tests/domaincapsdata/qemu_10.1.0-tcg.x86_64+mshv.xml
 create mode 100644 tests/domaincapsdata/qemu_10.1.0.x86_64+mshv.xml
 create mode 100644 tests/qemucapabilitiesdata/caps_10.1.0_x86_64+mshv.replies
 create mode 100644 tests/qemucapabilitiesdata/caps_10.1.0_x86_64+mshv.xml
 create mode 100644 tests/qemucaps2xmloutdata/caps.x86_64+mshv.xml
 create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+mshv.args
 create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+mshv.xml
 create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest.err
 create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.xml

-- 
2.50.1