[Qemu-devel] [PATCH v17 06/14] block: Add backing_blocker in BlockDriverState

2014-03-10 Thread Fam Zheng
This makes use of op_blocker and blocks all the operations except for commit target, on each BlockDriverState->backing_hd. The asserts for op_blocker in bdrv_swap are removed because with this change, the target of block commit has at least the backing blocker of its child, so the assertion is not

[Qemu-devel] [PATCH v17 00/14] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD

2014-03-10 Thread Fam Zheng
This series adds for point-in-time snapshot NBD exporting based on blockdev-backup (variant of drive-backup with existing device as target). We get a thin point-in-time snapshot by COW mechanism of drive-backup, and export it through built in NBD server. The steps are as below: 1. (SHELL) qemu-i

[Qemu-devel] [PATCH v17 04/14] block: Move op_blocker check from block_job_create to its caller

2014-03-10 Thread Fam Zheng
It makes no sense to check for "any" blocker on bs, we are here only because of the mechanical conversion from in_use to op_blockers. Remove it now, and let the callers check specific operation types. Backup and mirror already have it, add checker to stream and commit. Signed-off-by: Fam Zheng Re

[Qemu-devel] [PATCH v17 01/14] block: Add BlockOpType enum

2014-03-10 Thread Fam Zheng
This adds the enum of all the operations that can be taken on a block device. Signed-off-by: Fam Zheng Reviewed-by: Benoit Canet --- include/block/block.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/block/block.h b/include/block/block.h index 780f48b..882073

[Qemu-devel] [PATCH v17 05/14] block: Add bdrv_set_backing_hd()

2014-03-10 Thread Fam Zheng
This is the common but non-trivial steps to assign or change the backing_hd of BDS. Signed-off-by: Fam Zheng --- block.c | 39 +-- include/block/block.h | 1 + 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/block.c b/block.c in

[Qemu-devel] [PATCH v17 02/14] block: Introduce op_blockers to BlockDriverState

2014-03-10 Thread Fam Zheng
BlockDriverState.op_blockers is an array of lists with BLOCK_OP_TYPE_MAX elements. Each list is a list of blockers of an operation type (BlockOpType), that marks this BDS as currently blocked for a certain type of operation with reason errors stored in the list. The rule of usage is: * BDS user w

[Qemu-devel] [PATCH v17 09/14] stream: Use bdrv_drop_intermediate and drop close_unused_images

2014-03-10 Thread Fam Zheng
This reuses the new bdrv_drop_intermediate. Signed-off-by: Fam Zheng --- block/stream.c | 42 +- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/block/stream.c b/block/stream.c index dd0b4ac..1b348a2 100644 --- a/block/stream.c +++ b/block/st

Re: [Qemu-devel] sdl mouse no longer works

2014-03-10 Thread Gerd Hoffmann
On Sa, 2014-03-08 at 20:56 -0500, Gabriel L. Somlo wrote: > Gerd, > > After the latest pull, my sdl mouse no longer works. I've tried with > both OS X and Fedora 20 live. The latter (easier command line with > no out of tree dependencies) is started with the following command line: > > bin/qemu-s

[Qemu-devel] [PATCH v17 12/14] block: Add blockdev-backup to transaction

2014-03-10 Thread Fam Zheng
Signed-off-by: Fam Zheng --- blockdev.c | 48 qapi-schema.json | 1 + 2 files changed, 49 insertions(+) diff --git a/blockdev.c b/blockdev.c index f241455..8a6ae0a 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1409,6 +1409,49 @@ static void

[Qemu-devel] [PATCH v17 08/14] block: Support dropping active in bdrv_drop_intermediate

2014-03-10 Thread Fam Zheng
Dropping intermediate could be useful both for commit and stream, and BDS refcnt plus bdrv_swap could do most of the job nicely. It also needs to work with op blockers. Signed-off-by: Fam Zheng --- block.c| 139 - block/commit.c |

[Qemu-devel] [PATCH v17 14/14] qemu-iotests: Image fleecing test case 083

2014-03-10 Thread Fam Zheng
This tests the workflow of creating a lightweight point-in-time snapshot with blockdev-backup command and export it with built-in NBD server. It's tested that after the snapshot it created, writing to the original device doesn't change data that can be read from target with NBD. Signed-off-by: Fa

[Qemu-devel] [PATCH v22 08/25] cow.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/cow.c | 54 ++ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/block/cow.c b/block/cow.c index 26cf4a5..4085201 100644 --- a/block/cow.c +++ b/block/cow.c @@ -324,

[Qemu-devel] [PATCH v17 10/14] qmp: Add command 'blockdev-backup'

2014-03-10 Thread Fam Zheng
Similar to drive-backup, but this command uses a device id as target instead of creating/opening an image file. Also add blocker on target bs, since the target is also a named device now. Add check and report error for bs == target which became possible but is an illegal case with introduction of

[Qemu-devel] [PATCH v17 11/14] block: Allow backup on referenced named BlockDriverState

2014-03-10 Thread Fam Zheng
Drive backup is a read only operation on source bs. We want to allow this specific case to enable image-fleecing. Note that when image-fleecing job starts, the job still add its blocker to source bs, and any other operation on it will be blocked by that. Signed-off-by: Fam Zheng --- block.c | 2

[Qemu-devel] [PATCH v22 00/25] replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
This patch series is to replace QEMUOptionParameter with QemuOpts, so that only one Qemu Option structure is kept in QEMU code. --- Changes to v21: * update verison info in patch 2/25 * others are not changed except for rebase Chunyan Liu (25): add def_value_str to QemuOptDesc qapi: outpu

[Qemu-devel] [PATCH v22 18/25] sheepdog.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/sheepdog.c | 108 --- 1 file changed, 55 insertions(+), 53 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index f7bd024..027a34e 100644 --- a/block/sheepdog.c +++

[Qemu-devel] [PATCH v22 09/25] gluster.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/gluster.c | 81 ++--- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/block/gluster.c b/block/gluster.c index a44d612..bd72d8d 100644 --- a/block/gluster.c +++ b/b

[Qemu-devel] [PATCH v22 05/25] add some QemuOpts functions for replace work

2014-03-10 Thread Chunyan Liu
Add some qemu_opt functions to replace the same functionality of QEMUOptionParameter handling. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h | 9 +++ util/qemu-option.c| 188 ++ 2 files changed, 184 inserti

[Qemu-devel] [PATCH v22 20/25] vdi.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vdi.c | 72 + 1 file changed, 34 insertions(+), 38 deletions(-) diff --git a/block/vdi.c b/block/vdi.c index ae49cd8..0799467 100644 --- a/block/vdi.c +++ b/block/vdi.c @

[Qemu-devel] [PATCH v22 10/25] iscsi.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/iscsi.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index b490e98..4379d14 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1394,13 +1394,8 @@

[Qemu-devel] [PATCH v22 23/25] vhdx.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Chunyan Liu --- block/vhdx.c | 99 +--- block/vhdx.h | 1 + 2 files changed, 48 insertions(+), 52 deletions(-) diff --git a/block/vhdx.c b/block/vhdx.c index d8afb42..d90fe55 100644 --- a/block/vhdx.c +++ b/block/vhdx.c @@ -

[Qemu-devel] [PATCH v22 17/25] rbd.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/rbd.c | 63 + 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index dbc79f4..f878877 100644 --- a/block/rbd.c +++ b/block/rbd.c @

[Qemu-devel] [PATCH v22 22/25] vpc.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vpc.c | 62 + 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index 82bf248..ac85514 100644 --- a/block/vpc.c +++ b/block/vpc.c @

Re: [Qemu-devel] [PATCH v22 00/25] replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chun Yan Liu
The whole patch series could also be get from here: https://github.com/chunyanliu/qemu/commits/QemuOpts -Chunyan >>> On 3/10/2014 at 03:31 PM, in message <1394436721-21812-1-git-send-email-cy...@suse.com>, Chunyan Liu wrote: > This patch series is to replace QEMUOptionParameter with QemuOpts, s

[Qemu-devel] [PATCH v22 15/25] raw-win32.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-win32.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/block/raw-win32.c b/block/raw-win32.c index 9954748..29f8e54 100644 --- a/block/raw-win32.c +++ b/block/raw-wi

[Qemu-devel] [PATCH v22 16/25] raw_bsd.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw_bsd.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/block/raw_bsd.c b/block/raw_bsd.c index 9ae5fc2..ee797fd 100644 --- a/block/raw_bsd.c +++ b/block/raw_bsd.c @@ -29,13 +29,1

[Qemu-devel] [PATCH v22 19/25] ssh.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/ssh.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index aa63c9d..3a5eead 100644 --- a/block/ssh.c +++ b/block/ssh.c @@ -642,17 +642,20 @@ static i

[Qemu-devel] [PATCH v22 24/25] vvfat.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vvfat.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index ee32b3c..03be65d 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2907,7 +2907,7 @@ static BlockDriver vvf

Re: [Qemu-devel] [PATCH v22 00/25] replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chun Yan Liu
The whole patch series could also be get from here: https://github.com/chunyanliu/qemu/commits/QemuOpts -Chunyan >>> On 3/10/2014 at 03:31 PM, in message <1394436721-21812-1-git-send-email-cy...@suse.com>, Chunyan Liu wrote: > This patch series is to replace QEMUOptionParameter with QemuOpts, s

Re: [Qemu-devel] [PATCH qom-cpu v2 09/40] cpu: Turn cpu_handle_mmu_fault() into a CPUClass hook

2014-03-10 Thread Paolo Bonzini
Il 10/03/2014 01:15, Andreas Färber ha scritto: Note that while such functions may exist both for *-user and softmmu, only *-user uses the CPUState hook, while softmmu reuses the prototype for calling it directly. I'm not sure I understand why you omit the hook for *-softmmu. It doesn't hurt

[Qemu-devel] [PATCH] input: sdl: fix guest_cursor logic.

2014-03-10 Thread Gerd Hoffmann
Unbreaks relative mouse mode with SDL. Reported-by: Gabriel L. Somlo Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index c1a16be..4e7f920 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -455,13 +455,

[Qemu-devel] [PATCH v22 02/25] qapi: output def_value_str when query command line options

2014-03-10 Thread Chunyan Liu
Change qapi interfaces to output the newly added def_value_str when querying command line options. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- qapi-schema.json | 6 +- qmp-commands.hx| 2 ++ util/qemu-config.c | 4 3 files changed, 11 insertions(+), 1 deletion(-)

Re: [Qemu-devel] [PATCH v22 00/25] replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chun Yan Liu
The whole patch series could also be get from here: https://github.com/chunyanliu/qemu/commits/QemuOpts -Chunyan >>> On 3/10/2014 at 03:31 PM, in message <1394436721-21812-1-git-send-email-cy...@suse.com>, Chunyan Liu wrote: > This patch series is to replace QEMUOptionParameter with QemuOpts, s

[Qemu-devel] [PATCH] input: map INPUT_BUTTON_WHEEL_{UP, DOWN} to legacy input z axis moves.

2014-03-10 Thread Gerd Hoffmann
Unbreaks mouse wheel. Reported-by: BALATON Zoltan Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/ui/input-legacy.c b/ui/input-legacy.c index f38984b..7dc486b 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -359,6

[Qemu-devel] [PATCH v17 07/14] block: Parse "backing" option to reference existing BDS

2014-03-10 Thread Fam Zheng
Now it's safe to allow reference for backing_hd in the interface. Signed-off-by: Fam Zheng --- block.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index 95247c8..05f7766 100644 --- a/block.c +++ b/block.c @@ -1401,12 +1401,35

[Qemu-devel] armv8 support in qemu

2014-03-10 Thread Gaurav Sharma
Hi, I just wanted to know what is the current status armv8 support in qemu ? After initial look into the source code i see the support for user mode. Even though aarch64-softmmu is supported in the target list, i do not see any corresponding code for init in target-arm/cpu64.c. Thanks, Gaurav

Re: [Qemu-devel] [PATCH] New feature - RFC3931 L2TPv3 network transport using static Ethernet over L2TPv3 tunnels

2014-03-10 Thread Stefan Hajnoczi
On Sun, Mar 09, 2014 at 05:06:15PM +, Anton Ivanov wrote: > >>+ return -1; > >>+} > >>+ > >>+freeaddrinfo(result); > >>+ > >>+memset(&hints, 0, sizeof(hints)); > >>+ > >>+if (s->ipv6) { > >>+ hints.ai_family = AF_INET6; > >>+} else { > >>+ hints.ai_family = AF_INET; >

Re: [Qemu-devel] [PATCH v6] vl.c: Output error on invalid machine type

2014-03-10 Thread Miroslav Rezanina
Hi, is there any issue with this patch? Mirek - Original Message - > From: mreza...@redhat.com > To: qemu-devel@nongnu.org > Sent: Wednesday, February 5, 2014 2:44:23 PM > Subject: [Qemu-devel] [PATCH v6] vl.c: Output error on invalid machine type > > From: Miroslav Rezanina > > Output

[Qemu-devel] [PATCH v22 06/25] add convert functions between QEMUOptionParameter to QemuOpts

2014-03-10 Thread Chunyan Liu
Add two temp convert functions between QEMUOptionParameter to QemuOpts, so that next patch can use it. It will simplify next patch for easier review. Signed-off-by: Chunyan Liu --- include/qemu/option.h | 2 + util/qemu-option.c| 105 ++ 2 fi

Re: [Qemu-devel] [PATCH v22 00/25] replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chun Yan Liu
The whole patch series could also be get from here: https://github.com/chunyanliu/qemu/commits/QemuOpts -Chunyan >>> On 3/10/2014 at 03:31 PM, in message <1394436721-21812-1-git-send-email-cy...@suse.com>, Chunyan Liu wrote: > This patch series is to replace QEMUOptionParameter with QemuOpts, s

Re: [Qemu-devel] [PATCH v22 00/25] replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chun Yan Liu
The whole patch series could also be get from here: https://github.com/chunyanliu/qemu/commits/QemuOpts -Chunyan >>> On 3/10/2014 at 03:31 PM, in message <1394436721-21812-1-git-send-email-cy...@suse.com>, Chunyan Liu wrote: > This patch series is to replace QEMUOptionParameter with QemuOpts, s

[Qemu-devel] [PATCH] KVM: x86: Work around buggy MPX platform

2014-03-10 Thread Liu, Jinsong
>From 5854070994c5002b3a37577165ed3e82f36f712d Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Sat, 8 Mar 2014 04:40:02 +0800 Subject: [PATCH] KVM: x86: Work around buggy MPX platform Work around buggy MPX platform which support MSR_IA32_BNDCFGS but has issue at, say, VMX ucode. Signed-off-by:

Re: [Qemu-devel] [PATCH] New feature - RFC3931 L2TPv3 network transport using static Ethernet over L2TPv3 tunnels

2014-03-10 Thread Anton Ivanov
You are correct. My test is wrong. However, the result is the same - it wants a non-zero proto there. $ sudo ./gaitest src ai_family 2 ai_socketype 3 ai_protocol 0 socket creation failed, errno = 93 src ai_family 2 ai_socketype 3 ai_protocol 115 No error on the second one, -93 on the first one.

Re: [Qemu-devel] armv8 support in qemu

2014-03-10 Thread Alex Bennée
Gaurav Sharma writes: > Hi, > I just wanted to know what is the current status armv8 support in qemu ? > After initial look into the source code i see the support for user mode. > Even though aarch64-softmmu is supported in the target list, i do not see > any corresponding code for init in targe

[Qemu-devel] [PATCH v22 03/25] improve some functions in qemu-option.c

2014-03-10 Thread Chunyan Liu
Improve opt_get and opt_set group of functions. For opt_get, check and handle NULL input; for opt_set, when set to an existing option, rewrite the option with new value. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option_int.h | 4 +-- util/qemu-option.c| 81

Re: [Qemu-devel] [PATCH] KVM: x86: Work around buggy MPX platform

2014-03-10 Thread Paolo Bonzini
Il 10/03/2014 09:48, Liu, Jinsong ha scritto: From 5854070994c5002b3a37577165ed3e82f36f712d Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Sat, 8 Mar 2014 04:40:02 +0800 Subject: [PATCH] KVM: x86: Work around buggy MPX platform Work around buggy MPX platform which support MSR_IA32_BNDCFGS but

[Qemu-devel] [PATCH v22 12/25] qcow2.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qcow2.c | 325 ++ 1 file changed, 167 insertions(+), 158 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index dcd43bc..e0f00bf 100644 --- a/block/qcow2.c +++ b/block

[Qemu-devel] [PATCH v17 13/14] qemu-iotests: Test blockdev-backup in 055

2014-03-10 Thread Fam Zheng
This applies cases on drive-backup on blockdev-backup, except cases with target format and mode. Also add a case to check source == target. Signed-off-by: Fam Zheng --- tests/qemu-iotests/055 | 275 ++--- tests/qemu-iotests/055.out | 4 +- 2 files c

[Qemu-devel] [PATCH v17 03/14] block: Replace in_use with operation blocker

2014-03-10 Thread Fam Zheng
This drops BlockDriverState.in_use with op_blockers: - Call bdrv_op_block_all in place of bdrv_set_in_use(bs, 1). - Call bdrv_op_unblock_all in place of bdrv_set_in_use(bs, 0). - Check bdrv_op_is_blocked() in place of bdrv_in_use(bs). The specific types are used, e.g. in place of startin

Re: [Qemu-devel] [PATCH v2 1/5] w32: Add and use intermediate include file for windows.h

2014-03-10 Thread Markus Armbruster
Stefan Weil writes: > Including windows.h from the new file include/qemu/winapi.h allows > better tracking of the files which depend on the Windows API. > > 1864 *.o files depend on windows.h in a typical build, only 88 *.o files > don't. > > The windows.h specific macro WIN32_LEAN_AND_MEAN is no

Re: [Qemu-devel] [PATCH v22 00/25] replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chun Yan Liu
The whole patch series could also be get from here: https://github.com/chunyanliu/qemu/commits/QemuOpts -Chunyan >>> On 3/10/2014 at 03:31 PM, in message <1394436721-21812-1-git-send-email-cy...@suse.com>, Chunyan Liu wrote: > This patch series is to replace QEMUOptionParameter with QemuOpts, s

[Qemu-devel] [PATCH v22 11/25] qcow.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qcow.c | 72 ++-- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 153b9bd..374e6df 100644 --- a/block/qcow.c +++ b/block/qcow

[Qemu-devel] [PATCH v22 25/25] cleanup QEMUOptionParameter

2014-03-10 Thread Chunyan Liu
Now all places using QEMUOptionParameter could use QemuOpts too, remove QEMUOptionParameter related code. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block.c | 69 ++-- block/cow.c | 4 +- block/gluster.c | 8 +- block/qcow.c

Re: [Qemu-devel] [PATCH v3 1/3] loader: rename in_ram/has_mr

2014-03-10 Thread Paolo Bonzini
Il 09/03/2014 19:06, Michael S. Tsirkin ha scritto: we put copy of ROMs in MR for migration. but the name rom_in_ram makes one think we load it in guest RAM. Rename has_mr to make intent clearer. Signed-off-by: Michael S. Tsirkin --- include/hw/loader.h | 2 +- hw/core/loader.c| 6 +++---

[Qemu-devel] [PATCH v22 21/25] vmdk.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vmdk.c | 123 ++- 1 file changed, 63 insertions(+), 60 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index d87c8f6..f9b68a0 100644 --- a/block/vmdk.c +++ b/block/vmdk

[Qemu-devel] [PATCH v22 01/25] add def_value_str to QemuOptDesc

2014-03-10 Thread Chunyan Liu
Add def_value_str (default value) to QemuOptDesc, to replace function of the default value in QEMUOptionParameter. And improved related functions. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h | 3 ++- util/qemu-option.c| 59 ++

Re: [Qemu-devel] [PATCH 00/11] tcg-sparc updates

2014-03-10 Thread Artyom Tarasenko
On Sun, Mar 9, 2014 at 11:21 PM, Mark Cave-Ayland wrote: > On 05/03/14 18:11, Richard Henderson wrote: > >> Rescued from a branch from September. I can't recall if I ever >> actually posted these back then, so I'll wait a week before asking >> for a pull. >> >> Re-tested on v8plus. The machine d

Re: [Qemu-devel] [PATCH v16 00/14] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD

2014-03-10 Thread Kevin Wolf
Am 10.03.2014 um 07:38 hat Fam Zheng geschrieben: > On Mon, 03/10 06:13, Benoît Canet wrote: > > The Friday 07 Mar 2014 à 16:20:42 (+0800), Fam Zheng wrote : > > > This series adds for point-in-time snapshot NBD exporting based on > > > blockdev-backup (variant of drive-backup with existing device

[Qemu-devel] [PATCH v22 14/25] raw-posix.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-posix.c | 59 +-- 1 file changed, 27 insertions(+), 32 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index e6b4c1f..7fc4a3a 100644 --- a/block/raw-posix.c +

[Qemu-devel] [PATCH v22 07/25] change block layer to support both QemuOpts and QEMUOptionParamter

2014-03-10 Thread Chunyan Liu
Change block layer to support both QemuOpts and QEMUOptionParameter. After this patch, it will change backend drivers one by one. At the end, QEMUOptionParameter will be removed and only QemuOpts is kept. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block.c | 121

[Qemu-devel] [PATCH v22 04/25] improve assertion in qemu_opt_get functions

2014-03-10 Thread Chunyan Liu
In qemu_opt_set functions, if desc doen't exist but opts_accepts_any is true, it won't report error, but can still alloc an opt for the option and save it. However, after that, when doing qemu_opt_get, this option could be found in opts but opt->desc is NULL. This is correct, should not be treated

[Qemu-devel] [PATCH v22 13/25] qed.c: replace QEMUOptionParameter with QemuOpts

2014-03-10 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qed.c | 114 block/qed.h | 3 +- 2 files changed, 61 insertions(+), 56 deletions(-) diff --git a/block/qed.c b/block/qed.c index db27f36..a22c2d9 100644 --- a/block/qe

Re: [Qemu-devel] [PATCH 00/11] tcg-sparc updates

2014-03-10 Thread Mark Cave-Ayland
On 10/03/14 09:06, Artyom Tarasenko wrote: Hi Mark, I think a better test case would be looking for regressions in x86/x86-64 images. I'd suspect someone would launch QEMU on a SPARC machine to emulate some other platform. (Solaris containers would be more efficient for running SPARC on SPARC)

Re: [Qemu-devel] armv8 support in qemu

2014-03-10 Thread Gaurav Sharma
What all is supported in the initial code for full system emulation ? I am trying to bring up u-boot, which will require a minimal functionality. But in the file [target-arm/cpu64.c] this piece of code raises some questions to me : static const ARMCPUInfo aarch64_cpus[] = { #ifdef CONFIG_USER_ONLY

Re: [Qemu-devel] [PULL] migration patches

2014-03-10 Thread Peter Maydell
On 10 March 2014 04:39, Amit Shah wrote: > Should I mark the subject line as [migration PULL], so you don't have > to bother with the pull req? Something else? That seems a reasonable convention, yes, or [PULL migration] maybe. thanks -- PMM

[Qemu-devel] [PULL] Update OpenBIOS images to r1280

2014-03-10 Thread Mark Cave-Ayland
Hi Peter, Please pull the latest OpenBIOS binary images in preparation for the next release. These images contain numerous fixes/improvements for all of SPARC32, SPARC64 and PPC. Many thanks, Mark. The following changes since commit f53f3d0a00b6df39ce8dfca942608e5b6a9a4f71: Merge remote-t

Re: [Qemu-devel] armv8 support in qemu

2014-03-10 Thread Peter Maydell
On 10 March 2014 09:24, Gaurav Sharma wrote: > What all is supported in the initial code for full system emulation ? > I am trying to bring up u-boot, which will require a minimal functionality. > But in the file [target-arm/cpu64.c] this piece of code raises some > questions to me : > > static co

Re: [Qemu-devel] [PATCH v6] vl.c: Output error on invalid machine type

2014-03-10 Thread Markus Armbruster
mreza...@redhat.com writes: > From: Miroslav Rezanina > > Output error message using qemu's error_report() function when user > provides the invalid machine type on the command line. This also saves > time to find what issue is when you downgrade from one version of qemu > to another that doesn't

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell writes: > On 8 March 2014 12:39, Peter Maydell wrote: >> I've noticed that the tests/test-qapi-visit.c code provokes the following >> complaint from clang's -fsanitize=undefined undefined-behaviour >> checker when you run 'make check': >> >> tests/test-qapi-visit.c:462:33: runtime

[Qemu-devel] [Bug 1289527] Re: qemu-aarch64-static: java dies with SIGILL

2014-03-10 Thread Alex Bennée
For SIGILL's it's useful to have the qemu log with -d unimp output. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1289527 Title: qemu-aarch64-static: java dies with SIGILL Status in QEMU: New St

[Qemu-devel] Hello from a new comer

2014-03-10 Thread Edgar Simon
Hi everybody, As a newcomer at qemu-devel, I would like to introduce myself to you. I am an engineer student in embedded systems. I already worked with qemu for school projects. However I never contributed to qemu or to another open source project. I think qemu is a powerful and convenient e

Re: [Qemu-devel] [PATCH] vnc: Fix tight_detect_smooth_image() for lossless case

2014-03-10 Thread Markus Armbruster
Ping? Markus Armbruster writes: > VncTight member uint8_t quality is either (uint8_t)-1 for lossless or > less than 10 for lossy. > > tight_detect_smooth_image() first promotes it to int, then compares > with -1. Always unequal, so we always execute the lossy code. Reads > beyond tight_conf[]

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-10 Thread wzis
I can't test from git: on one box with git, it failed for the pixman missing. and the RHEL 5.3 doesn't have git. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1289898 Title: qemu-system-ppc64 easil

Re: [Qemu-devel] [PATCH] vnc: Fix tight_detect_smooth_image() for lossless case

2014-03-10 Thread Gerd Hoffmann
On Mo, 2014-03-10 at 11:10 +0100, Markus Armbruster wrote: > Ping? picked up this (and some other vnc bits) vnc pull req will go out soon. cheers, Gerd

Re: [Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-10 Thread Peter Maydell
On 10 March 2014 10:00, wzis wrote: > I can't test from git: on one box with git, it failed for the pixman > missing Did you try the git submodule command that configure suggests when it can't find pixman? That will pull in and build a local copy of pixman for QEMU. thanks -- PMM

[Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-10 Thread Paolo Bonzini
Also, RHEL5 does have git in the EPEL repository. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1289898 Title: qemu-system-ppc64 easily cause file corruption Status in QEMU: New Bug description

Re: [Qemu-devel] [PATCH qom-cpu 1/6] cpu: Introduce CPUClass::parse_features() hook

2014-03-10 Thread Igor Mammedov
On Sun, 09 Mar 2014 16:45:20 +0100 Andreas Färber wrote: > Am 04.03.2014 03:55, schrieb Andreas Färber: > > Adapt the X86CPU implementation to suit the generic hook. > > This involves a cleanup of error handling to cope with NULL errp. > > > > Signed-off-by: Andreas Färber > > --- > > include/

Re: [Qemu-devel] Call for testing QEMU aarch64-linux-user emulation

2014-03-10 Thread Alex Bennée
Peter Maydell writes: > On 9 March 2014 23:37, Dann Frazier wrote: >> Also - I've found an issue with running OpenJDK in the latest upstream git: >> >> root@server-75e0210e-4f99-4c86-9277-3201ab7b6afd:/root# java >> # >> [thread 274902467056 also had an error]# A fatal error has been >> detecte

[Qemu-devel] [PATCH] net: L2TPv3 transport

2014-03-10 Thread anton . ivanov
From: Anton Ivanov This tranport allows to connect a qemu nic to a static Ethernet over L2TPv3 tunnel. The transport supports all options present in the linux kernel implementation. It allows qemu to connect to any linux host running kernel 3.3+, most routers and network Signed-off-by: Anton Iva

Re: [Qemu-devel] [PATCH] qdev: Fix bus dependency of DeviceState::hotpluggable getter

2014-03-10 Thread Igor Mammedov
On Sun, 9 Mar 2014 18:55:05 +0200 "Michael S. Tsirkin" wrote: > On Sun, Mar 09, 2014 at 05:48:57PM +0100, Andreas Färber wrote: > > Am 09.03.2014 17:40, schrieb Michael S. Tsirkin: > > > On Fri, Mar 07, 2014 at 07:13:18PM +0100, Andreas Färber wrote: > > >> Commit 1a37eca107cece3ed454bae29eef0bd1

Re: [Qemu-devel] Call for testing QEMU aarch64-linux-user emulation

2014-03-10 Thread Peter Maydell
On 10 March 2014 11:28, Alex Bennée wrote: > > Peter Maydell writes: > >> On 9 March 2014 23:37, Dann Frazier wrote: >>> Also - I've found an issue with running OpenJDK in the latest upstream git: >>> >>> root@server-75e0210e-4f99-4c86-9277-3201ab7b6afd:/root# java >>> # >>> [thread 274902467056

Re: [Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-10 Thread wzis
Yes, I tried that, but it failed due to some php component missing. > Date: Mon, 10 Mar 2014 10:45:34 + > From: peter.mayd...@linaro.org > To: w...@hotmail.com > Subject: Re: [Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause > file corruption > > On 10 March 2014 10:00, wzis wro

Re: [Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

2014-03-10 Thread wzis
On my RHEL 5.3 box, there are too many problems to get git work. And on the CentOS 6.4 it has many problem to get pixman, so I just can't test the latest qemu unless you also put the pixman in as 1.7.0 does. > Date: Mon, 10 Mar 2014 10:53:48 + > From: bonz...@gnu.org > To: w...@hotmail.com > S

Re: [Qemu-devel] [PATCH 3/4] linux-user: set minimum kernel version to2.6.322

2014-03-10 Thread Riku Voipio
On 7 March 2014 10:45, Peter Maydell wrote: >> On 7 March 2014 02:19, Riku Voipio wrote: > > So you agree these patches are the way to go? > I haven't actually reviewed them but I think the idea is right, > yes. With the hard freeze getting close, and me being away until wednesday, I think I'l

Re: [Qemu-devel] [PATCH] target-arm: Fix intptr_t vs tcg_target_long

2014-03-10 Thread Peter Maydell
On 5 March 2014 18:14, Richard Henderson wrote: > Fixes a build error when these are different, e.g. x32. > > Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell A quick grep of the uses of tcg_gen_exit_tb() suggests we would be better to change this function to take (TranslationBlock

[Qemu-devel] [PATCH 1/2] tests/libqtest: Fix possible deadlock in qtest initialization

2014-03-10 Thread Marcel Apfelbaum
'socket_accept' waits for Qemu to init its unix socket. If Qemu encounters an error during command line parsing, it can exit before initializing the communication channel. It gets worse as the make check-qtest-* gets stuck without notifying which test exactly has problems, so debugging can be a cha

[Qemu-devel] [PATCH 0/2] tests: Fix possible deadlock in qtest initialization

2014-03-10 Thread Marcel Apfelbaum
'socket_accept' waits for Qemu to init its unix socket. If Qemu encounters an error during command line parsing, it can exit before initializing the communication channel. It gets worse as the make check-qtest-* gets stuck without notifying which test exactly has problems, so debugging can be a cha

[Qemu-devel] [PATCH 2/2] tests: check that qtest state is valid before starting the test

2014-03-10 Thread Marcel Apfelbaum
It is possible that the argument parsing went wrong, check that qstate is valid after qtest_init. As a nice side effect, even the nop tests will check at least that the device/option is still supported by Qemu. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test.c | 4 +++- tests/blockd

Re: [Qemu-devel] test-qapi-visit causes clang -fsanitize=undefined warning

2014-03-10 Thread Markus Armbruster
Peter Maydell writes: > I've noticed that the tests/test-qapi-visit.c code provokes the following > complaint from clang's -fsanitize=undefined undefined-behaviour > checker when you run 'make check': > > tests/test-qapi-visit.c:462:33: runtime error: member access within > null pointer of type '

[Qemu-devel] [PATCH 3/8] linux-user: Don't use UID16 on AArch64

2014-03-10 Thread riku . voipio
From: Andreas Schwab The AArch64 kernel defines its __kernel_uid_t type as 32 bits, unlike 32 bit ARM, so don't enable our 16-bit UID wrapper handling. Signed-off-by: Andreas Schwab Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio Reviewed-by: Richard Henderson --- linux-user/syscall

[Qemu-devel] [PATCH 2/8] linux-user: AArch64: Implement SA_RESTORER for signal handlers

2014-03-10 Thread riku . voipio
From: Michael Matz Implement support for signal handlers with the SA_RESTORER flag set. Signed-off-by: Michael Matz [PMM: minor tweaks to make patch apply to current master] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio Reviewed-by: Richard Henderson --- linux-user/signal.c | 16 +

[Qemu-devel] [PATCH 1/8] linux-user/signal.c: Fix AArch64 big-endian FP register restore

2014-03-10 Thread riku . voipio
From: Peter Maydell Fix the loop restoring the FP registers from the signal frame to match the one used when setting up the signal frame, so that it handles TARGET_WORDS_BIGENDIAN being set. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio Reviewed-by: Richard Henderson --- linux-user

[Qemu-devel] [PATCH 6/8] linux-user: translate signal number on return from sigtimedwait

2014-03-10 Thread riku . voipio
From: Petar Jovanovic On success, sigtimedwait() returns a signal number that needs to be translated from a host value to a target value. This change also fixes issues with sigwait (that is implemented using sigtimedwait()). Signed-off-by: Petar Jovanovic Signed-off-by: Riku Voipio Reviewed-b

[Qemu-devel] [PATCH 4/8] linux-user: Fix getresuid, getresgid if !USE_UID16

2014-03-10 Thread riku . voipio
From: Peter Maydell The size of the UID/GID types depends on whether USE_UID16 is defined. Define a new put_user_id() which writes a uid/gid type to guest memory. This fixes getresuid and getresgid, which were always storing 16 bits even if the uid type was 32 bits. Reported-by: Michael Matz Si

[Qemu-devel] [PATCH 8/8] linux-user: set minimum kernel version to 2.6.32

2014-03-10 Thread riku . voipio
From: Riku Voipio Popular glibc based distributions[1] require minimum 2.6.32 as kernel version. For some targets 2.6.18 would be enough, but dropping so low would mean some suboptimal system calls could get used. Set the minimum kernel advertized to 2.6.32 for all architectures but aarch64 to e

[Qemu-devel] [PATCH 7/8] linux-user: correct handling of break exception for MIPS

2014-03-10 Thread riku . voipio
From: Petar Jovanovic Exception with break instruction has not been correctly propagated as SIGTRAP. This resolves crash issues with examples that use break instruction on MIPS. Signed-off-by: Petar Jovanovic Signed-off-by: Riku Voipio --- linux-user/main.c | 4 1 file changed, 4 inserti

[Qemu-devel] [PATCH 5/8] linux-user: Implement sendmmsg syscall

2014-03-10 Thread riku . voipio
From: Alexander Graf Glibc when built for newer kernels assumes that the sendmmsg syscall is available. Without it, dns resolution simply fails to work. Wrap the syscall with existing infrastructure so that we don't have a host dependency on sendmmsg. To avoid locking the same area of guest mem

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 2/2] Fix return value of vga initlization on ppc

2014-03-10 Thread Alexey Kardashevskiy
On 03/10/2014 05:07 AM, Paolo Bonzini wrote: > Il 08/03/2014 14:26, Alexey Kardashevskiy ha scritto: >>> > I think that after this patch, "-nodefaults -device VGA" will get a USB >>> > controller that it didn't get before. >> >> I suspect what was meant by "the machine not aware of the graphics dev

[Qemu-devel] [PULL 0/8] linux-user update for 2.0

2014-03-10 Thread riku . voipio
From: Riku Voipio The following changes since commit d844a7b6569fb2b5252773444b18841426e5b906: modules: Fix building with --enable-modules (2014-02-28 12:30:13 +) are available in the git repository at: git://git.linaro.org/people/riku.voipio/qemu.git linux-user-for-upstream for you t

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 2/2] Fix return value of vga initlization on ppc

2014-03-10 Thread Paolo Bonzini
Il 10/03/2014 13:23, Alexey Kardashevskiy ha scritto: On 03/10/2014 05:07 AM, Paolo Bonzini wrote: Il 08/03/2014 14:26, Alexey Kardashevskiy ha scritto: I think that after this patch, "-nodefaults -device VGA" will get a USB controller that it didn't get before. I suspect what was meant by "t

  1   2   3   >