[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] savevm/loadvm
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] savevm/loadvm |
Date: |
Wed, 09 Oct 2013 09:47:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
Il 09/10/2013 09:15, Alexey Kardashevskiy ha scritto:
> 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.
I think Kevin was suggesting using qcow_aio_writev directly, or
something like that. But it is not trivial, especially because
save_vm_state takes byte offsets instead of sectors. So for now I'd
still go for the more hacky solution.
Paolo