From: Eric Blake <eblake@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, famz@redhat.com, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 1/2] vl: allow other threads to do qemu_system_vmstop_request
Date: Thu, 19 Jun 2014 16:18:38 -0600 [thread overview]
Message-ID: <53A361BE.2060209@redhat.com> (raw)
In-Reply-To: <1401972839-25213-2-git-send-email-pbonzini@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]
On 06/05/2014 06:53 AM, Paolo Bonzini wrote:
> There patch protects vmstop_requested with a lock and introduces
s/There/This/ ?
> qemu_system_vmstop_request_prepare.
>
> Together with the new call to qemu_vmstop_requested in vm_start,
> qemu_system_vmstop_request_prepare avoids a race where the VM could remain
> stopped even though the iostatus of a block device has already been set
> (for example).
>
> qemu_system_vmstop_request_prepare however also lets the caller thread
> delay observation of the state change until it has itself communicated
> that change to the user. This delay avoids any possibility of a wrong
> reordering of the BLOCK_IO_ERROR event and the subsequent STOP event.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> cpus.c | 1 +
> include/sysemu/sysemu.h | 1 +
> target-lm32/op_helper.c | 2 +-
> vl.c | 85 +++++++++++++++++++++++++++++++------------------
> 4 files changed, 57 insertions(+), 32 deletions(-)
>
Not my area of code expertise, so take this with a grain of salt:
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-06-19 22:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 12:53 [Qemu-devel] [PATCH v2 0/2] block: thread-safety patches for virtio-blk dataplane rerror/werror Paolo Bonzini
2014-06-05 12:53 ` [Qemu-devel] [PATCH v2 1/2] vl: allow other threads to do qemu_system_vmstop_request Paolo Bonzini
2014-06-19 22:18 ` Eric Blake [this message]
2014-06-05 12:53 ` [Qemu-devel] [PATCH v2 2/2] block: asynchronously stop the VM on I/O errors Paolo Bonzini
2014-06-19 22:07 ` Eric Blake
2014-06-20 3:58 ` [Qemu-devel] [PATCH v2 0/2] block: thread-safety patches for virtio-blk dataplane rerror/werror Stefan Hajnoczi
2014-06-20 6:04 ` Paolo Bonzini
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=53A361BE.2060209@redhat.com \
--to=eblake@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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.