From: Amit Shah <amit.shah@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: marcandre.lureau@redhat.com, Amos Kong <akong@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
qemu list <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 1/1] virtio: serial: expose a 'guest_writable' callback for users
Date: Fri, 10 Oct 2014 16:49:18 +0530 [thread overview]
Message-ID: <20141010111918.GE16326@grmbl.mre> (raw)
In-Reply-To: <CAFEAcA-NeWpgst9qEkZzsBs1MBQRaP5R_Zg8E=AcW9f5aAOWwA@mail.gmail.com>
On (Thu) 09 Oct 2014 [14:04:53], Peter Maydell wrote:
> On 9 October 2014 13:17, Amit Shah <amit.shah@redhat.com> wrote:
> > On (Thu) 09 Oct 2014 [13:18:16], Markus Armbruster wrote:
> >> The code should work, but whether it makes sense is hard to judge for
> >> virtio noobs like me without a user of guest_writable. The conditional
> >> guarding vsc->guest_writable(port) in particular.
> >
> > Right. This was originally requested by the spice folks, and they
> > don't yet have a user implemented (waiting for the spice-char
> > implementation). But Peter came up with a user; so I posted this w/o
> > the spice part of it. But looks like Peter has lost the code for his
> > user, so this patch will have to wait ;-)
>
> I have the QEMU code...
>
> https://git.linaro.org/people/peter.maydell/qemu-arm.git/patch/33895359ddee3696bb24eac24cf8ee4cd697c72c
>
> ...I just lost the bit of userspace code I was using to test it
> It's not very interesting as a use case though since it's
> just an echo-back-everything-you-say test backend (but it
> does demonstrate that there are basic things you can't do
> at all without some variation on this API).
>
> What I would like to see in this patch is a comment giving
> much clearer definition of the semantics of the guest_writable
> call: for instance, is it always called when the guest is
> writable, or is it only guaranteed to be called if the
> QEMU backend has previously tried to do virtio_serial_write
> and got back a return code indicating an incomplete write?
Right now it's called always; if it's necessary to only call after an
incomplete / failed write, we just need to implement that (and also
add that state to the migration data).
I have no preference; just depends on the users of the API.
Amit
next prev parent reply other threads:[~2014-10-10 11:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-30 16:13 [Qemu-devel] [PATCH v2 1/1] virtio: serial: expose a 'guest_writable' callback for users Amit Shah
2014-10-09 11:18 ` Markus Armbruster
2014-10-09 12:17 ` Amit Shah
2014-10-09 13:04 ` Peter Maydell
2014-10-10 11:19 ` Amit Shah [this message]
2014-10-10 11:23 ` Peter Maydell
2014-10-10 12:07 ` Amit Shah
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=20141010111918.GE16326@grmbl.mre \
--to=amit.shah@redhat.com \
--cc=akong@redhat.com \
--cc=armbru@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=peter.maydell@linaro.org \
--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).