WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xend: save the state of PPCIs after hot-plug ([PATCH

To: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xend: save the state of PPCIs after hot-plug ([PATCH 4/5] Accept udev events and update physical resource information)
From: Yosuke Iwamatsu <y-iwamatsu@xxxxxxxxxxxxx>
Date: Tue, 24 Mar 2009 17:12:58 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 24 Mar 2009 01:13:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BDC9AB85B2A0DBkanno.masaki@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <49BA4209.1020702@xxxxxxxxxxxxx> <49BA4C4D.2020703@xxxxxxxxxxxxx> <BDC9AB85B2A0DBkanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
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