[Qemu-devel] [PATCH 16/24] console: move gui_update+gui_setup_refresh from vl.c into console.c

2013-04-16 Thread Gerd Hoffmann
Pure code motion, no functional changes. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/console.h |2 -- ui/console.c | 50 ++ vl.c | 49 - 3 files

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-16 Thread Alexey Kardashevskiy
On 04/16/2013 07:22 PM, Paolo Bonzini wrote: Il 16/04/2013 09:57, Markus Armbruster ha scritto: I think this is just beautiful. Fedora18, x86_64, NO cross compiler. gcc does not apply -Wredundant-decls to /usr/include/* but does it for all other headers and in the case of cross compilation I

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-16 Thread Alexey Kardashevskiy
On 04/16/2013 07:00 PM, Markus Armbruster wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 04/16/2013 01:55 AM, Markus Armbruster wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 04/15/2013 10:57 PM, Markus Armbruster wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On

[Qemu-devel] [PATCH 06/24] pixman: render vgafont glyphs into pixman images

2013-04-16 Thread Gerd Hoffmann
Add helper functions to create pixman mask images for glyphs and to render these glyphs into a pixman image. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/qemu-pixman.h |7 +++ ui/qemu-pixman.c | 43 +++ 2 files changed,

[Qemu-devel] [PATCH 0/3] another round of qemu-char fixes

2013-04-16 Thread Paolo Bonzini
I'm happy to say that I'm not touching IOWatchPoll (well, almost: only for consistency). Instead, these patches try to make the code consistent (thus avoiding CRITICAL messages from glib) and to fix detection of pty connections; Gerd reported that it went berserk with polling. I think it is the

[Qemu-devel] [PATCH 1/3] qemu-char: use consistent idiom for removing sources

2013-04-16 Thread Paolo Bonzini
Always check that the source is active, and zero the tag afterwards. The occurrence in pty_chr_state will trigger with the next patch, the others are just theoretical. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qemu-char.c | 32 +++- 1 file changed, 23

[Qemu-devel] [PATCH 3/3] qemu-char: correct return value from chr_read functions

2013-04-16 Thread Paolo Bonzini
Even if a CharDriverState's source is blocked by the front-end, it must not be dropped. The IOWatchPoll that wraps it will take care of adding and removing it to the main loop. Only remove the source when the channel is closed; and in that case, make sure that the wrapping IOWatchPoll is removed

[Qemu-devel] [PATCH 2/3] qemu-char: simplify pty polling

2013-04-16 Thread Paolo Bonzini
There is no need to use a timer and pty_chr_read to detect a connected pty. It is simpler to just call g_poll periodically and check for POLLHUP. It is done once per second, and only if the pty is disconnected, so it is cheap enough. Tested with -monitor pty and -serial mon:pty, both of which

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-16 Thread Paolo Bonzini
Il 16/04/2013 12:54, Alexey Kardashevskiy ha scritto: but you shouldn't need it. Just configure your GCC with --with-sysroot=/foo and it should just work. --sysroot helps for native compiler but does not for the cross compiler. That usually points at an incorrect configuration when you

Re: [Qemu-devel] [PATCH 0/3] another round of qemu-char fixes

2013-04-16 Thread Gerd Hoffmann
On 04/16/13 13:10, Paolo Bonzini wrote: I'm happy to say that I'm not touching IOWatchPoll (well, almost: only for consistency). Instead, these patches try to make the code consistent (thus avoiding CRITICAL messages from glib) and to fix detection of pty connections; Gerd reported that it

Re: [Qemu-devel] [PATCH build-breakage] build: include config-{, all-}devices.mak after defining CONFIG_SOFTMMU and CONFIG_USER_ONLY

2013-04-16 Thread Markus Armbruster
Paolo Bonzini pbonz...@redhat.com writes: Moving the inclusions closer to Makefile, and before rules.mak, makes Makefile and Makefile.target more consistent with each other. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Patch fixes the build with --enable-tpm for me. Tested-by: Markus

[Qemu-devel] [PATCH] Fix warnings suppressors to honor --disable-werror

2013-04-16 Thread Markus Armbruster
Replace #pragma GCC diagnostic ignored FOO [Troublesome code...] #pragma GCC diagnostic error FOO by #pragma GCC diagnostic push #pragma GCC diagnostic ignored FOO [Troublesome code...] #pragma GCC diagnostic pop Broken in commit 3f4349d, commit 092bb30, and commit

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-16 Thread Kevin Wolf
Am 16.04.2013 um 11:00 hat Markus Armbruster geschrieben: Alexey Kardashevskiy a...@ozlabs.ru writes: On 04/16/2013 01:55 AM, Markus Armbruster wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 04/15/2013 10:57 PM, Markus Armbruster wrote: Alexey Kardashevskiy a...@ozlabs.ru

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-16 Thread Markus Armbruster
Paolo Bonzini pbonz...@redhat.com writes: Il 16/04/2013 12:54, Alexey Kardashevskiy ha scritto: but you shouldn't need it. Just configure your GCC with --with-sysroot=/foo and it should just work. --sysroot helps for native compiler but does not for the cross compiler. That usually

Re: [Qemu-devel] [PATCH] ARM Cortex A9 Global Timer

2013-04-16 Thread François Legal
Le 16-04-2013 11:50, Peter Maydell a écrit : On 15 April 2013 16:41, François Legal francois.le...@thom.fr.eu.org wrote: I made up this patch to implement the Cortex A9 global timer in Qemu. My patch is based on the Qemu branch maintained by Xilinx for the Zynq. Hi François; thanks for

Re: [Qemu-devel] [PATCH] pixman: remove -Wredundand-decls

2013-04-16 Thread Markus Armbruster
Kevin Wolf kw...@redhat.com writes: Am 16.04.2013 um 11:00 hat Markus Armbruster geschrieben: Alexey Kardashevskiy a...@ozlabs.ru writes: On 04/16/2013 01:55 AM, Markus Armbruster wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 04/15/2013 10:57 PM, Markus Armbruster wrote:

Re: [Qemu-devel] [PATCH] ARM Cortex A9 Global Timer

2013-04-16 Thread Peter Maydell
On 16 April 2013 13:09, François Legal de...@thom.fr.eu.org wrote: Ugh. Your mail client has completely mangled things (it's run all the lines of code into each other and it's still posting as multipart text+HTML). Please could you look at fixing its configuration -- it makes it hard to reply in

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix _filter_qemu

2013-04-16 Thread Eric Blake
On 04/16/2013 03:48 AM, Kevin Wolf wrote: $QEMU_PROG happens to be 'qemu' in my setup, so this sed command replaces a bit too much. Restrict it to the start of the line and to when it's followed by a colon, i.e. the form used by error messages. Signed-off-by: Kevin Wolf kw...@redhat.com ---

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread Eric Blake
On 04/16/2013 04:13 AM, Amos Kong wrote: Eric said String list contains additional JSON structure. At least, it works. Using the fat 'String' wrapper works, but requires more effort to decode. = using StringList '*unicast':['String'], '*multicast':

Re: [Qemu-devel] [PATCH] Fix warnings suppressors to honor --disable-werror

2013-04-16 Thread Eric Blake
On 04/16/2013 05:51 AM, Markus Armbruster wrote: Replace #pragma GCC diagnostic ignored FOO [Troublesome code...] #pragma GCC diagnostic error FOO by #pragma GCC diagnostic push #pragma GCC diagnostic ignored FOO [Troublesome code...] #pragma GCC

Re: [Qemu-devel] [PATCH V2] ARM Cortex A9 Global Timer

2013-04-16 Thread François Legal
Le 16-04-2013 14:19, Peter Maydell a écrit : On 16 April 2013 13:09, François Legal de...@thom.fr.eu.org wrote: Ugh. Your mail client has completely mangled things (it's run all the lines of code into each other and it's still posting as multipart text+HTML). Please could you look at fixing its

Re: [Qemu-devel] [PULL 4/8] rdma: introduce capability for chunk registration

2013-04-16 Thread Eric Blake
On 04/15/2013 10:50 PM, Paolo Bonzini wrote: Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: { 'enum': 'MigrationCapability', - 'data': ['xbzrle'] } + 'data': ['xbzrle', 'chunk_register_destination'] } x-chunk_register_destination. Or better, x-rdma_chunk_registration. Or

Re: [Qemu-devel] [PATCH] Fix warnings suppressors to honor --disable-werror

2013-04-16 Thread Markus Armbruster
Eric Blake ebl...@redhat.com writes: On 04/16/2013 05:51 AM, Markus Armbruster wrote: Replace #pragma GCC diagnostic ignored FOO [Troublesome code...] #pragma GCC diagnostic error FOO by #pragma GCC diagnostic push #pragma GCC diagnostic ignored FOO

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix _filter_qemu

2013-04-16 Thread Stefan Hajnoczi
On Tue, Apr 16, 2013 at 06:26:38AM -0600, Eric Blake wrote: On 04/16/2013 03:48 AM, Kevin Wolf wrote: $QEMU_PROG happens to be 'qemu' in my setup, so this sed command replaces a bit too much. Restrict it to the start of the line and to when it's followed by a colon, i.e. the form used by

Re: [Qemu-devel] [PATCH v2 0/2] Drop support for qdev taddr properties

2013-04-16 Thread Peter Maydell
Ping! -- PMM On 9 April 2013 12:27, Peter Maydell peter.mayd...@linaro.org wrote: There is currently only one user of the qdev taddr (target addr, now hwaddr) property code, and that user is wrong anyway, since the property it's trying to set isn't actually a taddr property. Fix the

[Qemu-devel] [PATCH v2 21/23] build: Fix installation of target-dependant files

2013-04-16 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 v2 20/23] instrument: Add client-side API to control event instrumentation

2013-04-16 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 | 61 ++ 2 files changed, 77 insertions(+) diff --git a/instrument/qemu-instr/control-internal.h

[Qemu-devel] [PATCH v2 17/23] instrument: Add commandline options to start with an instrumentation library

2013-04-16 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 | 25 +++ bsd-user/syscall.c |5 ++ instrument/Makefile.objs |2 + instrument/cmdline.c | 101

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

2013-04-16 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 v2 19/23] instrument: Add client-side API to control tracing state of events

2013-04-16 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 v2 18/23] instrument: Add client-side API to enumerate events

2013-04-16 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 v2 09/23] build: Add variable 'tools-obj-y' for tool-only files

2013-04-16 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 v2 08/23] instrument: [static] Call statically linked user-provided routines

2013-04-16 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 v2 07/23] system: [linux] Use absolute include path for linux-headers

2013-04-16 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 v2 06/23] instrument: [none] Add null instrumentation

2013-04-16 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 2 01/23] instrument: Add documentation

2013-04-16 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

Re: [Qemu-devel] [PATCH V2] ARM Cortex A9 Global Timer

2013-04-16 Thread Peter Crosthwaite
Hi Francois, On Tue, Apr 16, 2013 at 10:50 PM, François Legal francois.le...@thom.fr.eu.org wrote: Le 16-04-2013 14:19, Peter Maydell a écrit : On 16 April 2013 13:09, François Legal de...@thom.fr.eu.org wrote: Ugh. Your mail client has completely mangled things (it's run all the lines of

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

2013-04-16 Thread Lluís Vilanova
TODO: Make sure no TCG code is executing during 'instr_unload' (qemu_cpu_kick? tb_lock?) The whole set of patch series is available at: https://projects.gso.ac.upc.edu/projects/qemu-dbi Adds the instrument event property to declare which tracing events in QEMU must be instrumentable.

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix _filter_qemu

2013-04-16 Thread Eric Blake
On 04/16/2013 07:16 AM, Stefan Hajnoczi wrote: +sed -e s#^$(basename $QEMU_PROG):#QEMU_PROG:#g Why spawn a basename process, when you can use shell to do the same? The problem with the POSIX shell string replacement is that the syntax is horrible. I can never remember what ${%}, ${%%},

Re: [Qemu-devel] [PATCH 1/1] rng random backend: check for -EAGAIN errors on read

2013-04-16 Thread Andreas Färber
Am 16.04.2013 12:28, schrieb Amit Shah: Not handling EAGAIN triggers the assert qemu/backends/rng-random.c:44:entropy_available: assertion failed: (len != -1) Aborted (core dumped) This happens when starting a guest with '-device virtio-rng-pci', issuing a 'cat /dev/hwrng' in the guest,

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

2013-04-16 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 v2 13/23] qapi: Add a primitive to include other files from a QAPI schema file

2013-04-16 Thread Lluís Vilanova
Adds the input(...) 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] [PATCH] qemu-iotests: Fix _filter_qemu

2013-04-16 Thread Markus Armbruster
Stefan Hajnoczi stefa...@redhat.com writes: [...] The problem with the POSIX shell string replacement is that the syntax is horrible. I can never remember what ${%}, ${%%}, ${#} and %{##} do. $(basename $QEMU_PROG) is clear (although it doesn't handle spaces in the filename!). Here's how I

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

2013-04-16 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 v2 14/23] [trivial] Set the input root directory when parsing QAPI files

2013-04-16 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

Re: [Qemu-devel] [PATCH V2 5/5] block: make all steps in qmp_transaction() as callback

2013-04-16 Thread Kevin Wolf
Am 13.04.2013 um 13:11 hat Wenchao Xia geschrieben: Now qmp_transaction() can be extended with other operation, external snapshot or backing chain creation, is just one case it. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- blockdev.c | 68

[Qemu-devel] [PATCH v2 16/23] Let makefiles add entries to the set of target architecture objects

2013-04-16 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 v2 10/23] instrument: [dynamic] Call dynamically linked user-provided routines

2013-04-16 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 ++

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix _filter_qemu

2013-04-16 Thread Kevin Wolf
Am 16.04.2013 um 15:16 hat Stefan Hajnoczi geschrieben: On Tue, Apr 16, 2013 at 06:26:38AM -0600, Eric Blake wrote: On 04/16/2013 03:48 AM, Kevin Wolf wrote: $QEMU_PROG happens to be 'qemu' in my setup, so this sed command replaces a bit too much. Restrict it to the start of the line and

Re: [Qemu-devel] [qom-cpu PATCH 1/7] target-i386: Move cpuid_xlevel, cpuid_xlevel2 fields in X86CPU

2013-04-16 Thread Igor Mammedov
On Mon, 15 Apr 2013 16:25:34 -0300 Eduardo Habkost ehabk...@redhat.com wrote: As the cpuid_*_features fields will be replaced by an array, put the level/xlevel/xlevel2 fields together in the struct, as they won't be close to the corresponding cpuid_*_features fields anymore. Signed-off-by:

[Qemu-devel] [PATCH v2 01/23] instrument: Add documentation

2013-04-16 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

Re: [Qemu-devel] [PATCH] ARM Cortex A9 Global Timer

2013-04-16 Thread Peter Crosthwaite
Hi Francois, On Tue, Apr 16, 2013 at 1:41 AM, François Legal francois.le...@thom.fr.eu.org wrote: Hello, I made up this patch to implement the Cortex A9 global timer in Qemu. My patch is based on the Qemu branch maintained by Xilinx for the Zynq. Patches against this tree can be

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

2013-04-16 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 --- include/qapi/qmp/qerror.h |9 + instrument/Makefile.objs|1 + instrument/qapi-schema.json | 33 instrument/qmp.c|

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

2013-04-16 Thread Lluís Vilanova
TODO: Make sure no TCG code is executing during 'instr_unload' (qemu_cpu_kick? tb_lock?) The whole set of patch series is available at: https://projects.gso.ac.upc.edu/projects/qemu-dbi Adds the instrument event property to declare which tracing events in QEMU must be instrumentable.

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

2013-04-16 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 v2 11/23] instrument: Add internal control interface

2013-04-16 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 0/7] qtest: add libqos

2013-04-16 Thread Anthony Liguori
This is libqos support for qtest. A few things are omitted from the RFC review in order to help get this merged quickly. Notably, there's still no way to tear down a device (pci_iounmap is hard to implement well). I haven't attempted to refactor i2c support and I have not introduced convenience

[Qemu-devel] [PATCH 3/7] libqos: add fw_cfg support

2013-04-16 Thread Anthony Liguori
fw_cfg is needed to get the top of memory which is necessary for doing PCI allocation and allocating RAM for DMA. Add a PC version of fw_cfg and enough abstraction to support other platforms. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile | 4 ++--

Re: [Qemu-devel] KVM call agenda for 2013-04-16

2013-04-16 Thread Juan Quintela
Juan Quintela quint...@redhat.com wrote: Hi Please send in any agenda topics you are interested in. As there are no topics, call is cancelled. Have a nice week. Later, Juan.

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

2013-04-16 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

Re: [Qemu-devel] [PATCH 00/16 v4] target-i386: CPU hot-add with cpu-add QMP command

2013-04-16 Thread Eduardo Habkost
On Tue, Apr 16, 2013 at 11:43:42AM +0200, Igor Mammedov wrote: [...] BTW: You were advocating using APIC ID on device_add to identify CPU but Eduardo would like avoid its usage on external interfaces. It would be nice to have your opinion on subject. relevant discussion threads are here:

Re: [Qemu-devel] [PATCH V2 1/5] block: package preparation code in qmp_transaction()

2013-04-16 Thread Kevin Wolf
Am 13.04.2013 um 13:11 hat Wenchao Xia geschrieben: The code before really committing is moved into a function. Most This line seems to be indented accidentally? code are simply moved from qmp_transaction()i, except fail handling label is changed from delete_and_fail to fail. Other code

[Qemu-devel] [PATCH 2/7] qtest: add libqos including PCI support

2013-04-16 Thread Anthony Liguori
This includes basic PCI support for the PC platform. Enough abstraction should be present to support non-PC platforms too. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- v1 - v2 - fixup size calculation (Kevin Wolf) --- configure | 2 +- tests/Makefile| 5 +-

[Qemu-devel] [PATCH v2 12/23] instrument: [hmp] Add control interface

2013-04-16 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 |2 + instrument/hmp.c | 66

Re: [Qemu-devel] [PULL 0/8] rdma: migration support

2013-04-16 Thread Paolo Bonzini
Il 16/04/2013 16:52, Michael R. Hines ha scritto: So, I should just CC Juan directly after the reviews are finished? Is that correct? No big deal, I can Cc him on my reviews too. Paolo

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

2013-04-16 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

Re: [Qemu-devel] [qom-cpu PATCH 2/7] target-i386/kvm.c: Code formatting changes

2013-04-16 Thread Igor Mammedov
On Mon, 15 Apr 2013 16:25:35 -0300 Eduardo Habkost ehabk...@redhat.com wrote: Add appropriate spaces around operators, and break line where it needs to be broken to allow feature-words array to be introduced without having too-long lines. Signed-off-by: Eduardo Habkost ehabk...@redhat.com

Re: [Qemu-devel] [PULL 4/8] rdma: introduce capability for chunk registration

2013-04-16 Thread Michael R. Hines
On 04/16/2013 08:58 AM, Eric Blake wrote: On 04/15/2013 10:50 PM, Paolo Bonzini wrote: Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: { 'enum': 'MigrationCapability', - 'data': ['xbzrle'] } + 'data': ['xbzrle', 'chunk_register_destination'] } x-chunk_register_destination. Or

[Qemu-devel] [PATCH 1/7] qtest: don't use system command to avoid double fork

2013-04-16 Thread Anthony Liguori
Currently we waitpid on the child process we spawn off that does nothing more than system() another process. While this does not appear to be incorrect, it's wasteful and confusing so get rid of it. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/libqtest.c | 11 --- 1 file

Re: [Qemu-devel] [PULL 0/8] rdma: migration support

2013-04-16 Thread Paolo Bonzini
Il 16/04/2013 16:32, Anthony Liguori ha scritto: Paolo Bonzini pbonz...@redhat.com writes: Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: From: Michael R. Hines mrhi...@us.ibm.com The following changes since commit 24a6e7f4d91e9ed5f8117ecb083431a23f8609a0: virtio-balloon:

Re: [Qemu-devel] [qom-cpu PATCH 3/7] target-i386: Move xlevel/xlevel2 in struct x86_def_t

2013-04-16 Thread Igor Mammedov
On Mon, 15 Apr 2013 16:25:36 -0300 Eduardo Habkost ehabk...@redhat.com wrote: As the *_features fields are going to be replaced with a features array, the xlevel xlevel2 fields won't be close to the corresponding *_features fields anymore. patch has nothing to do with mentioned *_features.

Re: [Qemu-devel] [qom-cpu PATCH 2/7] target-i386/kvm.c: Code formatting changes

2013-04-16 Thread Eduardo Habkost
On Tue, Apr 16, 2013 at 04:23:07PM +0200, Igor Mammedov wrote: On Mon, 15 Apr 2013 16:25:35 -0300 Eduardo Habkost ehabk...@redhat.com wrote: Add appropriate spaces around operators, and break line where it needs to be broken to allow feature-words array to be introduced without having

[Qemu-devel] [PATCH 5/7] i440fx-test: add test to compare default register values

2013-04-16 Thread Anthony Liguori
This test compares all of the default register values against the spec. It turns out we deviate in quite a few places. These places are really only visible to the BIOS though which is why this hasn't created any problems. The deviation actually happens in the core PCI layer so I suspect it's

[Qemu-devel] [PATCH 6/7] i440fx-test: add test for PAM functionality

2013-04-16 Thread Anthony Liguori
This tests PAM settings for the i440fx. This test does a lot of byte MMIO which is fairly slow with qtest today. But the test does complete in under 2 seconds. We don't fully emulate PAM largely because of limitations with KVM so we #if 0 that part of the test case. Signed-off-by: Anthony

Re: [Qemu-devel] [PULL 0/8] rdma: migration support

2013-04-16 Thread Anthony Liguori
Paolo Bonzini pbonz...@redhat.com writes: Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: From: Michael R. Hines mrhi...@us.ibm.com The following changes since commit 24a6e7f4d91e9ed5f8117ecb083431a23f8609a0: virtio-balloon: fix dynamic properties. (2013-04-15 17:06:58

[Qemu-devel] [PATCH 7/7] fw_cfg: add qtest test case

2013-04-16 Thread Anthony Liguori
This validates some basic characteristics of fw_cfg. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile | 2 + tests/fw_cfg-test.c | 141 2 files changed, 143 insertions(+) create mode 100644 tests/fw_cfg-test.c

[Qemu-devel] [PATCH 4/7] libqos: add malloc support

2013-04-16 Thread Anthony Liguori
This is a very simple allocator for the PC platform. It should be possible to add backends for other platforms. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile | 1 + tests/libqos/malloc-pc.c | 71

Re: [Qemu-devel] [PATCH v2 1/2] hw/sm501: Use correct setter for sysbus-ohci dma-address property

2013-04-16 Thread Peter Maydell
On 16 April 2013 15:47, Andreas Färber afaer...@suse.de wrote: Am 09.04.2013 13:27, schrieb Peter Maydell: The sysbus-ohci dma-address property is declared as a HEX64 property, not a TADDR, so use the correct setter for it. Actually, it's declared as DEFINE_PROP_DMAADDR(dma-offset,

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix _filter_qemu

2013-04-16 Thread Stefan Hajnoczi
On Tue, Apr 16, 2013 at 03:52:14PM +0200, Markus Armbruster wrote: Stefan Hajnoczi stefa...@redhat.com writes: [...] The problem with the POSIX shell string replacement is that the syntax is horrible. I can never remember what ${%}, ${%%}, ${#} and %{##} do. $(basename $QEMU_PROG) is

Re: [Qemu-devel] [PATCH v2 1/2] hw/sm501: Use correct setter for sysbus-ohci dma-address property

2013-04-16 Thread Andreas Färber
Am 09.04.2013 13:27, schrieb Peter Maydell: The sysbus-ohci dma-address property is declared as a HEX64 property, not a TADDR, so use the correct setter for it. Actually, it's declared as DEFINE_PROP_DMAADDR(dma-offset, OHCISysBusState, dma_offset, 3), which is in turn defined as

Re: [Qemu-devel] [PULL 0/8] rdma: migration support

2013-04-16 Thread Michael R. Hines
On 04/16/2013 10:32 AM, Anthony Liguori wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: From: Michael R. Hines mrhi...@us.ibm.com The following changes since commit 24a6e7f4d91e9ed5f8117ecb083431a23f8609a0: virtio-balloon: fix

Re: [Qemu-devel] [qom-cpu PATCH 3/7] target-i386: Move xlevel/xlevel2 in struct x86_def_t

2013-04-16 Thread Eduardo Habkost
On Tue, Apr 16, 2013 at 04:32:03PM +0200, Igor Mammedov wrote: On Mon, 15 Apr 2013 16:25:36 -0300 Eduardo Habkost ehabk...@redhat.com wrote: As the *_features fields are going to be replaced with a features array, the xlevel xlevel2 fields won't be close to the corresponding *_features

Re: [Qemu-devel] [PATCH v2 1/2] hw/sm501: Use correct setter for sysbus-ohci dma-address property

2013-04-16 Thread Aurelien Jarno
On Tue, Apr 09, 2013 at 12:27:52PM +0100, Peter Maydell wrote: The sysbus-ohci dma-address property is declared as a HEX64 property, not a TADDR, so use the correct setter for it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/display/sm501.c |2 +- 1 file changed, 1

Re: [Qemu-devel] [PATCH V2 2/5] block: move input parsing code in qmp_transaction()

2013-04-16 Thread Eric Blake
On 04/13/2013 05:11 AM, Wenchao Xia wrote: The code is moved into preparation function, and is changed a bit to tip more clearly what it is doing. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- blockdev.c | 38 +++--- 1 files changed, 19

Re: [Qemu-devel] [PATCH V2 1/5] block: package preparation code in qmp_transaction()

2013-04-16 Thread Eric Blake
On 04/13/2013 05:11 AM, Wenchao Xia wrote: The code before really committing is moved into a function. Most code are simply moved from qmp_transaction()i, except fail handling s/i,/,/ label is changed from delete_and_fail to fail. Other code such as input parsing is not touched, to make it

Re: [Qemu-devel] [PATCH V2] ARM Cortex A9 Global Timer

2013-04-16 Thread Peter Crosthwaite
Hi Francois, On Wed, Apr 17, 2013 at 12:06 AM, François Legal francois.le...@thom.fr.eu.org wrote: Hi Peter, Le 16-04-2013 15:23, Peter Crosthwaite a écrit : Hi Francois, On Tue, Apr 16, 2013 at 10:50 PM, François Legal francois.le...@thom.fr.eu.org wrote: Le 16-04-2013 14:19, Peter

Re: [Qemu-devel] [qom-cpu PATCH 4/7] target-i386/cpu.c: Break lines on kvm_cpu_fill_host()

2013-04-16 Thread Igor Mammedov
On Mon, 15 Apr 2013 16:25:37 -0300 Eduardo Habkost ehabk...@redhat.com wrote: Break lines so they don't get too long once the *_features fields are replaced by an array. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 6 -- 1 file changed, 4 insertions(+),

Re: [Qemu-devel] [PATCH 1/1] rng random backend: check for -EAGAIN errors on read

2013-04-16 Thread Amit Shah
On (Tue) 16 Apr 2013 [15:51:30], Andreas Färber wrote: Am 16.04.2013 12:28, schrieb Amit Shah: Not handling EAGAIN triggers the assert qemu/backends/rng-random.c:44:entropy_available: assertion failed: (len != -1) Aborted (core dumped) This happens when starting a guest with

Re: [Qemu-devel] [qapi] Cannot use list of strings

2013-04-16 Thread mdroth
On Tue, Apr 16, 2013 at 10:49:19AM +0200, Stefan Hajnoczi wrote: On Mon, Apr 15, 2013 at 10:04:24PM +0200, Lluís Vilanova wrote: Tried using a list of strings as an argument to a command, but the generated code references the 'strList' type, which does not exist. Is a specialized version

Re: [Qemu-devel] USB2.0 disk format failure in windows guest

2013-04-16 Thread Alan Stern
On Tue, 16 Apr 2013, Gonglei (Arei) wrote: Yes, this disk was using EHCI, since guest QEMU and Linux kernel both prints matching EHCI logs, such as transfer types and transfer sizes. There are many buck-out URBs whose sizes are 31 or 4064 that are not multiples of 512. Since URB size

Re: [Qemu-devel] [PATCH V2 3/5] block: package committing code in qmp_transaction()

2013-04-16 Thread Eric Blake
On 04/13/2013 05:11 AM, Wenchao Xia wrote: The code is simply moved into a separate function. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- blockdev.c | 20 +--- 1 files changed, 13 insertions(+), 7 deletions(-) Reviewed-by: Eric Blake ebl...@redhat.com --

Re: [Qemu-devel] [PATCH V2 4/5] block: package rolling back code in qmp_transaction()

2013-04-16 Thread Eric Blake
On 04/13/2013 05:11 AM, Wenchao Xia wrote: In the subject: s/rolling back/rollback/ Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- blockdev.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) With the subject fix, feel free to add: Reviewed-by: Eric Blake

Re: [Qemu-devel] USB2.0 disk format failure in windows guest

2013-04-16 Thread Gerd Hoffmann
Hi, Fixing this will require qemu to copy the beginning and ending parts of these non-aligned qTDs into separate bounce buffers so that the URB length can be divisible by 512. Worth trying: http://www.kraxel.org/cgit/qemu/log/?h=usb.80 It puts the qemu usb passthrough code upside down.

Re: [Qemu-devel] [PATCH V2 5/5] block: make all steps in qmp_transaction() as callback

2013-04-16 Thread Eric Blake
On 04/13/2013 05:11 AM, Wenchao Xia wrote: Now qmp_transaction() can be extended with other operation, external snapshot or backing chain creation, is just one case it. This read a bit awkwardly. Might I suggest: block: use callbacks in qmp_transaction() Make it easier to add other

Re: [Qemu-devel] [PATCH 0/6] migration: followups for writev patches

2013-04-16 Thread Anthony Liguori
Orit Wasserman owass...@redhat.com writes: On 03/27/2013 06:36 PM, Paolo Bonzini wrote: This series fixes a few small problems in Orit's writev patches: 1) socket_put_buffer is not needed anymore and can be dropped (patch 1); 2) sendmsg could do a partial write even for a blocking socket,

Re: [Qemu-devel] [PULL 0/8] rdma: migration support

2013-04-16 Thread Anthony Liguori
Paolo Bonzini pbonz...@redhat.com writes: Il 16/04/2013 16:32, Anthony Liguori ha scritto: Paolo Bonzini pbonz...@redhat.com writes: Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto: From: Michael R. Hines mrhi...@us.ibm.com The following changes since commit

Re: [Qemu-devel] [qom-cpu PATCH 4/7] target-i386/cpu.c: Break lines on kvm_cpu_fill_host()

2013-04-16 Thread Eduardo Habkost
On Tue, Apr 16, 2013 at 05:18:08PM +0200, Igor Mammedov wrote: On Mon, 15 Apr 2013 16:25:37 -0300 Eduardo Habkost ehabk...@redhat.com wrote: Break lines so they don't get too long once the *_features fields are replaced by an array. Signed-off-by: Eduardo Habkost ehabk...@redhat.com

Re: [Qemu-devel] [qom-cpu PATCH 7/7] target-i386: Replace cpuid_*features fields with a feature word array

2013-04-16 Thread Igor Mammedov
On Mon, 15 Apr 2013 16:25:40 -0300 Eduardo Habkost ehabk...@redhat.com wrote: This replaces the feature-bit fields on both X86CPU and x86_def_t structs with an array. With this, we will be able to simplify code that simply does the same operation on all feature words (e.g.

Re: [Qemu-devel] [qom-cpu PATCH 0/7] replace cpuid_*features fields with a featue word array (v8)

2013-04-16 Thread Eduardo Habkost
FYI: I will send v9 fixing the issues pointed by Igor, soon. The only difference in the resulting tree should be the indentation issue on patch 2, all the rest will be just patch merging and commit message changes. -- Eduardo

Re: [Qemu-devel] [PATCH 5/7] i440fx-test: add test to compare default register values

2013-04-16 Thread Eric Blake
On 04/16/2013 08:45 AM, Anthony Liguori wrote: This test compares all of the default register values against the spec. It turns out we deviate in quite a few places. These places are really only visible to the BIOS though which is why this hasn't created any problems. The deviation

<    1   2   3   >