qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] savevm/loadvm


From: Alexey Kardashevskiy
Subject: Re: [Qemu-devel] savevm/loadvm
Date: Wed, 09 Oct 2013 18:15:01 +1100
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 10/08/2013 08:33 PM, Paolo Bonzini wrote:
> Il 08/10/2013 11:23, Kevin Wolf ha scritto:
>>>> I think you need to modify qcow2_save_vmstate to save and restore
>>>> bs->total_sectors.  Can you test that and if so post the patch?
>> It's a regression introduced by commit df2a6f29, right?
> 
> Yes, that's what introduced the "if".
> 
>> What you suggest probably works as a quick hack to fix the bug. The VM
>> state functions in qcow2 are getting uglier and uglier, though. Maybe
>> they should avoid going through block.c and adding hacks to disable or
>> revert side effects.
> 
> Yes, that would work too.

Sorry for my ignorance (I never ever touched this part of qemu) but how can
you possibly avoid block.c while doing savevm? The qcow2 driver must not
use posix read()/write(), right? So no matter how, all writes end up in
bdrv_co_do_writev() which changes blocks number. Or use
raw_aio_readv()/raw_aio_writev() API directly? Please give some more hints.
Thanks.


-- 
Alexey



reply via email to

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