[PATCH 00/11] hyperv: implement defining/undefining domains and

Matt Coleman mcoleman at datto.com
Tue Nov 24 19:48:29 UTC 2020


This series starts by fixing a some dangerous behavior due to ambiguous
VM names, since Hyper-V allows multiple VMs to be defined with the same
name. That meant that `virsh dumpxml` could return XML for the wrong
domain. Additionally, when I implemented `undefine`, it would just
select one of the domains with the given name.

The majority of the series implements defining and undefining domains,
as well as attaching storage devices to domains.

Networking functionality will be in the next patch series.

Here's a GitLab MR, if you'd prefer to review the changes there:
https://gitlab.com/iammattcoleman/libvirt/-/merge_requests/14

Matt Coleman (11):
  hyperv: ambiguous VM names will throw an error
  hyperv: implement domainUndefine and domainUndefineFlags
  hyperv: implement domainCreateXML and domainDefineXML
  hyperv: add hypervMsvmVSMSAddResourceSettings
  hyperv: create SCSI controllers when defining domains
  hyperv: attach virtual disks when defining domains
  hyperv: attach physical disks when defining domains
  hyperv: attach virtual optical disks when defining domains
  hyperv: attach floppy disks when defining domains
  hyperv: implement domainAttachDevice and domainAttachDeviceFlags
  news: defining/undefining domains & device attachment for Hyper-V

 NEWS.rst                        |   7 +-
 include/libvirt/virterror.h     |   1 +
 src/hyperv/hyperv_driver.c      | 881 ++++++++++++++++++++++++++++++++
 src/hyperv/hyperv_wmi.c         |  52 ++
 src/hyperv/hyperv_wmi.h         |   5 +
 src/hyperv/hyperv_wmi_classes.h |   1 +
 src/util/virerror.c             |   6 +-
 7 files changed, 949 insertions(+), 4 deletions(-)

-- 
2.27.0





More information about the libvir-list mailing list