]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
passthrough: always read default pci passthrough settings
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 4 Feb 2011 16:42:50 +0000 (16:42 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 4 Feb 2011 16:42:50 +0000 (16:42 +0000)
If there are no devices assigned to the domain at boot, we don't read
the default pci passthrough parameters.  This patch fixes it.  Reading
num_devs is completely useless hence I am removing it.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
xenstore.c

index d364a5e2674e8d04c38aa3e76cc06b56d8651c96..eed495553d6cd2282ecbac86707744d1bb80af2e 100644 (file)
@@ -731,18 +731,7 @@ void xenstore_parse_domain_config(int hvm_domid)
      * hvm_domid is always equal to domid */
     hvm_domid = domid;
 
-    /* get the pci pass-through parameter */
-    if (pasprintf(&buf, "/local/domain/0/backend/pci/%u/%u/num_devs",
-                  hvm_domid, pci_devid) == -1)
-        goto out;
-
-    free(params);
-    params = xs_read(xsh, XBT_NULL, buf, &len);
-    if (params == NULL)
-        goto out;
-    num = atoi(params);
-
-    /* get the pci pass-through parameter */
+    /* get the pci pass-through parameters */
     if (pasprintf(&buf, "/local/domain/0/backend/pci/%u/%u/msitranslate",
                   hvm_domid, pci_devid) != -1)
     {