Re: [Qemu-devel] [PATCH v2 1/9] block: Add COR filter driver

2018-04-25 Thread Alberto Garcia
On Wed 25 Apr 2018 01:18:03 PM CEST, Max Reitz wrote: >>> +#define PERM_PASSTHROUGH (BLK_PERM_CONSISTENT_READ \ >>> + | BLK_PERM_WRITE \ >>> + | BLK_PERM_RESIZE) >>> +#define PERM_UNCHANGED (BLK_PERM_ALL & ~PERM_PASSTHROUGH) >>> + >>> +static void

Re: [Qemu-devel] [PATCH v2 1/9] block: Add COR filter driver

2018-04-25 Thread Max Reitz
On 2018-04-24 17:08, Alberto Garcia wrote: > On Sat 21 Apr 2018 03:29:21 PM CEST, Max Reitz wrote: >> This adds a simple copy-on-read filter driver. It relies on the already >> existing COR functionality in the central block layer code, which may be >> moved here once we no longer need it there.

Re: [Qemu-devel] [PATCH v2 1/9] block: Add COR filter driver

2018-04-24 Thread Alberto Garcia
On Sat 21 Apr 2018 03:29:21 PM CEST, Max Reitz wrote: > This adds a simple copy-on-read filter driver. It relies on the already > existing COR functionality in the central block layer code, which may be > moved here once we no longer need it there. > > Signed-off-by: Max Reitz

[Qemu-devel] [PATCH v2 1/9] block: Add COR filter driver

2018-04-21 Thread Max Reitz
This adds a simple copy-on-read filter driver. It relies on the already existing COR functionality in the central block layer code, which may be moved here once we no longer need it there. Signed-off-by: Max Reitz --- block/Makefile.objs | 2 +- qapi/block-core.json | 5