From: Rusty Russell <rusty@rustcorp.com.au>
To: "Ohad Ben-Cohen" <ohad@wizery.com>,
"Sjur Brændeland" <sjur.brandeland@stericsson.com>
Cc: "Sjur Brændeland" <sjur@brendeland.net>,
"Linus Walleij" <linus.walleij@linaro.org>,
mst@redhat.com, "Erwan Yvin" <erwan.yvin@stericsson.com>,
virtualization <virtualization@lists.linux-foundation.org>
Subject: Re: [PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh)
Date: Tue, 23 Apr 2013 13:16:13 +0930 [thread overview]
Message-ID: <87txmxgb96.fsf@rustcorp.com.au> (raw)
In-Reply-To: <CAK=WgbZoqD5aoLt6nqGW3Y42=e_qK2kH0hf0FTLJr=WGW81Azg@mail.gmail.com>
Ohad Ben-Cohen <ohad@wizery.com> writes:
> Hi Sjur and Rusty,
> Stuff which will be nice to change along these lines:
>
> - maintain the vrh_callback_t pointer in struct vringh, similarly to
> what struct virtqueue does today for callbacks of regular rings
> - when kicked, just call vring_interrupt, and let it demultiplex the
> event to the appropriate ring (whether it is regular or host ring)
> - try to push code from rproc_create_new_vringh into virtio, following
> the lines of vring_new_virtqueue and regular rings
> - try to merge the regular and host rings versions of the
> find_vqs/del_vqs boilerplate code to avoid duplication
>
> I guess this all depends on how such patches will look like and
> whether we can reach an elegant implementation. I'm also aware that
> host rings are being used by user space too, and we must not break
> anything.
Oh, we can break everything :)
I was concentrating purely on the mechanics of the virtqueue, mainly
because vhost has special needs wrt tracking changes. vhost doesn't use
vringh yet because my patches are slightly suboptimal (I stick with the
vhost API, just replace the guts with vringh). Michael has a
simplification of vhost-net pending, which will make altering this much
easier.
But CAIF isn't the right thing to optimize for, either. It's weird to
have both host and guest rings at the same time, and I don't see other
users doing that (ie. vhost_net and tcm_vhost). But if we can make it
easier for you without overly uglifying vringh, that'd be great.
And yes, I'd like a core of code which I can license liberally to
include or ship alongside the spec. But I think we can manage that.
Cheers,
Rusty.
next prev parent reply other threads:[~2013-04-23 3:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 21:39 [PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh) Sjur Brændeland
2013-04-22 13:08 ` Ohad Ben-Cohen
2013-04-23 3:46 ` Rusty Russell [this message]
2013-04-23 11:02 ` Ohad Ben-Cohen
2013-04-24 8:48 ` Loic PALLARDY
2013-04-29 0:33 ` Rusty Russell
2013-05-01 5:42 ` Ohad Ben-Cohen
2013-04-23 8:32 ` Sjur Brændeland
2013-04-23 14:16 ` Ohad Ben-Cohen
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=87txmxgb96.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=erwan.yvin@stericsson.com \
--cc=linus.walleij@linaro.org \
--cc=mst@redhat.com \
--cc=ohad@wizery.com \
--cc=sjur.brandeland@stericsson.com \
--cc=sjur@brendeland.net \
--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 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.