From: Avi Kivity <avi@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/4] raw-posix: split hdev drivers
Date: Mon, 25 May 2009 14:08:10 +0300 [thread overview]
Message-ID: <4A1A7C1A.9050406@redhat.com> (raw)
In-Reply-To: <20090525075949.GC2936@lst.de>
Christoph Hellwig wrote:
> Instead of declaring one BlockDriver for all host devices declared one
> for each type: a generic one for normal disk devices, a Linux floppy
> driver and a CDROM driver for Linux and FreeBSD. This gets rid of a lot
> of messy ifdefs and switching based on the type in the various removal
> device methods.
>
> block.c grows a new method to find the correct host device driver based
> on OS-sepcific criteria. I would love to move this into some OS-dependant
> file but I don't think we have a place where it fits nicely yet.
>
>
Add a ->probe_host_device() which accepts the filename (or maybe an fd)
as a parameter. First pass does a ->probe_host_device() for all drivers
that support it, second pass tries ->probe().
btw, ->probe_host_device() should use ioctls to identify the device, not
the device name, which is controlled by udev (on Linux) and therefore
nonstandard.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-05-25 11:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 7:59 [Qemu-devel] [PATCH 3/4] raw-posix: split hdev drivers Christoph Hellwig
2009-05-25 11:08 ` Avi Kivity [this message]
2009-05-25 12:33 ` Christoph Hellwig
2009-05-26 8:57 ` Christoph Hellwig
2009-06-06 14:53 ` Christoph Hellwig
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=4A1A7C1A.9050406@redhat.com \
--to=avi@redhat.com \
--cc=hch@lst.de \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).