# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1282143678 -3600
# Node ID e3baac77b53cc611ba3e7bcc8f73ba341433b0ff
# Parent 59783ebb23f5107c6984c93c413744d8f47e316a
xl: use libxl_device_pci_destroy
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 59783ebb23f5 -r e3baac77b53c tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Wed Aug 18 16:01:18 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c Wed Aug 18 16:01:18 2010 +0100
@@ -2010,6 +2010,7 @@ static void pcilist(char *dom)
printf("VFn domain bus slot func\n");
for (i = 0; i < num; i++) {
printf("0x%02x 0x%04x 0x%02x 0x%02x 0x%01x\n", pcidevs[i].vdevfn,
pcidevs[i].domain, pcidevs[i].bus, pcidevs[i].dev, pcidevs[i].func);
+ libxl_device_pci_destroy(&pcidevs[i]);
}
free(pcidevs);
}
@@ -2052,6 +2053,7 @@ static void pcidetach(char *dom, char *b
exit(2);
}
libxl_device_pci_remove(&ctx, domid, &pcidev);
+ libxl_device_pci_destroy(&pcidev);
}
int main_pcidetach(int argc, char **argv)
@@ -2092,6 +2094,7 @@ static void pciattach(char *dom, char *b
exit(2);
}
libxl_device_pci_add(&ctx, domid, &pcidev);
+ libxl_device_pci_destroy(&pcidev);
}
int main_pciattach(int argc, char **argv)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|