From: Anthony Liguori <aliguori@us.ibm.com>
To: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
xen-devel@lists.xensource.com, Ewan Mellor <ewan@xensource.com>
Subject: Re: xm list d flag?
Date: Sat, 01 Oct 2005 20:47:16 -0500 [thread overview]
Message-ID: <433F3C24.5020104@us.ibm.com> (raw)
In-Reply-To: <20051001204616.GJ10661@cl.cam.ac.uk>
Christian Limpach wrote:
>On Sat, Oct 01, 2005 at 02:45:35PM -0500, Anthony Liguori wrote:
>
>
>>One thing to consider is having the drivers destroy the backend devices
>>on a @releaseDomain watch instead of on the front-end path disappearing.
>>
>>
>
>Yes, I think this would make sense. We still need to keep the current
>behaviour as well, it is needed for hot-unplug of devices.
>
>I'd like to see @releaseDomain also pass along the domain id, so
>that we don't need to scan all domains in several places.
>
This would be equally useful for @introduceDomain too. It should
simplify the code in a number of places (at least in Xend and consoled).
>To do this,
>we should switch the order of the arguments in the watch vectors,
>allowing us then to pass an arbitrary number of arguments without
>having to change the interface to support an arbitrary number of
>arguments[1]. An additional use for this for regular watches could
>be to pass all the elements of the path which triggered the watch to
>fire as seperate arguments, reducing the amount of code in the drivers
>which does string parsing.
>
>
Is changing the order of token and path really necessary? It's a
considerably simplier change if we maintain the same order. I've always
thought of the token as an argument so this order makes more sense to me
(and I reckon to Rusty since he did it this way to begin with :-)).
The only adjustment to the userspace API would be that instead of
returning an char *[2] we would return a char *[] that was terminated by
a NULL. xenbus needs a little more but it's not too bad.
Regards,
Anthony Liguori
> christian
>
>[1] additional arguments are at vec[1] + strlen(vec[1]) + 1 and so on,
>the callback will need to know how many arguments get passed.
>
>
>
>
next prev parent reply other threads:[~2005-10-02 1:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-01 12:17 xm list d flag? Ted Kaczmarek
2005-10-01 13:09 ` NAHieu
2005-10-01 14:40 ` Ewan Mellor
2005-10-01 19:45 ` Anthony Liguori
2005-10-01 20:46 ` Christian Limpach
2005-10-02 1:47 ` Anthony Liguori [this message]
2005-10-02 3:29 ` Christian Limpach
2005-10-03 22:58 ` Anthony Liguori
2005-10-04 0:14 ` Christian Limpach
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=433F3C24.5020104@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=ewan@xensource.com \
--cc=rusty@rustcorp.com.au \
--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.