Re: [Qemu-devel] [PATCH v5 6/6] KVM: s390: Wire up ioeventfd.

2013-03-05 Thread Cornelia Huck
On Mon, 4 Mar 2013 21:07:41 -0300 Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Feb 28, 2013 at 12:33:21PM +0100, Cornelia Huck wrote: Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw notifications. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com ---

Re: [Qemu-devel] [PATCH 2/3] net: introduce lock to protect NetClientState's send_queue

2013-03-05 Thread Paolo Bonzini
Il 05/03/2013 03:45, liu ping fan ha scritto: In fact, it's a bit strange to use nc-something_lock to lock something in nc-peer. Please add the lock to NetQueue and include/net/queue.h. The lock also servers as exclusion between NetClientState's sender and remover. So if we apply lock on

Re: [Qemu-devel] [PATCH v13 1/8] save/load cpu runstate

2013-03-05 Thread Paolo Bonzini
Il 05/03/2013 03:33, Hu Tao ha scritto: On Mon, Mar 04, 2013 at 10:30:48AM +0100, Paolo Bonzini wrote: Il 28/02/2013 13:13, Hu Tao ha scritto: This patch enables preservation of cpu runstate during save/load vm. So when a vm is restored from snapshot, the cpu runstate is restored, too. I

Re: [Qemu-devel] [PATCH v13 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-03-05 Thread Paolo Bonzini
Il 05/03/2013 04:17, Hu Tao ha scritto: Will if (runstate_check(RUN_STATE_INTERNAL_ERROR) || runstate_check(RUN_STATE_SHUTDOWN) || runstate_check(RUN_STATE_GUEST_PANICKED)) { runstate_set(RUN_STATE_PAUSED); } be OK? Or I must be

Re: [Qemu-devel] [SeaBIOS] [Seabios PATCH] make reboot-timeout to static for using it after POST phase

2013-03-05 Thread li guang
在 2013-03-05二的 10:06 +0800,Amos Kong写道: From: Kevin O'Connor ke...@koconnor.net Memory allocated with malloc_tmp() can't be used after the POST phase. The reboot-timeout inside romfile could not be loaded in boot_fail(). The patch saved reboot-timeout to a static variable, it fixed the

Re: [Qemu-devel] [PATCH V12 0/4] replace QEMUOptionParameter with QemuOpts parser

2013-03-05 Thread Stefan Hajnoczi
On Thu, Feb 28, 2013 at 05:20:32PM +0800, Dong Xu Wang wrote: Patch 1 add def_value_str and use it in qemu_opts_print. Patch 2 Create functions to pair with QemuOpts parser. Patch 3 Use QemuOpts parser in Block. Patch 4 Remove QEMUOptionParameter parser related code.

Re: [Qemu-devel] [PATCHv2 2/2] bridge helper: support conf dirs

2013-03-05 Thread Stefan Hajnoczi
On Sat, Mar 02, 2013 at 12:58:48AM -0600, Doug Goldstein wrote: @@ -152,6 +199,14 @@ static int parse_acl_file(const char *filename, ACLList *acl_list) failure: fclose(f); +if (include_list) { +for (i = 0; i include_count; i++) { +if (include_list[i]) +

Re: [Qemu-devel] [PATCH V7 09/14] block: move bdrv_snapshot_find() to block.c

2013-03-05 Thread Stefan Hajnoczi
On Tue, Mar 05, 2013 at 03:11:48PM +0800, Wenchao Xia wrote: 于 2013-3-4 21:02, Stefan Hajnoczi 写道: On Fri, Mar 01, 2013 at 09:51:53AM +0800, Wenchao Xia wrote: 于 2013-2-28 0:22, Kevin Wolf 写道: Am 27.02.2013 um 17:04 hat Markus Armbruster geschrieben: Wenchao Xia xiaw...@linux.vnet.ibm.com

Re: [Qemu-devel] [PATCH v11 0/7] trace: Generic event state description

2013-03-05 Thread Stefan Hajnoczi
On Mon, Mar 04, 2013 at 10:01:43PM +0100, Lluís Vilanova wrote: Stefan Hajnoczi writes: On Fri, Mar 01, 2013 at 04:29:35PM +0100, Lluís Vilanova wrote: Provides a generic event state description structure (TraceEvent) and a more detailed event control and query interface. This is

[Qemu-devel] [PATCH 1/2] qga: add guest-get-time command

2013-03-05 Thread Lei Li
Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-posix.c | 16 qga/qapi-schema.json | 13 + 2 files changed, 29 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 7a0202e..1426262 100644 --- a/qga/commands-posix.c +++

[Qemu-devel] [PATCH 0/2 v5] Time resync support by qemu-ga

2013-03-05 Thread Lei Li
This patch series attempts to add time resync support to qemu-ga by introducing qemu-ga commands guest-get-time and guest-set-time. Right now, when a guest is paused or migrated to a file then loaded from that file, the guest OS has no idea that there was a big gap in the time. Depending on how

[Qemu-devel] [PATCH 2/2] qga: add guest-set-time command

2013-03-05 Thread Lei Li
Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-posix.c | 55 qga/qapi-schema.json | 26 + 2 files changed, 81 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index

Re: [Qemu-devel] The state of testing

2013-03-05 Thread Kevin Wolf
Am 04.03.2013 um 17:22 hat Gerd Hoffmann geschrieben: Hi, How are things looking with device emulation, migration, monitor, char, etc? At the moment autotest/virt-test is pretty much the only workable thing for non-trivial devices because libqtest lacks infrastructure for pci and

[Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-05 Thread Lei Li
Pass the right type for setsockopt(), and this will also fix the compiler warning when cross build for qemu-ga.exe: util/osdep.c: In function 'socket_set_nodelay': util/osdep.c:69:5: warning: passing argument 4 of 'setsockopt' from incompatible pointer type [enabled by default]

[Qemu-devel] [Seabios PATCH v2] make reboot-timeout to static for using it after POST phase

2013-03-05 Thread Amos Kong
From: Kevin O'Connor ke...@koconnor.net Memory allocated with malloc_tmp() can't be used after the POST phase. The reboot-timeout inside romfile could not be loaded in boot_fail(). The patch saved reboot-timeout to a static variable, it fixed the regression bug introduced by commit 59d6ca52 I

Re: [Qemu-devel] default guest RAM size?

2013-03-05 Thread Daniel P. Berrange
On Tue, Mar 05, 2013 at 09:26:32AM +0400, Michael Tokarev wrote: For many years, qemu defaults to 128Mb of guest RAM size. Today, this is just too small, and many OSes fails to boot with this size, more, they fail to produce any reasonable messages either (eg, windows7 just crashes at

Re: [Qemu-devel] [PATCH V7 09/14] block: move bdrv_snapshot_find() to block.c

2013-03-05 Thread Kevin Wolf
Am 05.03.2013 um 10:21 hat Stefan Hajnoczi geschrieben: On Tue, Mar 05, 2013 at 03:11:48PM +0800, Wenchao Xia wrote: 于 2013-3-4 21:02, Stefan Hajnoczi 写道: On Fri, Mar 01, 2013 at 09:51:53AM +0800, Wenchao Xia wrote: 于 2013-2-28 0:22, Kevin Wolf 写道: Hi, Stefan Do you also agree

Re: [Qemu-devel] The state of testing

2013-03-05 Thread Amit Shah
On (Mon) 04 Mar 2013 [16:53:55], Stefan Hajnoczi wrote: People are working on testing for various parts of QEMU. I started this thread to gather an update on the state of testing and see where we still need help. I'm not sure yet if we should propose Google Summer of Code projects to help

Re: [Qemu-devel] [Spice-devel] Advice on some configuration parameters

2013-03-05 Thread Hans de Goede
Hi, On 03/01/2013 11:02 AM, Fabio Fantoni wrote: Il 12/02/2013 14:05, Fabio Fantoni ha scritto: I'm making patches to enable some qemu upstream features in xen that are missing in libxl. I'm trying to do it just by giving arguments to qemu, and I want them to be dynamic (e.g. without

Re: [Qemu-devel] [PATCH v11 0/7] trace: Generic event state description

2013-03-05 Thread Stefan Hajnoczi
On Mon, Mar 04, 2013 at 10:01:43PM +0100, Lluís Vilanova wrote: Stefan Hajnoczi writes: On Fri, Mar 01, 2013 at 04:29:35PM +0100, Lluís Vilanova wrote: Provides a generic event state description structure (TraceEvent) and a more detailed event control and query interface. This is

Re: [Qemu-devel] [PATCH 2/3] net: introduce lock to protect NetClientState's send_queue

2013-03-05 Thread Stefan Hajnoczi
On Tue, Mar 05, 2013 at 11:04:28AM +0800, liu ping fan wrote: On Tue, Mar 5, 2013 at 10:45 AM, liu ping fan qemul...@gmail.com wrote: On Mon, Mar 4, 2013 at 10:49 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sun, Mar 03, 2013 at 09:21:21PM +0800, Liu Ping Fan wrote: From: Liu Ping Fan

Re: [Qemu-devel] The state of testing

2013-03-05 Thread Stefan Hajnoczi
On Mon, Mar 04, 2013 at 01:20:03PM -0600, Anthony Liguori wrote: Stefan Hajnoczi stefa...@gmail.com writes: People are working on testing for various parts of QEMU. I started this thread to gather an update on the state of testing and see where we still need help. I'm not sure yet if

Re: [Qemu-devel] The state of testing

2013-03-05 Thread Stefan Hajnoczi
On Mon, Mar 04, 2013 at 05:22:34PM +0100, Gerd Hoffmann wrote: Hi, How are things looking with device emulation, migration, monitor, char, etc? At the moment autotest/virt-test is pretty much the only workable thing for non-trivial devices because libqtest lacks infrastructure for pci

Re: [Qemu-devel] [PATCH V7 09/14] block: move bdrv_snapshot_find() to block.c

2013-03-05 Thread Paolo Bonzini
Il 05/03/2013 11:08, Kevin Wolf ha scritto: As discussed on IRC, it's fine by me. If a better way to organize these functions becomes clear in the future they can be moved. As also discussed on IRC, I'm not excited by having a block/misc.c. We already have something for everything block

Re: [Qemu-devel] [PATCH 4/4] target-arm: always set endian bits in big-endian mode

2013-03-05 Thread Fabien Chouteau
On 03/04/2013 02:24 PM, Paul Brook wrote: On 03/01/2013 09:58 PM, Paul Brook wrote: +#ifdef TARGET_WORDS_BIGENDIAN +if (arm_feature(env, ARM_FEATURE_V6) +|| arm_feature(env, ARM_FEATURE_V7)) { +/* IE and EE bits stay set for big-endian */ +env-cp15.c1_sys |= (1

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-05 Thread Paolo Bonzini
Il 05/03/2013 00:22, Peter Maydell ha scritto: Yes, the right thing to do would be to QOMify memory regions and introduce pins, but that's a bit more than the amount of time I have now for this. ...plus it means that when we do have these things we have to go round and identify the cases

Re: [Qemu-devel] [PATCH 3/4] target-arm: Fix VFP register byte order in GDB remote

2013-03-05 Thread Fabien Chouteau
On 03/05/2013 12:34 AM, Paul Brook wrote: Because we're actually storing two halves of a 128-bit value. You still store the least significant half first. Right, I'm sorry I didn't see you comment was only about the Q registers. What would be the solution then? #ifdef

Re: [Qemu-devel] The state of testing

2013-03-05 Thread Gerd Hoffmann
On 03/05/13 11:46, Stefan Hajnoczi wrote: On Mon, Mar 04, 2013 at 05:22:34PM +0100, Gerd Hoffmann wrote: Hi, How are things looking with device emulation, migration, monitor, char, etc? At the moment autotest/virt-test is pretty much the only workable thing for non-trivial devices because

Re: [Qemu-devel] [PATCH 07/10] mips64-linux-user: Use MIPS64R2-generic as default cpu.

2013-03-05 Thread Aurelien Jarno
On Sun, Feb 10, 2013 at 10:30:47AM -0800, Richard Henderson wrote: Signed-off-by: Richard Henderson r...@twiddle.net --- linux-user/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) I don't actually recall why this patch was in my old tree. It might just have been that I

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-05 Thread Gerd Hoffmann
On 03/05/13 11:58, Paolo Bonzini wrote: Il 05/03/2013 00:22, Peter Maydell ha scritto: Yes, the right thing to do would be to QOMify memory regions and introduce pins, but that's a bit more than the amount of time I have now for this. ...plus it means that when we do have these things we

Re: [Qemu-devel] [PATCH 0/3] small virtio-ccw and css patches

2013-03-05 Thread Jens Freimann
ping On Fri, Feb 22, 2013 at 08:01:30PM +0100, Jens Freimann wrote: Alex, The following changes since commit 1143df5c72fd1f88b4b2b0774d11bf0ba6eb44d6: target-s390x: Pass S390CPU to s390_{add, del}_running_cpu() (2013-02-01 01:58:50 +0100) are available in the git repository at:

Re: [Qemu-devel] [PATCH V20 00/10] libqblock qemu block layer library

2013-03-05 Thread Wenchao Xia
Hi, Kevin Do you think this version is good enough to upstream? Hi, any comments for this version? These patches introduce libqblock API, make subdir-libqblock and make check-libqblock could build this library. Functionalities: 1 create a new image. 2 sync access of an

Re: [Qemu-devel] [RFC PATCH 0/4] savevm: save vmsate with fixed size

2013-03-05 Thread Pavel Hrdina
On 03/04/2013 04:04 PM, Wenchao Xia wrote: You probably get some improvements of the file size when the migration takes a while, depending on how much of the memory actually has to be saved. You might however end up with a lot more small writes instead of some big ones before, which might hurt

[Qemu-devel] [PATCH] Maintainership for virtio-ccw

2013-03-05 Thread Cornelia Huck
Hi, it might be time for me to take over maintainership for virtio-ccw and the s390-ccw-virtio machine, as I'm probably the person most familiar with how this code should work. I'll still be happy about reviews, of course :) Please consider applying. Cornelia Huck (1): virtio-ccw maintainer

[Qemu-devel] [PATCH] virtio-ccw maintainer

2013-03-05 Thread Cornelia Huck
Add myself as maintainer for virtio-ccw and the s390-ccw-virtio machine. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 21043e4..74e156f 100644 --- a/MAINTAINERS +++

Re: [Qemu-devel] [PATCH 4/4] target-arm: always set endian bits in big-endian mode

2013-03-05 Thread Peter Maydell
On 5 March 2013 18:56, Fabien Chouteau chout...@adacore.com wrote: On 03/04/2013 02:24 PM, Paul Brook wrote: On 03/01/2013 09:58 PM, Paul Brook wrote: +#ifdef TARGET_WORDS_BIGENDIAN +if (arm_feature(env, ARM_FEATURE_V6) +|| arm_feature(env, ARM_FEATURE_V7)) { +/* IE and

Re: [Qemu-devel] QEMU -netdev vhost=on + -device virtio-net-pci bug

2013-03-05 Thread Michael S. Tsirkin
On Tue, Mar 05, 2013 at 05:55:19PM +1100, Alexey Kardashevskiy wrote: Hi! The patch f56a12475ff1b8aa61210d08522c3c8aaf0e2648 vhost: backend masking support breaks virtio-net + vhost=on on PPC64 platform. The problem command line is: 1) -netdev

Re: [Qemu-devel] [PATCH] virtio-ccw maintainer

2013-03-05 Thread Alexander Graf
On 03/05/2013 01:22 PM, Cornelia Huck wrote: Add myself as maintainer for virtio-ccw and the s390-ccw-virtio machine. Signed-off-by: Cornelia Huckcornelia.h...@de.ibm.com Thanks, applied to s390-next. I also added an M entry for myself on the ccw machine too, so that I can properly steer

Re: [Qemu-devel] [PATCH v11 0/7] trace: Generic event state description

2013-03-05 Thread Lluís Vilanova
Stefan Hajnoczi writes: On Mon, Mar 04, 2013 at 10:01:43PM +0100, Lluís Vilanova wrote: Stefan Hajnoczi writes: On Fri, Mar 01, 2013 at 04:29:35PM +0100, Lluís Vilanova wrote: Provides a generic event state description structure (TraceEvent) and a more detailed event control and

Re: [Qemu-devel] [PATCH v5 6/6] KVM: s390: Wire up ioeventfd.

2013-03-05 Thread Michael S. Tsirkin
On Tue, Mar 05, 2013 at 09:13:08AM +0100, Cornelia Huck wrote: On Mon, 4 Mar 2013 21:07:41 -0300 Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Feb 28, 2013 at 12:33:21PM +0100, Cornelia Huck wrote: Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw notifications.

Re: [Qemu-devel] QEMU -netdev vhost=on + -device virtio-net-pci bug

2013-03-05 Thread Alexey Kardashevskiy
On 05/03/13 23:56, Michael S. Tsirkin wrote: The patch f56a12475ff1b8aa61210d08522c3c8aaf0e2648 vhost: backend masking support breaks virtio-net + vhost=on on PPC64 platform. The problem command line is: 1) -netdev tap,id=tapnet,ifname=tap0,script=qemu-ifup.sh,vhost=on \ -device

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-05 Thread Michael S. Tsirkin
On Mon, Mar 04, 2013 at 08:52:33PM +, Blue Swirl wrote: On Mon, Mar 4, 2013 at 9:44 AM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, Mar 03, 2013 at 09:01:11AM +, Blue Swirl wrote: On Sun, Mar 3, 2013 at 6:13 AM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: This

Re: [Qemu-devel] [PATCH 08/10] target-mips: Fix check_cp1_64bitmode

2013-03-05 Thread Aurelien Jarno
On Sun, Feb 10, 2013 at 10:30:48AM -0800, Richard Henderson wrote: COP1X refers to the availability of indexed memory operations, not whether the FPU has 64-bit registers. Signed-off-by: Richard Henderson r...@twiddle.net --- target-mips/translate.c | 3 ++- 1 file changed, 2

[Qemu-devel] [PATCH v12 0/7] trace: Generic event state description

2013-03-05 Thread Lluís Vilanova
Provides a generic event state description structure (TraceEvent) and a more detailed event control and query interface. This is achieved by creating a new non-public tracing backend (i.e., not selectable by the user at configure time) that will generate the appropriate event description

[Qemu-devel] [PATCH v12 1/7] trace: [tracetool] Explicitly identify public backends

2013-03-05 Thread Lluís Vilanova
Public backends are those printed by --list-backends and thus considered valid by the configure script. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py |4 ++-- scripts/tracetool/backend/__init__.py | 16 +++-

[Qemu-devel] [PATCH v12 2/7] trace: Provide a generic tracing event descriptor

2013-03-05 Thread Lluís Vilanova
Uses tracetool to generate a backend-independent tracing event description (struct TraceEvent). The values for such structure are generated with the non-public events backend (events-c frontend). The generation of the defines to check if an event is statically enabled is also moved to the events

[Qemu-devel] [PATCH v12 3/7] trace: Provide a detailed event control interface

2013-03-05 Thread Lluís Vilanova
This interface decouples event obtaining from interaction. Events can be obtained through three different methods: * identifier * name * simple wildcard pattern Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- docs/tracing.txt | 44 --- trace/control-internal.h | 67

[Qemu-devel] [PATCH v12 5/7] trace: [default] Port to generic event information and new control interface

2013-03-05 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- trace/default.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trace/default.c b/trace/default.c index c9b27a2..6e07a47 100644 --- a/trace/default.c +++ b/trace/default.c @@ -1,7 +1,7 @@ /* * Default

[Qemu-devel] [PATCH v12 4/7] trace: [monitor] Use new event control interface

2013-03-05 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- monitor.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index 32a6e74..e287c06 100644 --- a/monitor.c +++ b/monitor.c @@ -740,9 +740,18 @@ static void

[Qemu-devel] [PATCH v12 7/7] trace: [stderr] Port to generic event information and new control interface

2013-03-05 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool/backend/stderr.py | 27 --- trace/stderr.c | 34 ++ trace/stderr.h | 11 --- 3 files changed, 14 insertions(+),

[Qemu-devel] [PATCH v12 6/7] trace: [simple] Port to generic event information and new control interface

2013-03-05 Thread Lluís Vilanova
The backend is forced to dump event numbers using 64 bits, as TraceEventID is an enum. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool/backend/simple.py | 18 +- trace/simple.c | 35 +++

[Qemu-devel] [RFC PATCH 7/8] libqos: add fw_cfg-pc

2013-03-05 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile | 2 +- tests/fw_cfg-test.c | 29 + tests/libqos/fw_cfg-pc.c | 28 tests/libqos/fw_cfg-pc.h | 8 4 files changed, 38 insertions(+), 29

[Qemu-devel] [RFC PATCH 4/8] pci: foreach

2013-03-05 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/libqos/pci.c | 32 tests/libqos/pci.h | 3 +++ 2 files changed, 35 insertions(+) diff --git a/tests/libqos/pci.c b/tests/libqos/pci.c index 78d0bc0..57caf3a 100644 --- a/tests/libqos/pci.c +++

[Qemu-devel] [RFC PATCH 8/8] libqos: add malloc

2013-03-05 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile | 1 + tests/libqos/malloc-pc.c | 59 tests/libqos/malloc-pc.h | 8 +++ tests/libqos/malloc.h| 26 + 4 files changed, 94 insertions(+)

[Qemu-devel] [RFC PATCH 2/8] i440fx-test: add test to compare default register values against spec

2013-03-05 Thread Anthony Liguori
We currently don't do so well... Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile | 2 + tests/i440fx-test.c | 136 2 files changed, 138 insertions(+) create mode 100644 tests/i440fx-test.c diff --git

[Qemu-devel] [RFC PATCH 3/8] i440fx-test: add test for PAM functionality

2013-03-05 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/i440fx-test.c | 139 +++- 1 file changed, 138 insertions(+), 1 deletion(-) diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c index 577730d..d406375 100644 --- a/tests/i440fx-test.c

[Qemu-devel] [RFC PATCH 6/8] libqos: fw_cfg

2013-03-05 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile| 2 +- tests/fw_cfg-test.c | 48 +--- tests/libqos/fw_cfg.c | 39 +++ tests/libqos/fw_cfg.h | 22 ++ 4 files

[Qemu-devel] [RFC PATCH 5/8] fw_cfg: add qtest test harness

2013-03-05 Thread Anthony Liguori
While it's limited to PC support right now, the abstraction is there to support other platforms. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- tests/Makefile | 7 +- tests/fw_cfg-test.c | 202 2 files changed, 208

[Qemu-devel] [RFC PATCH 1/8] qtest: add libqos

2013-03-05 Thread Anthony Liguori
This includes basic PCI support. Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- configure | 2 +- tests/Makefile| 2 +- tests/libqos/pci-pc.c | 219 ++ tests/libqos/pci-pc.h | 8 ++ tests/libqos/pci.c| 108

Re: [Qemu-devel] KXVM call agenda for 2013-03-05

2013-03-05 Thread Juan Quintela
Juan Quintela quint...@redhat.com wrote: Hi Please send in any agenda topics you are interested in. Later, Juan. As there are no agenda, call gets cancelled. Later, Juan.

[Qemu-devel] [PULL 00/46] migration queue

2013-03-05 Thread Juan Quintela
Hi, Anthony please pull the migraiton queue, it includes: - paolo cleanup remove buffering series (already reviewed upstream) - v2 of XBZRLE fixes from Orit Thanks, Juan The following changes since commit 26135ead80fa1fd13e95c162dacfd06f2ba82981: target-mips: Fix accumulator selection for

Re: [Qemu-devel] [PATCH 00/10] Support mips64/mipsn32-linux-user

2013-03-05 Thread Aurelien Jarno
Hi, On Sun, Feb 10, 2013 at 10:30:40AM -0800, Richard Henderson wrote: Peter's recent userland syscall testing has encouraged me to clean up and re-submit some ages-old patches to enable userland testing of the other mips abis. Please review. r~ Richard Henderson (10):

Re: [Qemu-devel] [RFC PATCH 0/8] libqos support

2013-03-05 Thread Stefan Hajnoczi
On Tue, Mar 05, 2013 at 07:53:24AM -0600, Anthony Liguori wrote: This is a not completely polished version of libqos that includes PCI support. I haven't gone through the patches thoroughly yet so I've got it marked as RFC. It works and is functionally complete. I know the files are missing

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-05 Thread Gerd Hoffmann
Hi, We also need uint8_t, uint16_t and uint64_t versions for some devices. Perhaps it would be better to implement a uint64_t device which can be used with shorter widths or even stronger connection with memory API. Why not uint8_t for everyone? That would be simple, but then modeling

[Qemu-devel] Dataplane and vhost-blk

2013-03-05 Thread Benoît Canet
Hello, I am looking for a way to help improving qemu block performance. APIC-V is a work in progress and the two options with public code are vhost-* and virtio-blk-dataplane. The way of doing seems very similar (bypassing the qemu lock) and dedicating a thread to each emulated virtio block

Re: [Qemu-devel] TCG assertion with qemu-system-mipsel

2013-03-05 Thread Aurélien Jarno
On Mon, Mar 04, 2013 at 05:37:31PM +0100, Aurélien Jarno wrote: Hi, On Sat, Feb 23, 2013 at 11:10:18PM +0100, Stefan Weil wrote: This assertion occured with latest git master: qemu-system-mipsel: /src/qemu/tcg/tcg-op.h:2589: tcg_gen_goto_tb: Assertion `(tcg_ctx.goto_tb_issue_mask (1

Re: [Qemu-devel] [PULL 00/13] target-arm queue (feat.ARM KVM support)

2013-03-05 Thread Aurelien Jarno
On Tue, Mar 05, 2013 at 01:11:58AM +, Peter Maydell wrote: Hi; here's a target-arm pullre. Major business here is the KVM support patchset, though there are a couple of SRS bugfixes too. Please pull. thanks -- PMM The following changes since commit

Re: [Qemu-devel] [Spice-devel] Advice on some configuration parameters

2013-03-05 Thread Fabio Fantoni
Il 05/03/2013 11:19, Hans de Goede ha scritto: Hi, On 03/01/2013 11:02 AM, Fabio Fantoni wrote: Il 12/02/2013 14:05, Fabio Fantoni ha scritto: I'm making patches to enable some qemu upstream features in xen that are missing in libxl. I'm trying to do it just by giving arguments to qemu, and I

Re: [Qemu-devel] QEMU -netdev vhost=on + -device virtio-net-pci bug

2013-03-05 Thread Michael S. Tsirkin
On Wed, Mar 06, 2013 at 12:21:47AM +1100, Alexey Kardashevskiy wrote: On 05/03/13 23:56, Michael S. Tsirkin wrote: The patch f56a12475ff1b8aa61210d08522c3c8aaf0e2648 vhost: backend masking support breaks virtio-net + vhost=on on PPC64 platform. The problem command line is: 1) -netdev

[Qemu-devel] [RFC PATCH 0/8] libqos support

2013-03-05 Thread Anthony Liguori
This is a not completely polished version of libqos that includes PCI support. I haven't gone through the patches thoroughly yet so I've got it marked as RFC. It works and is functionally complete. I know the files are missing copyrights though and the commit messages need some work. I also

Re: [Qemu-devel] [PATCH v5 6/6] KVM: s390: Wire up ioeventfd.

2013-03-05 Thread Cornelia Huck
On Tue, 5 Mar 2013 15:19:43 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Tue, Mar 05, 2013 at 09:13:08AM +0100, Cornelia Huck wrote: On Mon, 4 Mar 2013 21:07:41 -0300 Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Feb 28, 2013 at 12:33:21PM +0100, Cornelia Huck wrote:

Re: [Qemu-devel] [PATCH 09/10] mipsn32-linux-user: Restrict address space to 31-bits.

2013-03-05 Thread Aurelien Jarno
On Sun, Feb 10, 2013 at 10:30:49AM -0800, Richard Henderson wrote: Signed-off-by: Richard Henderson r...@twiddle.net --- linux-user/main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 8c4dffd..25491ca 100644

[Qemu-devel] Unable to start vhost with qemu

2013-03-05 Thread Lal Nitesh-B44382
Hi all, I was trying to understand the vhost_net flow under qemu (qemu-ppc). So, I had added few print statements to the code after which I noticed that although vhost_virtqueue_init() is been called, vhost_virtqueue_start() is not getting called . The following is the code flow for calling

[Qemu-devel] Why is the dummy device hw/testdev excluded in higher version of qemu?

2013-03-05 Thread Qiu, Shuang
Hello everyone, I'm now doing regression tests on qemu 1.4.5. My test cases is written regarding 1.2.5, so I use testdev as a dummy device with a chardev specified to output system log. The old command is like this: qemu-system-x86_64 -device testdev,chardev=testlog -chardev

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-05 Thread Michael S. Tsirkin
On Tue, Mar 05, 2013 at 03:17:13PM +0100, Gerd Hoffmann wrote: Hi, We also need uint8_t, uint16_t and uint64_t versions for some devices. Perhaps it would be better to implement a uint64_t device which can be used with shorter widths or even stronger connection with memory API. Why

Re: [Qemu-devel] [RFC PATCH 0/8] libqos support

2013-03-05 Thread Anthony Liguori
Stefan Hajnoczi stefa...@redhat.com writes: On Tue, Mar 05, 2013 at 07:53:24AM -0600, Anthony Liguori wrote: This is a not completely polished version of libqos that includes PCI support. I haven't gone through the patches thoroughly yet so I've got it marked as RFC. It works and is

[Qemu-devel] [PATCH 1/3] cpu: make CPU_INTERRUPT_RESET available on all targets

2013-03-05 Thread Paolo Bonzini
On the x86, some devices need access to the CPU reset pin (INIT#). Provide a generic service to do this, using one of the internal cpu_interrupt targets. Generalize the PPC-specific code for CPU_INTERRUPT_RESET to other targets, and provide a function that will raise the interrupt on all CPUs.

[Qemu-devel] [PATCH 2/3] pc: port 92 reset requires a low-high transition

2013-03-05 Thread Paolo Bonzini
The PIIX datasheet says that before another INIT pulse can be generated via [port 92h], [bit 0] must be written back to a zero. This bug is masked right now because a full reset will clear the value of port 92h. But once we implement soft reset correctly, the next attempt to enable the A20 line

[Qemu-devel] [PATCH 3/3] hw: correctly implement soft reset

2013-03-05 Thread Paolo Bonzini
Do not do a hard reset for port 92h, keyboard controller, or cf9h soft reset. These only reset the CPU. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/lpc_ich9.c | 7 ++- hw/pc.c | 3 ++- hw/pckbd.c| 5 +++-- hw/piix_pci.c | 8 ++-- 4 files changed, 17 insertions(+), 6

Re: [Qemu-devel] [PATCH v8 1/4] Add moxie target code

2013-03-05 Thread Richard Henderson
On 03/04/2013 04:29 AM, Anthony Green wrote: +void tlb_fill(CPUMoxieState *env, target_ulong addr, int is_write, int mmu_idx, + uintptr_t retaddr) +{ +int ret; + +ret = cpu_moxie_handle_mmu_fault(env, addr, is_write, mmu_idx); +if (unlikely(ret)) { +if

Re: [Qemu-devel] [PATCH 1/3] cpu: make CPU_INTERRUPT_RESET available on all targets

2013-03-05 Thread Anthony Liguori
Paolo Bonzini pbonz...@redhat.com writes: On the x86, some devices need access to the CPU reset pin (INIT#). Provide a generic service to do this, using one of the internal cpu_interrupt targets. Generalize the PPC-specific code for CPU_INTERRUPT_RESET to other targets, and provide a

Re: [Qemu-devel] Why is the dummy device hw/testdev excluded in higher version of qemu?

2013-03-05 Thread Gleb Natapov
On Tue, Mar 05, 2013 at 09:27:23AM +, Qiu, Shuang wrote: Hello everyone, I'm now doing regression tests on qemu 1.4.5. My test cases is written regarding 1.2.5, so I use testdev as a dummy device with a chardev specified to output system log. The old command is like this:

Re: [Qemu-devel] [PATCH 0/2 v5] Time resync support by qemu-ga

2013-03-05 Thread Eric Blake
On 03/05/2013 02:39 AM, Lei Li wrote: This patch series attempts to add time resync support to qemu-ga by introducing qemu-ga commands guest-get-time and guest-set-time. Right now, when a guest is paused or migrated to a file then loaded from that file, the guest OS has no idea that there

[Qemu-devel] [PATCH 0/3] Implement x86 soft reset

2013-03-05 Thread Paolo Bonzini
This series makes various devices (port 92h, pckbd and the PIIX4/ICH9 southbridges) implement x86 soft reset correctly. Paolo Bonzini (3): cpu: make CPU_INTERRUPT_RESET available on all targets pc: port 92 reset requires a low-high transition x86: correctly implement soft reset cpu-exec.c

Re: [Qemu-devel] [PATCH 0/3] Implement x86 soft reset

2013-03-05 Thread David Woodhouse
On Tue, 2013-03-05 at 16:04 +0100, Paolo Bonzini wrote: This series makes various devices (port 92h, pckbd and the PIIX4/ICH9 southbridges) implement x86 soft reset correctly. How about suspend/resume? If you apply my patch which fixes the hard reset for i440FX to actually reset the PAM

Re: [Qemu-devel] The state of testing

2013-03-05 Thread Lucas Meneghel Rodrigues
On 03/05/2013 07:11 AM, Amit Shah wrote: On (Mon) 04 Mar 2013 [16:53:55], Stefan Hajnoczi wrote: People are working on testing for various parts of QEMU. I started this thread to gather an update on the state of testing and see where we still need help. I'm not sure yet if we should propose

[Qemu-devel] [PATCH 0/4] tcg-arm improvements

2013-03-05 Thread Richard Henderson
Here's a few things I've noticed while looking at debugging dumps. Tested on an A15, compiled for armv7 and armv6. r~ Richard Henderson (4): tcg-arm: Implement deposit for armv7 tcg-arm: Use bic to implement and with constant tcg-arm: Handle negated constant arguments to and/sub

[Qemu-devel] [PATCH 4/4] tcg-arm: Improve constant generation

2013-03-05 Thread Richard Henderson
Try fully rotated arguments to mov and mvn before trying movt or full decomposition. Begin decomposition with mvn when it looks like it'll help. Examples include -:mov r9, #0x0fa0 -:orr r9, r9, #0x000ee000 -:orr r9, r9, #0x0ff0 -:orr r9, r9,

[Qemu-devel] [PATCH 2/4] tcg-arm: Use bic to implement and with constant

2013-03-05 Thread Richard Henderson
This greatly improves the code we can produce for deposit without armv7 support. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 38 +- tcg/arm/tcg-target.h | 2 -- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 0/3] piix_pci cleanups

2013-03-05 Thread Paolo Bonzini
Il 23/02/2013 01:40, David Woodhouse ha scritto: Some cleanups for piix_pci, *not* including the final patch which actually adds hard-reset support for the i440FX PAM configuration. We'll want Kevin's work to fix reset handling before we merge that final one; suspend/resume shouldn't trigger a

[Qemu-devel] [PATCH 1/4] tcg-arm: Implement deposit for armv7

2013-03-05 Thread Richard Henderson
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 insertions(+), 1 deletion(-) diff --git a/tcg/arm/tcg-target.c

Re: [Qemu-devel] Dataplane and vhost-blk

2013-03-05 Thread Stefan Hajnoczi
On Tue, Mar 5, 2013 at 3:18 PM, Benoît Canet benoit.ca...@irqsave.net wrote: I am looking for a way to help improving qemu block performance. APIC-V is a work in progress and the two options with public code are vhost-* and virtio-blk-dataplane. The way of doing seems very similar (bypassing

[Qemu-devel] [PATCH 3/4] tcg-arm: Handle negated constant arguments to and/sub

2013-03-05 Thread Richard Henderson
This greatly improves code generation for addition of small negative constants. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/tcg/arm/tcg-target.c

Re: [Qemu-devel] [PATCH 0/3] Implement x86 soft reset

2013-03-05 Thread Paolo Bonzini
Il 05/03/2013 16:51, David Woodhouse ha scritto: On Tue, 2013-03-05 at 16:04 +0100, Paolo Bonzini wrote: This series makes various devices (port 92h, pckbd and the PIIX4/ICH9 southbridges) implement x86 soft reset correctly. How about suspend/resume? If you apply my patch which fixes the

Re: [Qemu-devel] The state of testing

2013-03-05 Thread Lucas Meneghel Rodrigues
On 03/05/2013 08:17 AM, Gerd Hoffmann wrote: On 03/05/13 11:46, Stefan Hajnoczi wrote: On Mon, Mar 04, 2013 at 05:22:34PM +0100, Gerd Hoffmann wrote: Hi, How are things looking with device emulation, migration, monitor, char, etc? At the moment autotest/virt-test is pretty much the only

Re: [Qemu-devel] [PATCH 4/4] target-arm: always set endian bits in big-endian mode

2013-03-05 Thread Fabien Chouteau
On 03/05/2013 01:33 PM, Peter Maydell wrote: On 5 March 2013 18:56, Fabien Chouteau chout...@adacore.com wrote: On 03/04/2013 02:24 PM, Paul Brook wrote: On 03/01/2013 09:58 PM, Paul Brook wrote: This is wrong for all the CPUs QEMU crrently supports. SCTLR.IE is defined to be zero. Again

[Qemu-devel] [PATCH 2/2] Revert gdbstub: Do not kill target in system emulation mode

2013-03-05 Thread Fabien Chouteau
This reverts commit 00e94dbc7fd0110b0555d59592b004333adfb4b8. Signed-off-by: Fabien Chouteau chout...@adacore.com --- gdbstub.c |2 -- 1 file changed, 2 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index c0686a9..22078df 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -2181,11 +2181,9 @@

[Qemu-devel] [PATCH 1/2] Add GDB qAttached support

2013-03-05 Thread Fabien Chouteau
With this patch GDB will issue a detach command at the end of a debugging session instead of a kill. This behavior can be inverted with the new option -gdb-not-attached. This patch implements the requirement described in Jan Kiszka's patch: gdbstub: Do not kill target in system emulation mode.

[Qemu-devel] [PATCH 4/3] wakeup: only reset the CPU

2013-03-05 Thread Paolo Bonzini
Resuming from suspend-to-RAM should not reset all devices. Only the CPU should get a reset signal. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index c03edf1..2c93478 100644 --- a/vl.c +++ b/vl.c @@

[Qemu-devel] [PATCH v2] pciinit: Enable default VGA device

2013-03-05 Thread Alex Williamson
As QEMU gains PCI bridge and PCIe root port support, we won't always find the VGA device on the root bus. We therefore need to add support to find and enable a VGA device and the path to it through the VGA Enable support in the PCI bridge control register. Signed-off-by: Alex Williamson

  1   2   3   4   >