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

Re: Re: [Xen-devel] Proposal for init/kexec/hotplug format for Xen

To: harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Re: [Xen-devel] Proposal for init/kexec/hotplug format for Xen
From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Date: Tue, 01 Mar 2005 00:02:08 +1100
Cc: Anthony Liguori <aliguori@xxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Jeremy Katz <katzj@xxxxxxxxxx>, Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 28 Feb 2005 13:06:02 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <1463693.1109593362044.JavaMail.www@wwinf3101>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <1463693.1109593362044.JavaMail.www@wwinf3101>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
On Mon, 2005-02-28 at 13:22 +0100, harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
wrote:
> Why have two separate mechanisms when the mechanism required for
> hotplug can be used to build the tree from scratch?

The only difference would be the transport for hotplug events, which is
infrastructure which needs to exist anyway to transport other
information between domains.

We'll see when the code's finished, but I see the code being:

        __init boot_devtree_setup()
        {
                devtree_add(boot_devtree_ptr);
        }

        hotplug_receive_event()
        {
                receive data
                if (op == ADD)
                        devtree_add(data);
                else if (op == REMOVE)
                        devtree_remove(data);
        }

ie. the mere difference in transport should be a few lines of code.
Rusty.
-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel