From: "Daniel P. Berrange" <berrange@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "QEMU Developers" <qemu-devel@nongnu.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Michal Privoznik" <mprivozn@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@gmail.com>,
"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2] vhost-user: don't poke at chardev internal QemuOpts
Date: Fri, 7 Oct 2016 11:22:29 +0100 [thread overview]
Message-ID: <20161007102229.GH26332@redhat.com> (raw)
In-Reply-To: <CAFEAcA9RFAQcdJNq2N1Y4MwS4vj_OeOuhePc2r=L1HUAKs+ERg@mail.gmail.com>
On Fri, Oct 07, 2016 at 10:59:09AM +0100, Peter Maydell wrote:
> On 7 October 2016 at 10:49, Daniel P. Berrange <berrange@redhat.com> wrote:
> > The vhost-user code is poking at the QemuOpts instance
> > in the CharDriverState struct, not realizing that it is
> > valid for this to be NULL. e.g. the following crash
> > shows a codepath where it will be NULL:
>
> > +typedef enum {
> > + /* Whether the chardev acts as a network server and can
> > + * thus support qemu_chr_wait_connected() to wait for
> > + * incoming clients */
> > + QEMU_CHAR_FEATURE_NETWORK_SERVER,
> > + /* Whether it is possible to send/recv file descriptors
> > + * over the data channel */
> > + QEMU_CHAR_FEATURE_FD_PASS,
> > +
> > + QEMU_CHAR_FEATURE_LAST,
> > +} CharDriverFeature;
>
> Will net/colo-compare.c need more features than this, or
> will these suffice for both?
Oh, I didn't notice that colo did the same nasty thing. I'm not actually
seeing why colo wants to force a particular chardev backend - at first
glance it does not appear to be using features that rely on a particular
backend, in the way that vhost-user does. So maybe its sufficient to just
kill the checks in colo.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
next prev parent reply other threads:[~2016-10-07 10:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-07 9:49 [Qemu-devel] [PATCH v2] vhost-user: don't poke at chardev internal QemuOpts Daniel P. Berrange
2016-10-07 9:59 ` Peter Maydell
2016-10-07 10:22 ` Daniel P. Berrange [this message]
2016-10-07 10:12 ` Marc-André Lureau
2016-10-07 10:23 ` Daniel P. Berrange
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=20161007102229.GH26332@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=marcandre.lureau@gmail.com \
--cc=mprivozn@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@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 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.