From: Greg Kurz <gkurz@linux.vnet.ibm.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
QEMU Developers <qemu-devel@nongnu.org>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.5] virtio-9p-device: add minimal unrealize handler
Date: Thu, 10 Dec 2015 12:34:33 +0100 [thread overview]
Message-ID: <20151210123433.7b2ee545@bahia.local> (raw)
In-Reply-To: <CAFEAcA8ry=A4bNcnmDG7Y7G5dJyYou0+CdcwQtRQA1Sr2xx+-w@mail.gmail.com>
On Thu, 10 Dec 2015 11:17:09 +0000
Peter Maydell <peter.maydell@linaro.org> wrote:
> On 8 December 2015 at 16:19, Michael S. Tsirkin <mst@redhat.com> wrote:
> > On Tue, Dec 08, 2015 at 04:54:57PM +0100, Greg Kurz wrote:
> >> Since commit 4652f1640e029e1f2433fa77ba6af285 "virtio-9p: add savevm handlers",
> >> if the user hot-unplugs a quiescent 9p device and live migrates, the source
> >> QEMU crashes before migration completetion... This happens because virtio-9p
> >> devices have a realize handler which calls virtio_init() and register_savevm().
> >> Both calls store pointers to the device internals, that get dereferenced during
> >> migration even if the device got unplugged.
> >>
> >> This patch simply adds an unrealize handler to perform minimal cleanup and
> >> avoid the crash. Hot unplug of non-quiescent 9p devices is still not supported
> >> in QEMU, and not supported by linux guests either.
> >>
> >> Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
> >
> > Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
>
> Applied to master, thanks. (I wrapped the lines in the commit message
> which were a bit too long; wrap at 75 chars or so is recommended so
> that when you read the commit via 'git log' on an 80 column terminal
> they still fit.)
>
> thanks
> -- PMM
>
Oops my bad. I'll :set textwidth accordingly for my future posts.
Thanks.
--
Greg
prev parent reply other threads:[~2015-12-10 11:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 15:54 [Qemu-devel] [PATCH for-2.5] virtio-9p-device: add minimal unrealize handler Greg Kurz
2015-12-08 16:19 ` Michael S. Tsirkin
2015-12-10 11:17 ` Peter Maydell
2015-12-10 11:34 ` Greg Kurz [this message]
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=20151210123433.7b2ee545@bahia.local \
--to=gkurz@linux.vnet.ibm.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=mst@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).