Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Anthony Liguori
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

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Stefano Stabellini
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

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Stefano Stabellini
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; > > +}

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Anthony Liguori
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

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Paolo Bonzini
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 */ > +

[Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Stefano Stabellini
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_