[Qemu-devel] GSoC Idea: Motorola DSP56k

2013-04-21 Thread Niel van der Westhuizen
Hey, So I've been hacking away on an Xbox target in qemu ( https://github.com/espes/xqemu). The Xbox APU contains a Motorola DSP56362 core, and there's API and tooling for applications to generate and load custom effects consisting of DSP code, so a reasonable emulation of it seems to be

Re: [Qemu-devel] [PATCH] tcg: fix deposit_i64 op on 32-bit targets

2013-04-21 Thread Richard Henderson
On 2013-04-21 00:48, Aurelien Jarno wrote: On 32-bit TCG targets, when emulating deposit_i64 with a mov_i32 + deposit_i32, care should be taken to not overwrite the low part of the second argument before the deposit when it is the same the destination. This fixes the shld instruction in

Re: [Qemu-devel] Live Block Migration Strategy

2013-04-21 Thread Stefan Hajnoczi
On Fri, Apr 19, 2013 at 6:11 AM, Yaodong Yang yaodong.ya...@gmail.com wrote: Could someone share me with some information about the live block migration strategy in the current qemu-kvm. As I know, there are at least IO mirroring, dirty block tracking, snapshot, precopy or postcopy strategy

[Qemu-devel] [PATCH RFC] pci: use current bus # for pci_for_each_device

2013-04-21 Thread Michael S. Tsirkin
I see two types of users of pci_for_each_device: some pass in bus # directly, some pass in 0. I am guessing that those passing 0 really want the root, so the right thing is likely to use the bus number directly. Could some Xen folks comment on whether the following patch breaks anything? If not

[Qemu-devel] target-i386: enable SVM lock for Phenom processors

2013-04-21 Thread prasadjoshi . linux
From: Prasad Joshi prasadjoshi.li...@gmail.com Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.com --- target-i386/cpu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index e2302d8..540e450 100644 --- a/target-i386/cpu.c +++

[Qemu-devel] [Bug 1169856] Re: OpenBIOS seek fails on NetBSD CD image

2013-04-21 Thread Mark Cave-Ayland
Thanks for the bug report! This was a slight bug in the interpose logic within the OpenBIOS disk- label package - we were always interposing a partition package if we could detect a valid partition magic. In actual fact the interpose should only happen when no arguments are specified when opening

[Qemu-devel] Capabilities in default SELinux policy for QEMU

2013-04-21 Thread Blue Swirl
Hi, It looks like the reference SELinux policy for QEMU is too restrictive for 9pfs (and user emulators) and also too permissive for any other uses. Excerpts from policy/modules/contrib/qemu.if: template(`qemu_domain_template',` allow $1_t self:capability { dac_read_search dac_override

Re: [Qemu-devel] GSoC Idea: Motorola DSP56k

2013-04-21 Thread Peter Maydell
On 20 April 2013 17:52, Niel van der Westhuizen nielg...@gmail.com wrote: So I've been hacking away on an Xbox target in qemu (https://github.com/espes/xqemu). The Xbox APU contains a Motorola DSP56362 core, and there's API and tooling for applications to generate and load custom effects

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Fix recent compile breakage

2013-04-21 Thread Peter Maydell
Early ping for compile-breakage fix patch (ccing Blue this time round since you've been applying patches this weekend.) Patchwork url: http://patchwork.ozlabs.org/patch/237347/ thanks! -- PMM On 17 April 2013 20:16, Peter Maydell peter.mayd...@linaro.org wrote: Fix failures to compile

Re: [Qemu-devel] [PATCH v5 01/19] tcg-arm: Fix local stack frame

2013-04-21 Thread Aurelien Jarno
On Sun, Mar 31, 2013 at 03:34:47PM -0700, Richard Henderson wrote: We were not allocating TCG_STATIC_CALL_ARGS_SIZE, so this meant that any helper with more than 4 arguments would clobber the saved regs. Realizing that we're supposed to have this memory pre-allocated means we can clean up the

Re: [Qemu-devel] [PATCH v5 02/19] tcg: Log the contents of the prologue with -d out_asm

2013-04-21 Thread Aurelien Jarno
On Sun, Mar 31, 2013 at 03:34:48PM -0700, Richard Henderson wrote: This makes it easier to verify changes to the code generating the prologue. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/tcg.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tcg/tcg.c

Re: [Qemu-devel] [PATCH v5 09/19] tcg-arm: Implement deposit for armv7

2013-04-21 Thread Aurelien Jarno
On Sun, Mar 31, 2013 at 03:34:55PM -0700, Richard Henderson wrote: We have BFI and BFC available for implementing it. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 36 tcg/arm/tcg-target.h | 5 - 2 files changed, 40

[Qemu-devel] make check failures

2013-04-21 Thread Blue Swirl
I'm getting this error for make check on an ARM host: GTESTER check-qtest-i386 GTester: last random seed: R02Sb8a38f2b54abc70ad75be1aa6db12891 ** ERROR:/src/qemu/tests/i440fx-test.c:39:test_i440fx_defaults: assertion failed: (dev != NULL) GTester: last random seed:

[Qemu-devel] [PATCH] linux-user: fix compile error due to stray colon at end of #ifdef line

2013-04-21 Thread Peter Maydell
Remove a stray colon from the end of a #ifdef line. Some versions of gcc complain about this: linux-user/syscall.c: In function ‘do_syscall’: linux-user/syscall.c:7606:28: error: extra tokens at end of #ifdef directive [-Werror] Signed-off-by: Peter Maydell peter.mayd...@linaro.org ---

Re: [Qemu-devel] [PATCH] linux-user: fix compile error due to stray colon at end of #ifdef line

2013-04-21 Thread Peter Maydell
oops, typo'd qemu-trivial address... -- PMM On 21 April 2013 13:30, Peter Maydell peter.mayd...@linaro.org wrote: Remove a stray colon from the end of a #ifdef line. Some versions of gcc complain about this: linux-user/syscall.c: In function ‘do_syscall’: linux-user/syscall.c:7606:28:

Re: [Qemu-devel] make check failures

2013-04-21 Thread Peter Maydell
On 21 April 2013 11:37, Blue Swirl blauwir...@gmail.com wrote: I'm getting this error for make check on an ARM host: GTESTER check-qtest-i386 GTester: last random seed: R02Sb8a38f2b54abc70ad75be1aa6db12891 ** ERROR:/src/qemu/tests/i440fx-test.c:39:test_i440fx_defaults: assertion failed:

Re: [Qemu-devel] [PATCH v5 3/3] configure/Make: Build libfdt from submodule DTC

2013-04-21 Thread Paolo Bonzini
Il 20/04/2013 20:42, Blue Swirl ha scritto: This is not entirely correct, I get these errors: mingw32: CC libfdt/fdt.o cc1: warnings being treated as errors /src/qemu/dtc/libfdt/fdt.c:1: warning: -fPIC ignored for target (all code is position independent) Other flags, including

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Paolo Bonzini
Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all'; default false means to do chunk registration and release, chunk release only happens after migration is complete unfortunately. This means that eventually all initialized memory is

[Qemu-devel] [PATCH] qtest: Handle addresses and values for {in, out}[bwl] as unsigned

2013-04-21 Thread Peter Maydell
Handle the addresses and values for {in,out}[bwl] as unsigned (ie with strtoul), as per the protocol specification comment. This fixes a test failure in test_i440fx_defaults on 32-bit hosts where the test tries to write 0x8000 and qtest was instead writing 0x7fff. Signed-off-by: Peter

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Michael S. Tsirkin
On Sun, Apr 21, 2013 at 03:19:21PM +0200, Paolo Bonzini wrote: Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all'; default false means to do chunk registration and release, chunk release only happens after migration is complete

Re: [Qemu-devel] [PATCH] mainloop.c: Keep unlocking BQL during busy-wait spin-out

2013-04-21 Thread Peter Crosthwaite
Hi Peter, On Fri, Apr 19, 2013 at 5:01 PM, Peter Lieven lieven-li...@dlhnet.de wrote: On 18.04.2013 16:35, Peter Crosthwaite wrote: Hi Peter, On Fri, Apr 19, 2013 at 12:22 AM, Peter Lieven lieven-li...@dlhnet.de wrote: On 15.04.2013 15:08, Anthony Liguori wrote: Peter Crosthwaite

Re: [Qemu-devel] [PATCH] qtest: Handle addresses and values for {in, out}[bwl] as unsigned

2013-04-21 Thread Blue Swirl
On Sun, Apr 21, 2013 at 1:30 PM, Peter Maydell peter.mayd...@linaro.org wrote: Handle the addresses and values for {in,out}[bwl] as unsigned (ie with strtoul), as per the protocol specification comment. This fixes a test failure in test_i440fx_defaults on 32-bit hosts where the test tries to

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Michael R. Hines
On 04/21/2013 09:19 AM, Paolo Bonzini wrote: Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all'; default false means to do chunk registration and release, chunk release only happens after migration is complete unfortunately. This

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Michael R. Hines
On 04/21/2013 09:19 AM, Paolo Bonzini wrote: Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all'; default false means to do chunk registration and release, chunk release only happens after migration is complete unfortunately. This

Re: [Qemu-devel] [PATCH v5 09/19] tcg-arm: Implement deposit for armv7

2013-04-21 Thread Richard Henderson
On 2013-04-21 11:35, Aurelien Jarno wrote: Wouldn't it be better to only declare the zero constraint (using bfc in that case), and let the middle-end to load the constant in other cases? Possibly. I wondered if the work of the extra constraint was worth the effort. r~

[Qemu-devel] GSOC Qemu: Integrated Copy/Paste

2013-04-21 Thread Pallav Agrawal
Hi all, I am a Senior Undergraduate at Indian Institute of Technology(IIT) , delhi, India. I was going through the Gsoc ideas page for the Qemu and found the problem of integrated copy/paste pretty interesting. I have a good coding experience in c and have done graduate level courses on advanced

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Michael R. Hines
On 04/21/2013 10:17 AM, Michael S. Tsirkin wrote: On Sun, Apr 21, 2013 at 03:19:21PM +0200, Paolo Bonzini wrote: Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all'; default false means to do chunk registration and release, chunk

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Fix recent compile breakage

2013-04-21 Thread Blue Swirl
Thanks, applied. On Sun, Apr 21, 2013 at 9:54 AM, Peter Maydell peter.mayd...@linaro.org wrote: Early ping for compile-breakage fix patch (ccing Blue this time round since you've been applying patches this weekend.) Patchwork url: http://patchwork.ozlabs.org/patch/237347/ thanks! -- PMM

Re: [Qemu-devel] Target-agnostic virtio?

2013-04-21 Thread Rob Landley
On 04/20/2013 05:36:46 AM, Blue Swirl wrote: I plan to add a sparc64 target built from source to Aboriginal Linux. For a lot of the 64-bit targets, actual 64 bit userspace support is strangely lacking. For ppc64 they say to use ppc32, and I've been told that about sparc64 as well. I

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Michael S. Tsirkin
On Sun, Apr 21, 2013 at 12:05:08PM -0400, Michael R. Hines wrote: On 04/21/2013 09:19 AM, Paolo Bonzini wrote: Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all'; default false means to do chunk registration and release, chunk

[Qemu-devel] [RFC][PATCH v3 00/24] instrument: Let the user wrap/override specific event tracing routines

2013-04-21 Thread Lluís Vilanova
TODO: Operations 'instr_load' and 'instr_unload' are not thread safe. (qemu_cpu_kick?) TODO: Do cmdline actions have to be implemented on top of QMP routines? TODO: HMP and QMP interfaces only accept one argument to instr-load. TODO: Replace programmatic 'InstrLoadError' in favour of

[Qemu-devel] [PATCH v3 01/24] instrument: Add documentation

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- docs/instrumentation.txt | 496 ++ docs/tracing.txt |9 + 2 files changed, 505 insertions(+) create mode 100644 docs/instrumentation.txt diff --git a/docs/instrumentation.txt

[Qemu-devel] [PATCH v3 06/24] instrument: [none] Add null instrumentation

2013-04-21 Thread Lluís Vilanova
Splits the QEMU-side tracing interface into different layers (in order of nested invocation): * trace_* The interface used by QEMU code to signal traceable/instrumentable events (now generated according to the selected instrumentation type). * qi_event_* The interface provided by the

[Qemu-devel] [PATCH v3 08/24] instrument: [static] Call statically linked user-provided routines

2013-04-21 Thread Lluís Vilanova
Compiles a user-provided static library during QEMU compilation. This library must provide the implementation of the 'qi_event_*' routines. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.target |2 + configure | 42

[Qemu-devel] [PATCH v3 02/24] trace: [simple] Do not include trace/simple.h in generated tracer headers

2013-04-21 Thread Lluís Vilanova
The header is not necessary, given that the simple backend does not define any inlined tracing routines. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool/backend/simple.py |5 + trace/simple.c |2 ++ 2 files changed, 3 insertions(+), 4

[Qemu-devel] [PATCH v3 21/24] instrument: Add client-side API to control event instrumentation

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- instrument/qemu-instr/control-internal.h | 16 ++ instrument/qemu-instr/control.h | 75 ++ 2 files changed, 91 insertions(+) diff --git a/instrument/qemu-instr/control-internal.h

[Qemu-devel] [PATCH v3 07/24] system: [linux] Use absolute include path for linux-headers

2013-04-21 Thread Lluís Vilanova
Lets the include directive work regardless of the current directory. This is needed for code compiled in directories deeper than one level from the build root. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.target |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v3 03/24] trace: Let the user specify her own trace-events file

2013-04-21 Thread Lluís Vilanova
With this option the user can perform multiple builds of QEMU with different tracing event properties. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.target |2 +- configure | 19 +++ trace/Makefile.objs | 10 +- 3 files changed, 25

[Qemu-devel] [PATCH v3 22/24] build: Fix installation of target-dependant files

2013-04-21 Thread Lluís Vilanova
Pass all the relevant sub-directory make variables. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Cc: Anthony Liguori aligu...@us.ibm.com Cc: Paul Brook p...@codesourcery.com --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index

[Qemu-devel] [PATCH v3 18/24] instrument: Add commandline options to start with an instrumentation library

2013-04-21 Thread Lluís Vilanova
Add commandline options to control initial loading of dynamic instrumentation library. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- bsd-user/main.c | 22 +++ bsd-user/syscall.c |5 +++ instrument/Makefile.objs |2 + instrument/cmdline.c | 91

[Qemu-devel] [PATCH v3 04/24] tracetool: Use method 'Event.api' to get the name of public routines

2013-04-21 Thread Lluís Vilanova
This ensures proper naming across tracing backends, even when someone overrides the value without backends knowing it. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool/__init__.py | 10 +- scripts/tracetool/backend/dtrace.py |6 +++---

[Qemu-devel] [PATCH v3 12/24] qapi: [trivial] Set the input root directory when parsing QAPI files

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cf938be..8280273 100644 --- a/Makefile +++ b/Makefile @@ -211,13 +211,19 @@ $(SRC_PATH)/qga/qapi-schema.json

[Qemu-devel] [PATCH v3 05/24] trace: Minimize inclusions of qemu-common.h to avoid inclusion loops

2013-04-21 Thread Lluís Vilanova
This problem arises in the following patches. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- hw/virtio/virtio.c|1 + monitor.c |4 +++- scripts/tracetool/format/h.py |9 - trace/control-internal.h |4 +++- trace/control.c

[Qemu-devel] [PATCH v3 24/24] trace: Do not use the word 'new' in event arguments

2013-04-21 Thread Lluís Vilanova
This lets instrumentation clients in C++ use the auto-generated headers. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool/__init__.py | 16 +++- trace-events |8 2 files changed, 19 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH v3 15/24] instrument: [qmp, qapi] Add control interface

2013-04-21 Thread Lluís Vilanova
Add QMP commands to control (un)loading of dynamic instrumentation library. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- instrument/Makefile.objs|2 + instrument/control.h|4 + instrument/qapi-schema.json | 124 +++

[Qemu-devel] [PATCH v3 09/24] build: Add variable 'tools-obj-y' for tool-only files

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile | 11 ++- libcacard/Makefile |2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 028ef83..2d3431a 100644 --- a/Makefile +++ b/Makefile @@ -171,18 +171,19 @@ Makefile:

[Qemu-devel] [PATCH v3 17/24] Let makefiles add entries to the set of target architecture objects

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.target |1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.target b/Makefile.target index 114fc39..fe48432 100644 --- a/Makefile.target +++ b/Makefile.target @@ -149,6 +149,7 @@ include $(SRC_PATH)/Makefile.objs all-obj-y

[Qemu-devel] [PATCH v3 13/24] qapi: [trivial] Allow user to use 'args' as an argument name

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/qapi-commands.py |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py index fa16651..236a6ae 100644 --- a/scripts/qapi-commands.py +++

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Michael S. Tsirkin
On Sun, Apr 21, 2013 at 01:19:17PM -0400, Michael R. Hines wrote: On 04/21/2013 10:17 AM, Michael S. Tsirkin wrote: On Sun, Apr 21, 2013 at 03:19:21PM +0200, Paolo Bonzini wrote: Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all';

[Qemu-devel] [PATCH v3 14/24] instrument: Add internal control interface

2013-04-21 Thread Lluís Vilanova
This interface provides two sets of operations: * Loading/unloading a trace instrumentation library. * Controls the instrumentation callbacks of the tracing events. Note that in the case of static instrumentation, the library is not loaded/unloaded, but is still properly (de)initialized when

[Qemu-devel] [PATCH v3 16/24] instrument: [hmp] Add control interface

2013-04-21 Thread Lluís Vilanova
Add HMP commands to control (un)loading of dynamic instrumentation library. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.objs|1 + hmp-commands.hx | 42 instrument/Makefile.objs |1 + instrument/hmp.c | 79

[Qemu-devel] [PATCH v3 19/24] instrument: Add client-side API to enumerate events

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- .gitignore |1 Makefile|1 configure |1 instrument/Makefile.objs| 13 +++ instrument/api-control.c

[Qemu-devel] [PATCH v3 20/24] instrument: Add client-side API to control tracing state of events

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- instrument/Makefile.objs |1 instrument/api-trace.c | 14 + instrument/qemu-instr/trace-internal.h | 32 +++ instrument/qemu-instr/trace.h | 91 4

[Qemu-devel] [PATCH v3 23/24] instrument: Install headers for dynamic instrumentation clients

2013-04-21 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ccf6760..3fc5fb6 100644 --- a/Makefile +++ b/Makefile @@ -324,7 +324,29 @@ install-confdir: install-sysconfig:

[Qemu-devel] [PATCH v3 11/24] qapi: Add a primitive to include other files from a QAPI schema file

2013-04-21 Thread Lluís Vilanova
Adds the include(...) primitive to the syntax of QAPI schema files. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/qapi-commands.py | 10 +++--- scripts/qapi-types.py| 10 +++--- scripts/qapi-visit.py| 10 +++--- scripts/qapi.py | 12

Re: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration

2013-04-21 Thread Michael R. Hines
On 04/21/2013 02:59 PM, Michael S. Tsirkin wrote: On Sun, Apr 21, 2013 at 12:05:08PM -0400, Michael R. Hines wrote: On 04/21/2013 09:19 AM, Paolo Bonzini wrote: Il 20/04/2013 19:02, Michael S. Tsirkin ha scritto: I guess the opposite sense could be named 'x-rdma-pin-all'; default false means

[Qemu-devel] [PATCH v3 10/24] instrument: [dynamic] Call dynamically linked user-provided routines

2013-04-21 Thread Lluís Vilanova
Provides a mechanism to dynamically change the routine invoked by 'trace_*'. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- .gitignore |1 Makefile |4 + Makefile.objs |6 ++

[Qemu-devel] [PATCH v5 09/12] rdma: new QEMUFileOps hooks

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com These are the prototypes and implementation of new hooks that RDMA takes advantage of to perform dynamic page registration. An optional hook is also introduced for a custom function to be able to override the default save_page function. Also included

[Qemu-devel] [PATCH v5 04/12] rdma: introduce qemu_get_max_size()

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com This functions allows you to perform your own per-QEMUFileOps calculation for the value of 'max_size'. For RDMA, this calculation artificially limits migration throughput and needs to be done differently for high-throughput links. Signed-off-by: Michael

[Qemu-devel] [PATCH v5 03/12] rdma: export throughput w/ MigrationStats QMP

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com This exposes throughput (in megabits/sec) through QMP. By itself, this patch only prints zero and the value is actually calculated in the next patch. Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- hmp.c |2 ++

[Qemu-devel] [PATCH v5 00/12] rdma: migration support

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com Changes since v4: - Added new QEMUFileOps function: qemu_get_max_size() - Renamed capability to x-pin-all, disabled by default - Added numbers for x-pin-all to performance section in docs/rdma.txt - Included performance numbers in this cover letter -

[Qemu-devel] [PATCH v5 05/12] rdma: introduce qemu_file_mode_is_not_valid()

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com QEMUFileRDMA also has read and write modes. This function is now shared to reduce code duplication. Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- include/migration/qemu-file.h |1 + savevm.c | 20 +---

[Qemu-devel] [PATCH v5 10/12] rdma: introduce capability x-rdma-pin-all

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com This capability allows you to disable dynamic chunk registration for better throughput on high-performance links. For example, using an 8GB RAM virtual machine with all 8GB of memory in active use and the VM itself is completely idle using a 40 gbps

[Qemu-devel] [PATCH v5 08/12] rdma: introduce qemu_ram_foreach_block()

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com This is used during RDMA initialization in order to transmit a description of all the RAM blocks to the peer for later dynamic chunk registration purposes. Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- exec.c|9 +

[Qemu-devel] [PATCH v5 11/12] rdma: core logic

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com Code that does need to be visible is kept well contained inside this file and this is the only new additional file to the entire patch - good progress. This file includes the entire protocol and interfaces required to perform RDMA migration. Also, the

[Qemu-devel] [PATCH v5 07/12] rdma: introduce ram_handle_compressed()

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com This gives RDMA shared access to madvise() on the destination side when an entire chunk is found to be zero. Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- arch_init.c | 24

[Qemu-devel] [PATCH v5 01/12] rdma: add documentation

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com docs/rdma.txt contains full documentation, wiki links, github url and contact information. Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- docs/rdma.txt | 404 + 1 file changed, 404

[Qemu-devel] [PATCH v5 06/12] rdma: export qemu_fflush()

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com RDMA uses this to flush the control channel before sending its own message to handle page registrations. Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- include/migration/qemu-file.h |1 + savevm.c |2 +- 2 files

[Qemu-devel] [PATCH v5 12/12] rdma: send pc.ram

2013-04-21 Thread mrhines
From: Michael R. Hines mrhi...@us.ibm.com This takes advantages of the previous patches: 1. use the new QEMUFileOps hook 'save_page' 2. call out to the right accessor methods to invoke the iteration hooks defined in QEMUFileOps Signed-off-by: Michael R. Hines mrhi...@us.ibm.com ---

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Fix recent compile breakage

2013-04-21 Thread Andreas Färber
Peter, Am 21.04.2013 11:54, schrieb Peter Maydell: Early ping for compile-breakage fix patch (ccing Blue this time round since you've been applying patches this weekend.) Patchwork url: http://patchwork.ozlabs.org/patch/237347/ Even after this has been applied, things are still not building

[Qemu-devel] [Bug 1171211] [NEW] Qemu-kvm 1.4.0 q35 no bootable device

2013-04-21 Thread commiethebeastie
Public bug reported: I tried launch iso and raw images in qemu-kvm-1.4.0 with seabios-1.7.2 (and seabios-git) with this options: qemu-system-x86_64 -M q35 -smp 8,cores=8 -vga qxl -cpu host -enable-kvm -m 4096 -localtime -cdrom /home/user/media/iso/windows7x86_64.iso -drive

[Qemu-devel] [PATCH v2 0/5] vmdk: zeroed-grain GTE support

2013-04-21 Thread Fam Zheng
Added support for zeroed-grain GTE to VMDK according to VMDK Spec 5.0[1]. [1] Virtual Disk Format 5.0 - VMware, http://www.vmware.com/support/developer/vddk/vmdk_50_technote.pdf?src=vmdk Changes since v1: - all: fix From: field - 1/5: squash one line of ret code macro change from 2/5 -

[Qemu-devel] [PATCH v2 2/5] vmdk: add support for “zeroed‐grain” GTE

2013-04-21 Thread Fam Zheng
Introduced support for zeroed-grain GTE, as specified in Virtual Disk Format 5.0[1]. Recent VMware hosted platform products support a new “zeroed‐grain” grain table entry (GTE). The zeroed‐grain GTE returns all zeros on read. In other words, the zeroed‐grain GTE indicates that a

[Qemu-devel] [PATCH v2 5/5] vmdk: add bdrv_co_write_zeroes

2013-04-21 Thread Fam Zheng
Use special offset to write zeroes efficiently, when zeroed-grain GTE is available. If zero-write an allocated cluster, cluster is leaked because its offset pointer is overwritten by 0x1. Signed-off-by: Fam Zheng f...@redhat.com --- block/vmdk.c | 82

[Qemu-devel] [PATCH v2 1/5] vmdk: named return code.

2013-04-21 Thread Fam Zheng
Internal routines in vmdk.c previously return -1 on error and 0 on success. More return values are useful for future changes such as zeroed-grain GTE. Change all the magic `return 0` and `return -1` to macro names: * VMDK_OK 0 * VMDK_ERROR (-1) * VMDK_UNALLOC (-2) * VMDK_ZEROED (-3)

[Qemu-devel] [PATCH v2 3/5] vmdk: Add option to create zeroed-grain image

2013-04-21 Thread Fam Zheng
Add image create option zeroed-grain to enable zeroed-grain GTE feature of vmdk sparse extents. When this option is on, header version of newly created extent will be 2 and VMDK4_FLAG_ZG flag bit will be set. Signed-off-by: Fam Zheng f...@redhat.com --- block/vmdk.c | 22 +- 1

[Qemu-devel] [PATCH v2 4/5] vmdk: change magic number to macro

2013-04-21 Thread Fam Zheng
Two hard coded flag bits are changed to macros. Signed-off-by: Fam Zheng f...@redhat.com --- block/vmdk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/vmdk.c b/block/vmdk.c index d8c6c70..632689b 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -32,6 +32,7 @@

Re: [Qemu-devel] [PATCH V13 0/6] replace QEMUOptionParameter with QemuOpts parser

2013-04-21 Thread Dong Xu Wang
On 2013/4/10 14:25, Dong Xu Wang wrote: These patches will replace QEMUOptionParameter with QemuOpts. Change logs please go to each patch's commit message. Dong Xu Wang (6): add def_value_str in QemuOptDesc struct and rewrite qemu_opts_print avoid duplication of default value in QemuOpts

Re: [Qemu-devel] [PATCH V12 00/18] qmp/hmp interfaces for internal snapshot info

2013-04-21 Thread Wenchao Xia
Hi, Any other comments for it, especially HMP part? V12: Address Markus's comments: 02/18: better incode comments for bdrv_snapshot_find(), add tip about the logic change in snapshot create/delete/load/info if some snapshot's id is mixed with name in commit message. 05/18:

[Qemu-devel] [PATCH 00/11] target-i386: remove some macros

2013-04-21 Thread liguang
remove macros EAX, EBX, ECX, EDX, EBP, ESP, ESI, EDI, EIP, DF as suggested by Richard Henderson r...@twiddle.net Li Guang (12) target-i386/helper: remove EAX macro target-i386/helper: remove EBX macro target-i386/helper: remove ECX macro target-i386/helper:

[Qemu-devel] [PATCH 02/12] target-i386/helper: remove EBX macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h |2 -- target-i386/mem_helper.c |4 ++-- target-i386/misc_helper.c |2 +- target-i386/seg_helper.c |6 +++--- target-i386/smm_helper.c |8 5 files changed, 10 insertions(+), 12

[Qemu-devel] [PATCH 05/12] target-i386/helper: remove EBP macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h|2 -- target-i386/seg_helper.c | 10 +- target-i386/smm_helper.c |8 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 78d1033..f2c4a49

[Qemu-devel] [PATCH 07/12] target-i386/helper: remove ESI macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h|2 -- target-i386/seg_helper.c |6 +++--- target-i386/smm_helper.c |8 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 9d52939..a7c73bf

[Qemu-devel] [PATCH 11/12] target-i386/helper: remove redundant env-eip assignment

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/svm_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/svm_helper.c b/target-i386/svm_helper.c index 649be02..e18fa35 100644 --- a/target-i386/svm_helper.c +++ b/target-i386/svm_helper.c @@

[Qemu-devel] [PATCH 00/11] target-i386: remove some macros

2013-04-21 Thread liguang
remove macros EAX, EBX, ECX, EDX, EBP, ESP, ESI, EDI, EIP, DF as suggested by Richard Henderson r...@twiddle.net Li Guang (12) target-i386/helper: remove EAX macro target-i386/helper: remove EBX macro target-i386/helper: remove ECX macro target-i386/helper:

[Qemu-devel] [PATCH 04/12] target-i386/helper: remove EDX macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h |2 -- target-i386/int_helper.c | 24 target-i386/mem_helper.c |8 target-i386/misc_helper.c |8 target-i386/seg_helper.c |8

[Qemu-devel] [PATCH 05/12] target-i386/helper: remove EBP macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h|2 -- target-i386/seg_helper.c | 10 +- target-i386/smm_helper.c |8 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 78d1033..f2c4a49

[Qemu-devel] [PATCH 10/12] target-i386/helper: remove DF macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- cpu-exec.c |4 ++-- target-i386/cc_helper.c |2 +- target-i386/cpu.h |6 ++ 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index 31c089d..ec46380 100644 --- a/cpu-exec.c

[Qemu-devel] [PATCH 12/12] target-i386: fix over 80 chars warnings

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/misc_helper.c | 39 ++- target-i386/seg_helper.c | 16 +--- target-i386/svm_helper.c |6 -- 3 files changed, 39 insertions(+), 22 deletions(-) diff --git

[Qemu-devel] [PATCH 00/122] target-i386: remove some macros

2013-04-21 Thread liguang
remove macros EAX, EBX, ECX, EDX, EBP, ESP, ESI, EDI, EIP, DF as suggested by Richard Henderson r...@twiddle.net Li Guang (12) target-i386/helper: remove EAX macro target-i386/helper: remove EBX macro target-i386/helper: remove ECX macro target-i386/helper:

[Qemu-devel] [PATCH 12/12] target-i386: fix over 80 chars warnings

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/misc_helper.c | 39 ++- target-i386/seg_helper.c | 16 +--- target-i386/svm_helper.c |6 -- 3 files changed, 39 insertions(+), 22 deletions(-) diff --git

[Qemu-devel] [PATCH 02/12] target-i386/helper: remove EBX macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h |2 -- target-i386/mem_helper.c |4 ++-- target-i386/misc_helper.c |2 +- target-i386/seg_helper.c |6 +++--- target-i386/smm_helper.c |8 5 files changed, 10 insertions(+), 12

[Qemu-devel] [PATCH 09/12] target-i386/helper: remove EIP macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h |2 -- target-i386/excp_helper.c |2 +- target-i386/misc_helper.c |4 ++-- target-i386/seg_helper.c | 24 target-i386/svm_helper.c | 16 5 files changed, 23

[Qemu-devel] [PATCH 00/12] target-i386: remove some macros

2013-04-21 Thread liguang
remove macros EAX, EBX, ECX, EDX, EBP, ESP, ESI, EDI, EIP, DF as suggested by Richard Henderson r...@twiddle.net Li Guang (12) target-i386/helper: remove EAX macro target-i386/helper: remove EBX macro target-i386/helper: remove ECX macro target-i386/helper:

[Qemu-devel] [PATCH 06/12] target-i386/helper: remove ESP macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h|2 - target-i386/seg_helper.c | 80 +++-- target-i386/smm_helper.c |8 ++-- target-i386/svm_helper.c |8 ++-- 4 files changed, 49 insertions(+), 49 deletions(-) diff

[Qemu-devel] [PATCH 01/12] target-i386/helper: remove EAX macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h |2 - target-i386/int_helper.c | 62 ++-- target-i386/mem_helper.c |8 +++--- target-i386/misc_helper.c | 10 +++--- target-i386/seg_helper.c |8 +++---

[Qemu-devel] [PATCH 08/12] target-i386/helper: remove EDI macro

2013-04-21 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/cpu.h|2 -- target-i386/seg_helper.c |6 +++--- target-i386/smm_helper.c |8 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index a7c73bf..23166d1

Re: [Qemu-devel] [PATCH] sheepdog: implement .bdrv_co_is_allocated

2013-04-21 Thread Liu Yuan
On 04/18/2013 07:48 PM, Liu Yuan wrote: Cc: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Liu Yuan tailai...@taobao.com --- NOTE: This patch based on the previous discard patch sheepdog: add discard/trim

Re: [Qemu-devel] [PATCH 00/12] target-i386: remove some macros

2013-04-21 Thread li guang
sorry, please see new 12 patches, for previous sent patches have little manual-changed errors. 在 2013-04-22一的 11:37 +0800,liguang写道: remove macros EAX, EBX, ECX, EDX, EBP, ESP, ESI, EDI, EIP, DF as suggested by Richard Henderson r...@twiddle.net Li Guang (12) target-i386/helper:

[Qemu-devel] [PATCH 1/2] target-i386/seg_helper: refactor 4 helper functions

2013-04-21 Thread liguang
for helper_{lsl, lar, verr, verw}, there are common parts, so move them outside, and then call this new helper-helper function. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/seg_helper.c | 179 ++--- 1 files changed, 56 insertions(+), 123

  1   2   >