From 6a42c2f74e7dcd0bf57761bd5dd3af69b272a827 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Fri, 4 Feb 2011 16:42:50 +0000 Subject: [PATCH] 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 --- xenstore.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/xenstore.c b/xenstore.c index d364a5e26..eed495553 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) { -- 2.39.5