All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
To: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Cc: xen-devel@lists.xensource.com
Subject: [PATCH] xend: save the state of PPCIs after hot-plug ([PATCH 4/5] Accept udev events and update physical resource information)
Date: Tue, 24 Mar 2009 17:12:58 +0900	[thread overview]
Message-ID: <49C8960A.6060306@ab.jp.nec.com> (raw)
In-Reply-To: <BDC9AB85B2A0DBkanno.masaki@jp.fujitsu.com>

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@ab.jp.nec.com>

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):

  reply	other threads:[~2009-03-24  8:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <49BA4209.1020702@ab.jp.nec.com>
2009-03-13 12:06 ` [PATCH 1/5] Implement DGRAM (connectionless) type socket listeners Yosuke Iwamatsu
2009-03-13 12:06 ` [PATCH 2/5] Add lock for xen-api class instances in XendAPIStore.py Yosuke Iwamatsu
2009-03-13 12:06 ` [PATCH 3/5] Add lock for lspci_info in pci.py Yosuke Iwamatsu
2009-03-13 12:06 ` [PATCH 4/5] Accept udev events and update physical resource information Yosuke Iwamatsu
2009-03-23  7:05   ` [PATCH 4/5] Accept udev events and update physicalresource information Masaki Kanno
2009-03-24  8:12     ` Yosuke Iwamatsu [this message]
2009-03-25  9:24       ` [PATCH] xend: save the state of PPCIs after hot-plug ([PATCH 4/5] Accept udev events and update physical resource information) Masaki Kanno
2009-03-13 12:06 ` [PATCH 5/5] Add udev rules to deliver hw events to xend Yosuke Iwamatsu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49C8960A.6060306@ab.jp.nec.com \
    --to=y-iwamatsu@ab.jp.nec.com \
    --cc=kanno.masaki@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.