Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 1d34bd5ae937157c68c1d2a605bb0b67 > files > 12

libvirt-0.6.3-20.1.el5_4.src.rpm

diff -rup libvirt-0.6.3/src/qemu_driver.c libvirt-0.6.3.new/src/qemu_driver.c
--- libvirt-0.6.3/src/qemu_driver.c	2009-06-09 18:04:34.000000000 +0100
+++ libvirt-0.6.3.new/src/qemu_driver.c	2009-06-10 16:34:57.000000000 +0100
@@ -1738,23 +1738,6 @@ qemudMonitorCommand(const virDomainObjPt
 }
 
 
-/**
- * qemudProbe:
- *
- * Probe for the availability of the qemu driver, assume the
- * presence of QEmu emulation if the binaries are installed
- */
-static int qemudProbe(void)
-{
-    if ((virFileExists("/usr/bin/qemu")) ||
-        (virFileExists("/usr/bin/qemu-kvm")) ||
-        (virFileExists("/usr/bin/kvm")) ||
-        (virFileExists("/usr/bin/xenner")))
-        return 1;
-
-    return 0;
-}
-
 static virDrvOpenStatus qemudOpen(virConnectPtr conn,
                                   virConnectAuthPtr auth ATTRIBUTE_UNUSED,
                                   int flags ATTRIBUTE_UNUSED) {
@@ -1763,9 +1746,6 @@ static virDrvOpenStatus qemudOpen(virCon
     if (qemu_driver == NULL)
         goto decline;
 
-    if (!qemudProbe())
-        goto decline;
-
     if (conn->uri == NULL) {
         conn->uri = xmlParseURI(uid ? "qemu:///session" : "qemu:///system");
         if (!conn->uri) {