qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/2] vl: allow other threads to do qemu_syste


From: Eric Blake
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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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 <address@hidden>
> ---
>  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 <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]