mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: Save the state of PPCIs after hot-plug events.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
This commit is contained in:
1 parent
be01c537b2
commit
f32b5caf31
1 file changed
+4
@@ -363,6 +363,8 @@ class XendNode:
|
||||
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
|
||||
@@ -373,6 +375,8 @@ class XendNode:
|
||||
ppci_ref = XendPPCI.get_by_sbdf(domain, bus, slot, func)
|
||||
XendAPIStore.get(ppci_ref, "PPCI").destroy()
|
||||
|
||||
self.save_PPCIs()
|
||||
|
||||
|
||||
def add_PSCSI(self):
|
||||
# TODO
|
||||
|
||||