From: Jeremy Katz <katzj@redhat.com>
To: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>
Cc: Christian.Limpach@cl.cam.ac.uk, xen-devel@lists.sourceforge.net
Subject: Re: RFC: Creation of virtual bus, hook-up of Xen devices
Date: Tue, 01 Feb 2005 20:13:03 -0500 [thread overview]
Message-ID: <1107306783.6422.19.camel@bree.local.net> (raw)
In-Reply-To: <E1Cw7qI-0004Nn-00@mta1.cl.cam.ac.uk>
On Tue, 2005-02-01 at 23:53 +0000, Ian Pratt wrote:
> > The problem is that you really want to be able to probe what devices are
> > there without loading the module. Otherwise, if you build the net
> > device as a module, how do you know that there are net devices present?
> > You can do load/unload but that's a little bit ugly (and racy since it
> > involves removing modules).
>
> Yep, we certainly don't want to get into module
> loading/unloading. It's probably reasonable to always load the
> net/blkfront drivers when running on xen -- its perhaps best just
> to build them into the kernel.
Well, you want modules just so that things "look like" everywhere else.
The route of built-in with one kernel and modular on another leads to
madness eventually. That doesn't necessarily mean they need to be
unloadable (it's easy enough to permanently refcount a module, and it's
not unheard of), but if they're not, you probably do want to be able to
tell what's there
> > Another thought would be to add a way to get a simple enumeration of
> > devices with types. That would then be able to be generic and used to
> > register all the devices. Doing that starts to involve some bigger
> > interface changes, though, which I wanted to avoid at first.
>
> We're already planing changes to the control messages that will
> break compatibility with 2.0 tools, so its reasonable to discuss
> further changes.
That was the impression I got. Really, adding a generic "added a net
device, it's handle is x", "added a block device, it's handle is y", ...
etc[1] is probably the easiest way to do this. It also then interacts
nicely for hotplug as you have the bus do all the matching and then it
just hands off the struct device to the appropriate driver's ->probe
function. Which then lets you have the tools in dom0 support more
devices than you have backend drivers in the guest for without ill
effect (and you could even still have the devices in your device tree so
that if you then built a module in domU, it could claim those
devices).
Jeremy
[1] Okay, doing a numeric type instead of a string is slightly prettier,
but for the sake of argument
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
next prev parent reply other threads:[~2005-02-02 1:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-01 20:30 RFC: Creation of virtual bus, hook-up of Xen devices Jeremy Katz
2005-02-01 22:49 ` Christian Limpach
2005-02-01 23:09 ` Jeremy Katz
2005-02-01 23:53 ` Ian Pratt
2005-02-02 1:13 ` Jeremy Katz [this message]
2005-02-02 1:06 ` Christian Limpach
2005-02-02 2:20 ` Jeremy Katz
2005-02-10 0:17 ` Christian Limpach
2005-02-10 20:52 ` Jeremy Katz
2005-02-12 9:10 ` Andrew Warfield
2005-02-12 15:24 ` Mark Williamson
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=1107306783.6422.19.camel@bree.local.net \
--to=katzj@redhat.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.sourceforge.net \
/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.