From: Stefano Stabellini Date: Fri, 4 Feb 2011 16:42:50 +0000 (+0000) Subject: passthrough: always read default pci passthrough settings X-Git-Tag: xen-4.1.0-rc4~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6a42c2f74e7dcd0bf57761bd5dd3af69b272a827;p=qemu-xen-unstable.git passthrough: always read default pci passthrough settings 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 --- diff --git a/xenstore.c b/xenstore.c index d364a5e267..eed495553d 100644 --- a/xenstore.c +++ b/xenstore.c @@ -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) {