[PATCH 0/8] hyperv: implement new APIs & more

mcoleman at datto.com mcoleman at datto.com
Thu Oct 1 21:47:09 UTC 2020

From: Matt Coleman <matt at datto.com>

These patches fix a couple bugs, consolidate duplicate code, and 
implement several APIs.

Currently, some interactions with Hyper-V systems fail when the system 
is not configured for the "en-US" locale. Additionally, some CPU names 
also contain the clock frequency, making it too long for 
_virNodeInfo.model. The first two patches fix these bugs.

The second two patches clean up the code a little: one moves repeated 
operations into new helper functions; the other replaces the generic 
"get WMI class list" functions with a macro.

The last four patches implement the following APIs in the Hyper-V 
 * virConnectGetCapabilities()
 * virConnectGetMaxVcpus()
 * virConnectGetVersion()
 * virDomainGetAutostart()

Matt Coleman (8):
  hyperv: make Msvm_ComputerSystem WQL queries locale agnostic
  hyperv: fix nodeGetInfo failures caused by long CPU names
  hyperv: break out common lookups into separate functions
  hyperv: replace generic WMI class list helpers with a macro
  hyperv: implement connectGetCapabilities
  hyperv: implement connectGetMaxVcpus
  hyperv: implement connectGetVersion
  hyperv: implement domainGetAutostart

 NEWS.rst                              |  10 +
 src/hyperv/hyperv_driver.c            | 691 ++++++++++++++++++--------
 src/hyperv/hyperv_private.h           |   2 +
 src/hyperv/hyperv_wmi.c               |  87 +---
 src/hyperv/hyperv_wmi.h               |  34 +-
 src/hyperv/hyperv_wmi_classes.h       |   4 +-
 src/hyperv/hyperv_wmi_generator.input |   2 +-
 7 files changed, 524 insertions(+), 306 deletions(-)


More information about the libvir-list mailing list