Re: [Qemu-devel] [PATCH 0/3] vpc: support probing of fixed size images

2014-08-14 Thread Levente Kurusa
On Tuesday, 12 August, 2014 3:35:42 PM, Jeff Cody wrote: > On Tue, Aug 12, 2014 at 02:20:34PM +0100, Stefan Hajnoczi wrote: > > On Fri, Aug 01, 2014 at 03:39:58PM +0200, Levente Kurusa wrote: > > > Fixed size VPC images do not have a footer, hence the current probe > >

Re: [Qemu-devel] [PATCH 2/2] ivshmem: convert option 'use64' to a bit instead of integer

2014-08-11 Thread Levente Kurusa
> On Mon, Aug 04, 2014 at 05:06:21PM +0200, Levente Kurusa wrote: > > It was expecting an integer, however the sole usecase of it just > > checked whether it was assigned to or not. Hence, remove integerness, > > and add a new bitfield instead. > > > > Signed-

Re: [Qemu-devel] [PATCH v3 04/10] ivshmem: check the value returned by fstat()

2014-08-07 Thread Levente Kurusa
> The function fstat() may fail, so check its return value. > > Signed-off-by: zhanghailiang Acked-by: Levente Kurusa Thanks! Levente Kurusa

Re: [Qemu-devel] [PATCH v2 4/4] ivshmem: check the value returned by fstat()

2014-08-06 Thread Levente Kurusa
iting for fstat fd '%d' failed: %s\n", > +fd, strerror(errno)); exiting for fstat? I would go with something like this: "ivshmem: exiting: fstat on fd %d failed: %s" ... or something among the lines. Thanks! Levente Kurusa

Re: [Qemu-devel] [PATCH 4/4] ivshmem: check the value returned by fstat()

2014-08-04 Thread Levente Kurusa
ing message and return 0? > what's your opinion? Thanks. Yes, please return -1. All the errors fstat(2) can return in this scenario will be fatal to ivshmem. Exiting is probably not the best way to go, but I'm working on a fix for that at the moment, and for now, let's just exit, like all the other error paths do. Thanks, Levente Kurusa

[Qemu-devel] [PATCH 2/2] ivshmem: convert option 'use64' to a bit instead of integer

2014-08-04 Thread Levente Kurusa
It was expecting an integer, however the sole usecase of it just checked whether it was assigned to or not. Hence, remove integerness, and add a new bitfield instead. Signed-off-by: Levente Kurusa --- hw/misc/ivshmem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 1/2] ivshmem: fix building when debug mode is enabled

2014-08-04 Thread Levente Kurusa
ivsmem_offset was removed, however this debug statement was not updated. Modify the statement to fit the new mechanic. Signed-off-by: Levente Kurusa --- hw/misc/ivshmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index bb1f67c

[Qemu-devel] [PATCH 0/2] ivshmem: clean up building and arguments

2014-08-04 Thread Levente Kurusa
Two simple patches. The first one fixes a build error when IVSHMEM_DEBUG is enabled, and the second one converts an argument from integer to a bitfield, and makes all (1) callsites use ivshmem_has_feature. Levente Kurusa (2): ivshmem: fix building when debug mode is enabled ivshmem: convert

[Qemu-devel] [PATCH 3/3] block: vpc: handle fixed size images in probe function

2014-08-01 Thread Levente Kurusa
: Levente Kurusa --- block/vpc.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index a6a7213..b12354a 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -164,8 +164,27 @@ static int vpc_check_signature(const void *buf) static int

[Qemu-devel] [PATCH 1/3] block: format: pass down the current state to the format's probe function

2014-08-01 Thread Levente Kurusa
-by: Andrew Jones Signed-off-by: Levente Kurusa --- block.c | 2 +- block/bochs.c | 3 ++- block/cloop.c | 3 ++- block/cow.c | 3 ++- block/dmg.c | 3 ++- block/parallels.c | 3 ++- block/qcow.c | 3 ++- block/qc

[Qemu-devel] [PATCH 0/3] vpc: support probing of fixed size images

2014-08-01 Thread Levente Kurusa
to the probe functions, hence giving them a chance to read the extra bytes they might need. Levente Kurusa (3): block: format: pass down the current state to the format's probe function block: vpc: introduce vpc_check_signature function block: vpc: handle fixed size images in

[Qemu-devel] [PATCH 2/3] block: vpc: introduce vpc_check_signature function

2014-08-01 Thread Levente Kurusa
Check the signature in a helper function instead of in plain code in order to avoid code duplication Reviewed-by: Andrew Jones Signed-off-by: Levente Kurusa --- block/vpc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index 2ba8fc2