From: Rusty Russell <rusty@rustcorp.com.au>
To: "Christian Bornträger" <borntraeger@de.ibm.com>
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:10:34 +0930 [thread overview]
Message-ID: <200906241310.35016.rusty@rustcorp.com.au> (raw)
In-Reply-To: <200906190927.34831.borntraeger@de.ibm.com>
On Fri, 19 Jun 2009 04:57:34 pm Christian Bornträger wrote:
> Hello Rusty,
>
> this is a result of a two month internship about virtio testing.
Interesting!
> I would like to get feedback on
>
> 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.
> +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.
> + 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().
Cheers,
Rusty.
next prev parent reply other threads:[~2009-06-24 3:40 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 [this message]
2009-06-24 11:06 ` Christian Bornträger
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=200906241310.35016.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=adrian.schneider@de.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=ehrhardt@de.ibm.com \
--cc=kvm@vger.kernel.org \
--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