qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/2] block: fix assert in qcow2_get_specific_inf


From: Denis V. Lunev
Subject: Re: [Qemu-devel] [PATCH 1/2] block: fix assert in qcow2_get_specific_info
Date: Tue, 2 Feb 2016 16:49:54 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 02/02/2016 04:20 PM, Paolo Bonzini wrote:

On 20/01/2016 08:12, Denis V. Lunev wrote:
There is a possibility to hit assert qcow2_get_specific_info that
s->qcow_version is undefined. This happens when VM in starting from
suspended state, i.e. it processes incoming migration, and in the same
time 'info block' is called.

The problem is that in the qcow2_invalidate_cache closes and the image
and memsets BDRVQcowState in the middle.

The patch moves processing of qcow2_get_specific_info into coroutine
context and ensures that qcow2_invalidate_cache and qcow2_get_specific_info
can not run simultaneosly.
I'm sitting next to Kevin :) and this is not a qcow2 bug.

The problem is that qcow2_invalidate_cache is being called in coroutine
context.  The process_incoming_migration_co code starting with
bdrv_invalidate_cache_all should be moved out of the coroutine and into
the main loop.  You can use a bottom half to get out of coroutine context.

The result should be a much simpler patch, too.

Thanks, and sorry for the delay.  I saw qcow2 in the title and assumed
it was something I knew nothing about. :)

Paolo
no prob. I'll check this and come with a patch if this
approach will work.

By the way, are you sitting next to Stefan too? :)
There is our set
[PATCH v4 00/11] simplify usage of tracepoints, and connect them to logging
which was accepted by Stefan and still not merged.
We can have troubles as in 2.5 previously near the end of
the merge window.

Den



reply via email to

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