From: Avi Kivity <avi@qumranet.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Arnd Bergmann <arnd@arndb.de>, virtualization@lists.linux-foundation.org
Subject: Re: [RFC 1/4] New virtio bus driver
Date: Tue, 10 Jul 2007 10:56:46 +0300 [thread overview]
Message-ID: <46933BBE.3030908@qumranet.com> (raw)
In-Reply-To: <1184032419.6005.430.camel@localhost.localdomain>
Rusty Russell wrote:
> On Mon, 2007-07-09 at 15:09 +0300, Avi Kivity wrote:
>
>> Arnd Bergmann wrote:
>>
>>> Why do you think we want to have multiple outstanding read messages?
>>> I would guess that a single message is enough, you can always requeue
>>> it after one event gets processed.
>>>
>> Suppose there is one message queued. The host reconfigures and sends
>> the message. A new reconfiguration event now cannot be propagated.
>>
>> If there are two messages queued, the host can post the updates in the
>> second message. The guest would then post two new messages (since it
>> can't tell whether any reconfiguration events occured after the second
>> message), the host would fill one, and everyone is happy.
>>
>
> But there can always be another reconfig about to happen after whatever
> the guest is processing now. Is there any point in the guest doing
> anything other than one at a time, in order?
>
>
I thought that would help prevent races, but there's a much simpler way:
the host sets an internal flag if an event happened since the last
message was posted, etc. So one message should suffice.
>> Rusty, If you agree with this, I think it needs to be added to the core
>> protocol.
>>
>
> Well, using an "events" virtqueue in the core means existing virtual I/O
> mechanisms need to fake one up on the guest. Using a function-call
> interface is more natural (and doesn't stop a virtio layer from using an
> events virtqueue and demuxing).
>
> Also, are we sure about the assumption that events won't have ordering
> constraints wrt other queues? For example, a media change event might;
> I don't know the semantics required there...
Yeah. Maybe just allow configuration messages on the regular virtqueues
(they can cause a callback to be called, which parses the message and
passes it to the function-call interface.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2007-07-10 7:56 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-06 12:42 [RFC 0/4] Using a generic bus_type for virtio arnd
2007-07-06 12:42 ` [RFC 1/4] New virtio bus driver arnd
2007-07-08 9:59 ` Avi Kivity
2007-07-08 15:29 ` Arnd Bergmann
2007-07-08 15:48 ` Avi Kivity
2007-07-08 20:29 ` Arnd Bergmann
2007-07-08 23:42 ` Rusty Russell
2007-07-09 6:49 ` Avi Kivity
2007-07-09 11:18 ` Arnd Bergmann
2007-07-09 11:41 ` Avi Kivity
2007-07-09 11:38 ` Arnd Bergmann
2007-07-09 12:09 ` Avi Kivity
2007-07-09 14:24 ` Arnd Bergmann
2007-07-09 14:56 ` Avi Kivity
2007-07-09 16:33 ` Arnd Bergmann
2007-07-10 1:53 ` Rusty Russell
2007-07-10 7:56 ` Avi Kivity [this message]
2007-07-10 1:17 ` Rusty Russell
2007-07-10 6:06 ` Avi Kivity
2007-07-06 12:42 ` [RFC 2/4] Convert virtio_net to new virtio bus arnd
2007-07-06 12:42 ` [RFC 3/4] Convert virtio_blk " arnd
2007-07-06 12:42 ` [RFC 4/4] Example virtio host implementation, using chardev arnd
2007-07-08 2:15 ` [RFC 0/4] Using a generic bus_type for virtio Rusty Russell
2007-07-08 9:45 ` Avi Kivity
2007-07-08 15:55 ` Arnd Bergmann
2007-07-08 9:42 ` Avi Kivity
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=46933BBE.3030908@qumranet.com \
--to=avi@qumranet.com \
--cc=arnd@arndb.de \
--cc=rusty@rustcorp.com.au \
--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;
as well as URLs for NNTP newsgroup(s).