From: "Christian Bornträger" <borntraeger@de.ibm.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Tim Hofmann <tim.hofmann@de.ibm.com>,
Christian Ehrhardt <ehrhardt@de.ibm.com>,
Adrian Schneider <adrian.schneider@de.ibm.com>,
"virtualization@lists.linux-foundation.org"
<virtualization@lists.linux-foundation.org>,
KVM list <kvm@vger.kernel.org>
Subject: Re: [PATCH/RFC] virtio_test: A module for testing virtio via userspace
Date: Wed, 24 Jun 2009 13:06:40 +0200 [thread overview]
Message-ID: <200906241306.40905.borntraeger@de.ibm.com> (raw)
In-Reply-To: <200906241310.35016.rusty@rustcorp.com.au>
Am Mittwoch 24 Juni 2009 05:40:34 schrieb Rusty Russell:
> > o the general idea of a virtio_test module
> > o the user interface ioctls
> > o further ideas and comments
>
> Not mugging real drivers would be a requirement, I think.
Ok, I try to find a proper way to avoid that virtio_test binds to devices that
have real drivers available. That patch to virtio_dev_match should be relatively
easy.
The open question I have: Should virtio_test bind to a device if no other
driver is (yet) available?
> > +config VIRTIO_TEST
> > + tristate "Virtio test driver (EXPERIMENTAL)"
> > + select VIRTIO
> > + select VIRTIO_RING
>
> Perhaps these should be depends? Plus, depends on EXPERIMENTAL.
>
> > + If unsure, say M.
>
> That's "N" I think.
Yes.
>
> > + case VIOTEST_IOCGETBUF:
> > + ret = do_get_buf(vtest, (struct viotest_getbuf __user *) arg);
> > + break;
> > + case VIOTEST_IOCGETCBS:
> > + ret = get_callbacks(vtest, (struct viotest_cbinfo __user *) arg);
> > + break;
>
> Generally the point of callbacks is to tell you you have new buffers; in
> fact you're insulated from callbacks which don't show new buffers. So I'm
> not sure these two need to be separate?
> In which case, a read/write interface starts to make sense (write for
> addbuf and kick, read for get_buf). That fits nicely with O_NONBLOCK and
> poll().
Hmm - makes sense. I will try to propose a 2nd version of the interface. The
interface must handle multiple virtqueues per device, should allow non-blocking
mode etc. Lets see what ideas come to my mind.
Thanks for the comments
Christian
next prev parent reply other threads:[~2009-06-24 11:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-19 7:27 [PATCH/RFC] virtio_test: A module for testing virtio via userspace Christian Bornträger
2009-06-24 3:40 ` Rusty Russell
2009-06-24 11:06 ` Christian Bornträger [this message]
2022-11-12 16:19 ` Dmitry Vyukov
2022-11-14 12:24 ` Christian Borntraeger
[not found] ` <20221114080345-mutt-send-email-mst@kernel.org>
2022-11-15 10:25 ` Dmitry Vyukov
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=200906241306.40905.borntraeger@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=adrian.schneider@de.ibm.com \
--cc=ehrhardt@de.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=tim.hofmann@de.ibm.com \
--cc=virtualization@lists.linux-foundation.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