[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 2/7] sd.c: introduce variable for trekking valid d
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RFC 2/7] sd.c: introduce variable for trekking valid data |
Date: |
Mon, 17 Jun 2013 16:03:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
Il 17/06/2013 14:30, Stefan Hajnoczi ha scritto:
>>> > > @@ -116,6 +116,7 @@ struct SDState {
>>> > > QEMUIOVector qiov;
>>> > > struct iovec iov;
>>> > > BlockDriverAIOCB *aiocb;
>>> > > + uint32_t transf_cnt;
>> >
>> > How does this work for migration -- are we guaranteed that
>> > all outstanding AIO requests complete before we try to
>> > migrate?
> Migration does bdrv_drain_all() to complete all pending requests
> (indirectly by pausing the guest in do_vm_stop()).
... and sd.c AFAIR doesn't support rerror/werror so it doesn't have to
migrate pending requests.
Paolo