qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH resend] block: fix wrong order in live block mig


From: Chai Wen
Subject: Re: [Qemu-devel] [PATCH resend] block: fix wrong order in live block migration setup
Date: Wed, 4 Jun 2014 19:36:30 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0

On 06/04/2014 05:23 PM, Stefan Hajnoczi wrote:

> On Wed, Jun 04, 2014 at 11:47:37AM +0800, chai wen wrote:
>>
>> The function init_blk_migration is better to be called before
>> set_dirty_tracking as the reasons below.
>>
>> If we want to track dirty blocks via dirty_maps on a BlockDriverState
>> when doing live block-migration, its correspoding 'BlkMigDevState' should be
>> added to block_mig_state.bmds_list first for subsequent processing.
>> Otherwise set_dirty_tracking will do nothing on an empty list than allocating
>> dirty_bitmaps for them. And bdrv_get_dirty_count will access the 
>> bmds->dirty_maps directly, then there would be a segfault triggered.
>>
>> If the set_dirty_tracking fails, qemu_savevm_state_cancel will handle
>> the cleanup of init_blk_migration automatically.
>>
>>
>> Reviewed-by: Fam Zheng <address@hidden>
>> Signed-off-by: chai wen <address@hidden>
>> ---
>>  block-migration.c |    3 +--
>>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> Thanks, applied to my block tree:
> https://github.com/stefanha/qemu/commits/block
> 


OK, thanks for your attention about this fix. :)

thanks
chai wen

> Stefan
> .
> 



-- 
Regards

Chai Wen



reply via email to

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