[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xend: save the state of PPCIs after hot-plug ([PATCH 4/5] Accept udev events and update physical resource information)
Masaki Kanno wrote: Hi Yosuke, I have a question.Need the patch call save_PPCIs at the end of add_PPCI and the end of remove_PPCI? It seems you are right. I generated a patch to do that. Thank you. -- Yosuke -------- xend: Save the state of PPCIs after hot-plug events. Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@xxxxxxxxxxxxx> diff -r 0477f9061c8a tools/python/xen/xend/XendNode.py --- a/tools/python/xen/xend/XendNode.py Fri Mar 20 17:42:46 2009 +0000 +++ b/tools/python/xen/xend/XendNode.py Tue Mar 24 15:32:00 2009 +0900 @@ -363,6 +363,8 @@ ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) XendPPCI(ppci_uuid, ppci_record) + self.save_PPCIs() + def remove_PPCI(self, pci_name): # Update lspci info @@ -372,6 +374,8 @@ (domain, bus, slot, func) = PciUtil.parse_pci_name(pci_name) ppci_ref = XendPPCI.get_by_sbdf(domain, bus, slot, func) XendAPIStore.get(ppci_ref, "PPCI").destroy() + + self.save_PPCIs() def add_PSCSI(self): _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |