Re: [Qemu-devel] [PATCH v3] Add "cache" parameter to "-drive"

2008-01-03 Thread Laurent Vivier
Le lundi 24 décembre 2007 à 15:34 +0100, andrzej zaborowski a écrit : [...] > > > > -#define BLK_READ_BLOCK(a, len) sd_blk_read(sd->bdrv, sd->data, a, len) > > -#define BLK_WRITE_BLOCK(a, len)sd_blk_write(sd->bdrv, sd->data, a, > > len) > > I committed the patch but I retained the use of

Re: [Qemu-devel] [PATCH v3] Add "cache" parameter to "-drive"

2007-12-24 Thread andrzej zaborowski
Hi, On 18/12/2007, Laurent Vivier <[EMAIL PROTECTED]> wrote: > This patch adds a new parameter to "-drive" > > Using "cache=off" with "-drive" will open the disk image file using > "O_DIRECT". > > By default, "cache" is set to "on" to keep original behavior of qemu. > > v3 modify hw/sd.c to alloca

[Qemu-devel] [PATCH v3] Add "cache" parameter to "-drive"

2007-12-18 Thread Laurent Vivier
This patch adds a new parameter to "-drive" Using "cache=off" with "-drive" will open the disk image file using "O_DIRECT". By default, "cache" is set to "on" to keep original behavior of qemu. v3 modify hw/sd.c to allocate buffer on init and not on each blk_read()/blk_write() and add "cache="