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

Reply via email to