Stefano Stabellini writes:
> On Wed, 26 Jun 2013, Anthony Liguori wrote:
>> Stefano Stabellini writes:
>>
>> > Support a backend option "cache" that specifies the cache mode that
>> > should be used to open the disk file or device.
>> >
>> > See: http://marc.info/?l=xen-devel&m=137226872905057
On Wed, 26 Jun 2013, Anthony Liguori wrote:
> Stefano Stabellini writes:
>
> > Support a backend option "cache" that specifies the cache mode that
> > should be used to open the disk file or device.
> >
> > See: http://marc.info/?l=xen-devel&m=137226872905057
> >
> > Signed-off-by: Stefano Stabel
On Wed, 26 Jun 2013, Paolo Bonzini wrote:
> Il 26/06/2013 19:48, Stefano Stabellini ha scritto:
> > +if (!strcmp(blkdev->cache, "none")) {
> > +qflags = BDRV_O_NATIVE_AIO | BDRV_O_NOCACHE;
> > +} else if (!strcmp(blkdev->cache, "writethrough")) {
> > +qflags = 0;
> > +}
Stefano Stabellini writes:
> Support a backend option "cache" that specifies the cache mode that
> should be used to open the disk file or device.
>
> See: http://marc.info/?l=xen-devel&m=137226872905057
>
> Signed-off-by: Stefano Stabellini
Is the guest setting this or a management tool? I th
Il 26/06/2013 19:48, Stefano Stabellini ha scritto:
> +if (!strcmp(blkdev->cache, "none")) {
> +qflags = BDRV_O_NATIVE_AIO | BDRV_O_NOCACHE;
> +} else if (!strcmp(blkdev->cache, "writethrough")) {
> +qflags = 0;
> +} else {
> +/* default to writeback */
> +
Support a backend option "cache" that specifies the cache mode that
should be used to open the disk file or device.
See: http://marc.info/?l=xen-devel&m=137226872905057
Signed-off-by: Stefano Stabellini
diff --git a/hw/xen_disk.c b/hw/xen_disk.c
index f484404..092aa6b 100644
--- a/hw/block/xen_