[Libvirt-cim] [PATCH] Relax the KVM type detection logic

Dan Smith danms at us.ibm.com
Fri Jan 11 15:01:44 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1200067225 28800
# Node ID a353b12b24858b16b3b6d77940178f5cd672bdce
# Parent  4ae48640b6dfaf77c60300aa2f41a3be9395bf83
Relax the KVM type detection logic
since it was too strict for no reason.

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r 4ae48640b6df -r a353b12b2485 libxkutil/device_parsing.c
--- a/libxkutil/device_parsing.c	Fri Jan 11 07:59:47 2008 -0800
+++ b/libxkutil/device_parsing.c	Fri Jan 11 08:00:25 2008 -0800
@@ -652,8 +652,7 @@ static int parse_os(struct domain *domin
         if ((STREQC(dominfo->os_info.fv.type, "hvm")) &&
             (STREQC(dominfo->typestr, "xen")))
                 dominfo->type = DOMAIN_XENFV;
-        else if ((STREQC(dominfo->os_info.fv.type, "hvm")) &&
-                 (STREQC(dominfo->typestr, "kvm")))
+        else if (STREQC(dominfo->typestr, "kvm"))
                 dominfo->type = DOMAIN_KVM;
         else if (STREQC(dominfo->os_info.pv.type, "linux"))
                 dominfo->type = DOMAIN_XENPV;




More information about the Libvirt-cim mailing list