[PATCH 01/11] hyperv: ambiguous VM names will throw an error

Daniel P. Berrangé berrange at redhat.com
Thu Nov 26 14:14:03 UTC 2020


On Tue, Nov 24, 2020 at 02:48:30PM -0500, Matt Coleman wrote:
> Since Hyper-V allows multiple VMs to be created with the same name,
> some commands produce unpredictable results due to
> hypervDomainLookupByName's WMI query selecting the wrong domain.
> 
> For example, this prevents `virsh dumpxml` from outputting XML for the
> wrong domain.
> 
> Signed-off-by: Matt Coleman <matt at datto.com>
> ---
>  include/libvirt/virterror.h | 1 +
>  src/hyperv/hyperv_driver.c  | 7 +++++++
>  src/util/virerror.c         | 6 ++++--
>  3 files changed, 12 insertions(+), 2 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list