Re: [Qemu-block] [PATCH 3/4] ide: add support for cancelable read requests

2015-10-28 Thread Peter Lieven
Am 28.10.2015 um 12:26 schrieb Stefan Hajnoczi: > On Tue, Oct 27, 2015 at 11:58:55AM +0100, Peter Lieven wrote: >> Am 26.10.2015 um 11:39 schrieb Stefan Hajnoczi: >>> On Mon, Oct 12, 2015 at 02:27:24PM +0200, Peter Lieven wrote: +BlockAIOCB *ide_readv_cancelable(IDEState *s, int64_t sector_num

Re: [Qemu-block] [PATCH 3/4] ide: add support for cancelable read requests

2015-10-28 Thread Stefan Hajnoczi
On Tue, Oct 27, 2015 at 11:58:55AM +0100, Peter Lieven wrote: > Am 26.10.2015 um 11:39 schrieb Stefan Hajnoczi: > >On Mon, Oct 12, 2015 at 02:27:24PM +0200, Peter Lieven wrote: > >>+BlockAIOCB *ide_readv_cancelable(IDEState *s, int64_t sector_num, > >>+ QEMUIOVector

Re: [Qemu-block] [PATCH 3/4] ide: add support for cancelable read requests

2015-10-27 Thread Peter Lieven
Am 26.10.2015 um 11:39 schrieb Stefan Hajnoczi: On Mon, Oct 12, 2015 at 02:27:24PM +0200, Peter Lieven wrote: this patch adds a new aio readv compatible function which copies all data through a bounce buffer. The benefit is that these requests can be flagged as canceled to avoid guest memory cor

Re: [Qemu-block] [PATCH 3/4] ide: add support for cancelable read requests

2015-10-26 Thread Stefan Hajnoczi
On Mon, Oct 12, 2015 at 02:27:24PM +0200, Peter Lieven wrote: > this patch adds a new aio readv compatible function which copies > all data through a bounce buffer. The benefit is that these requests > can be flagged as canceled to avoid guest memory corruption when > a canceled request is complete

[Qemu-block] [PATCH 3/4] ide: add support for cancelable read requests

2015-10-12 Thread Peter Lieven
this patch adds a new aio readv compatible function which copies all data through a bounce buffer. The benefit is that these requests can be flagged as canceled to avoid guest memory corruption when a canceled request is completed by the backend at a later stage. If an IDE protocol wants to use th