Re: [Qemu-devel] [PATCH 1/2] qga: add windows implementation for guest-get-time

2013-03-14 Thread Lei Li
On 03/14/2013 04:07 AM, mdroth wrote: On Wed, Mar 13, 2013 at 06:10:30PM +0800, li...@linux.vnet.ibm.com wrote: From: Lei Li li...@linux.vnet.ibm.com Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 32 1 files changed, 32

Re: [Qemu-devel] [PATCH] Use proper term in TCG README

2013-03-14 Thread Wei-Ren Chen
On Fri, Mar 08, 2013 at 11:13:24AM +0100, Stefan Hajnoczi wrote: On Fri, Mar 08, 2013 at 05:29:29PM +0800, Peter Maydell wrote: On 8 March 2013 17:21, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Mar 07, 2013 at 11:33:01AM +0800, 陳韋任 (Wei-Ren Chen) wrote: In TCG, target means the

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-14 Thread Lei Li
On 03/14/2013 04:25 AM, mdroth wrote: On Wed, Mar 13, 2013 at 06:10:31PM +0800, li...@linux.vnet.ibm.com wrote: From: Lei Li li...@linux.vnet.ibm.com Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 34 ++ 1 files changed, 34

[Qemu-devel] [PATCH 0/2 v5] Add Windows support for time resync by qemu-ga

2013-03-14 Thread Lei Li
This patch series attempts to add Windows implementation for qemu-ga commands guest-get-time and guest-set-time. The previous thread about the interfaces introduced and the POSIX-specific command implementation has already been accepted, the reference link:

[Qemu-devel] [PATCH 1/2] qga: add windows implementation for guest-get-time

2013-03-14 Thread Lei Li
Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 33 + 1 file changed, 33 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 7e8ecb3..e24fb4a 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -22,6

[Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-14 Thread Lei Li
Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 33 + 1 file changed, 33 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index e24fb4a..8064c3a 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -141,6

Re: [Qemu-devel] [PATCH v6 2/8] virtio-blk: add the virtio-blk device.

2013-03-14 Thread Cornelia Huck
On Wed, 13 Mar 2013 16:32:31 +0100 KONRAD Frédéric fred.kon...@greensocs.com wrote: On 13/03/2013 09:24, KONRAD Frédéric wrote: On 12/03/2013 17:31, Cornelia Huck wrote: On Tue, 12 Mar 2013 16:22:22 +0100 KONRAD Frédéric fred.kon...@greensocs.com wrote: On 12/03/2013 16:12, Peter

Re: [Qemu-devel] [PATCH 2/7] virtio-console: Remove any pending watches on close

2013-03-14 Thread Amit Shah
On (Wed) 13 Mar 2013 [14:59:42], Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com --- hw/virtio-console.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/hw/virtio-console.c b/hw/virtio-console.c index 1d87c5b..ec0f91b 100644 ---

Re: [Qemu-devel] [PATCH] chardev: add vte chardev

2013-03-14 Thread Gerd Hoffmann
Hi, Well, it already is. Not that I want extend it or would recommend using it if there are better options. But there is no reason to break it, and it is useful to me now and then. qemu -display sdl -vnc :1 -serial vc Continues to do what it did before. Yes. qemu -display gtk -vnc

[Qemu-devel] [PATCH v2] Use proper term in TCG README

2013-03-14 Thread Wei-Ren Chen
In TCG, target means the host architecture for which TCG generates the code. Using guest rather than target to make the document more consistent. Signed-off-by: Chen Wei-Ren che...@iis.sinica.edu.tw --- tcg/README | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH v14 1/4] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-03-14 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- include/sysemu/sysemu.h | 1 + qapi-schema.json| 5 - qmp.c | 3 +-- vl.c| 13 +++-- 4

[Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Hu Tao
pvevent device is used to send guest panic event from guest to qemu. When guest panic happens, pvevent device driver will write a event number to IO port 0x505(which is the IO port occupied by pvevent device, by default). On receiving the event, pvevent device will pause guest cpu(s), and send a

[Qemu-devel] [PATCH v14 0/4] pvevent device to deal with guest panic event

2013-03-14 Thread Hu Tao
This series introduces a new simulated device, pvevent, to notify qemu when guest panic event happens. Along with this series, there are two patches to add seabios ACPI driver and kernel ACPI driver for the device, respectively. TODO: make the io port used by pvevent device configurable. Tested

[Qemu-devel] [PATCH v14 2/4] add a new qevent: QEVENT_GUEST_PANICKED

2013-03-14 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c | 1 + 3 files changed, 16

[Qemu-devel] [PATCH v14 4/4] pvevent: add document to describe the usage

2013-03-14 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- docs/pvevent.txt | 16 1 file changed, 16 insertions(+) create mode 100644 docs/pvevent.txt diff --git a/docs/pvevent.txt b/docs/pvevent.txt new file mode 100644 index 000..749b87c --- /dev/null +++ b/docs/pvevent.txt @@ -0,0

Re: [Qemu-devel] [PATCH V2 07/10] snapshot: qmp use new internal API for external snapshot transaction

2013-03-14 Thread Kevin Wolf
Am 14.03.2013 um 06:08 hat Wenchao Xia geschrieben: 于 2013-3-13 18:18, Kevin Wolf 写道: Am 12.03.2013 um 09:30 hat Wenchao Xia geschrieben: I redesigned the structure, Following is the fake code: typedef struct BdrvActionOps { /* check the request's validation, allocate p_opaque if

Re: [Qemu-devel] [PATCH v6 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Markus Armbruster
Michael S. Tsirkin m...@redhat.com writes: libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

Re: [Qemu-devel] kvm-unit-test poweroff qemu-kvm via acpi

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 05:26:29AM +, Qiu, Shuang wrote: Hello there, I tried to run kvm-unit-test on uq/master branch commit 3e41a753551a906dd9ed66fb0fc34167a6af3ba0 but failed. The symptom is that qume cannot exit/poweroff gracefully and keeps rebooting. After investigating the

Re: [Qemu-devel] [PATCH v6 2/8] virtio-blk: add the virtio-blk device.

2013-03-14 Thread KONRAD Frédéric
On 14/03/2013 08:25, Cornelia Huck wrote: On Wed, 13 Mar 2013 16:32:31 +0100 KONRAD Frédéric fred.kon...@greensocs.com wrote: On 13/03/2013 09:24, KONRAD Frédéric wrote: On 12/03/2013 17:31, Cornelia Huck wrote: On Tue, 12 Mar 2013 16:22:22 +0100 KONRAD Frédéric fred.kon...@greensocs.com

Re: [Qemu-devel] [PATCH v6 2/8] virtio-blk: add the virtio-blk device.

2013-03-14 Thread Cornelia Huck
On Thu, 14 Mar 2013 09:37:54 +0100 KONRAD Frédéric fred.kon...@greensocs.com wrote: On 14/03/2013 08:25, Cornelia Huck wrote: On Wed, 13 Mar 2013 16:32:31 +0100 KONRAD Frédéric fred.kon...@greensocs.com wrote: On 13/03/2013 09:24, KONRAD Frédéric wrote: On 12/03/2013 17:31, Cornelia

Re: [Qemu-devel] [PATCH V3 3/3] New option -gdb-opts

2013-03-14 Thread Markus Armbruster
Fabien Chouteau chout...@adacore.com writes: We introduce a new command line option. It's a generic option to customize the gdb server: -gdb-opts [attached=on|off] The only parameter for now is attached. Signed-off-by: Fabien Chouteau chout...@adacore.com --gdb-opts complements existing

Re: [Qemu-devel] [PATCH v14 4/4] pvevent: add document to describe the usage

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 09:15, Hu Tao ha scritto: Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- docs/pvevent.txt | 16 1 file changed, 16 insertions(+) create mode 100644 docs/pvevent.txt diff --git a/docs/pvevent.txt b/docs/pvevent.txt new file mode 100644 index

Re: [Qemu-devel] [PATCH v6 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Michael S. Tsirkin
On Thu, Mar 14, 2013 at 09:06:15AM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way.

[Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Hu Tao
pvevent device is used to notify host(qemu) when guest panic happens. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- src/acpi-dsdt-isa.dsl | 30 ++ 1 file changed, 30 insertions(+) diff --git

[Qemu-devel] [PATCH] pvevent: pvevent device driver

2013-03-14 Thread Hu Tao
pvevent device is a qemu simulated device through which guest panic event is sent to host. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- drivers/platform/x86/Kconfig | 7 +++ drivers/platform/x86/Makefile | 2 +

Re: [Qemu-devel] [PATCH v6 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Michael S. Tsirkin
On Thu, Mar 14, 2013 at 09:06:15AM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way.

Re: [Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 04:48:47PM +0800, Hu Tao wrote: pvevent device is used to notify host(qemu) when guest panic happens. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- src/acpi-dsdt-isa.dsl | 30

[Qemu-devel] [PATCH 02/20] chardev: add mux chardev support to qapi

2013-03-14 Thread Gerd Hoffmann
This adds mux chardev support to the qapi and also makes the qapi-based chardev creation path handle the mux=on option correctly. --- qapi-schema.json | 14 +- qemu-char.c | 35 --- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH 03/20] chardev: switch null init to qapi

2013-03-14 Thread Gerd Hoffmann
This patch switches over the 'null' chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 0dc3802..e6f67d8 100644 ---

[Qemu-devel] [PATCH 06/20] chardev: switch file init to qapi

2013-03-14 Thread Gerd Hoffmann
This patch switches over the 'file' chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 43 +++ 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 01/20] chardev: add support for qapi-based chardev initialization

2013-03-14 Thread Gerd Hoffmann
This patch add support for a new way to initialize chardev devices. Instead of calling a initialization function with a QemuOpts we will now create a (qapi) ChardevBackend, optionally call a function to fill ChardevBackend from QemuOpts, then go create the chardev using the new qapi code path

[Qemu-devel] [PULL v4 00/20] chardev: qapi conversion continued

2013-03-14 Thread Gerd Hoffmann
Hi, v5 if the series, completing the chardev convwersion to qapi. v5 changes: * squashed in the fixup patch. * added two spice-char fixes from Hans. * rebased to latest master Oh, and patch #14 fixes the broken gtk vte's along the way. please pull, Gerd The following changes since

[Qemu-devel] [PATCH 14/20] chardev: add vc support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'vc' support to qapi and also switches over the vc chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/console.h |4 ++-- qapi-schema.json | 20 - qemu-char.c |3 +++ ui/console.c

[Qemu-devel] [PATCH 05/20] chardev: add braille support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'braille' support to qapi and also switches over the braille chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- backends/baum.c |4 ++-- include/char/char.h |3 +++ qapi-schema.json|3 ++- qemu-char.c |

[Qemu-devel] [PATCH 11/20] chardev: add console support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'console' support to qapi and also switches over the console chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json |3 ++- qemu-char.c |9 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH 04/20] chardev: add msmouse support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'msmouse' support to qapi and also switches over the msmouse chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- backends/msmouse.c |4 ++-- include/char/char.h |3 +++ qapi-schema.json|3 ++- qemu-char.c |

[Qemu-devel] [PATCH 18/20] qemu-char.c: fix waiting for telnet connection message

2013-03-14 Thread Gerd Hoffmann
From: Igor Mitsyanko i.mitsya...@gmail.com Current colon position in waiting for telnet connection message template produces messages like: QEMU waiting for connection on: telnet::127.0.0.1,server After moving a colon to the right, we will get a correct messages like: QEMU waiting for

[Qemu-devel] [PATCH 16/20] chardev: add udp support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'udp' support to qapi. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/qemu/sockets.h |1 + qapi-schema.json | 16 +++- qemu-char.c| 44 ++-- util/qemu-sockets.c| 25

[Qemu-devel] [PATCH 19/20] spice-qemu-char: Fix name parameter issues after qapi-ifying

2013-03-14 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com The strings passed in through the qapi calls are dynamic memory, since we want to have them stick around longer then just the call to qemu_chr_open_spice_* we need to strdup them. Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Gerd

[Qemu-devel] [PATCH 08/20] chardev: switch serial/tty init to qapi

2013-03-14 Thread Gerd Hoffmann
This patch switches over the serial chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 13/20] chardev: add spice support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'spicevmc' and 'spiceport' support to qapi and also switches over the spice chardev initialization to the new qapi code path. --- include/ui/qemu-spice.h |7 -- qapi-schema.json| 26 +++- qemu-char.c |8 ++ spice-qemu-char.c

Re: [Qemu-devel] [PATCH V9 01/14] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-14 Thread Kevin Wolf
Am 13.03.2013 um 19:19 hat Markus Armbruster geschrieben: Kevin Wolf kw...@redhat.com writes: Am 12.03.2013 um 06:01 hat Wenchao Xia geschrieben: Oops, Since it belongs to block layer I hope it can be LGPL2. Do you know how to contact Fabrice Bellard to ask for a change? Fabrice is

[Qemu-devel] [PATCH 12/20] chardev: add pipe support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'pipe' support to qapi and also switches over the pipe chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json |3 ++- qemu-char.c | 31 ++- 2 files changed, 24 insertions(+), 10

[Qemu-devel] [PATCH 10/20] chardev: switch pty init to qapi

2013-03-14 Thread Gerd Hoffmann
This patch switches over the pty chardev initialization to the new qapi code path. Bonus: Taking QemuOpts out of the loop allows some nice cleanups along the way. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 35 ++- 1 file changed, 10

[Qemu-devel] [PATCH 07/20] chardev: add stdio support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'stdio' support to qapi and also switches over the stdio chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json | 16 +++- qemu-char.c | 26 -- 2 files changed, 35

[Qemu-devel] [PATCH 17/20] Revert hmp: Disable chardev-add and chardev-remove

2013-03-14 Thread Gerd Hoffmann
This reverts commit 8a14952c9d2f5fa2b3caa6dc286b62ed5d26bca7. --- hmp-commands.hx | 63 +++ 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 4bda3fe..df44906 100644 --- a/hmp-commands.hx

[Qemu-devel] [PATCH 20/20] spice-qemu-char: Remove dead debugging code

2013-03-14 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com Since commit d62e5f7036a018b2ad09f17ebd481bd28953d783 chardev: add spice support to qapi It is impossible to set the debug parameter, so all the dprintf calls are essentially nops. Since we've not needed the debug parameter in ages this is not a problem,

Re: [Qemu-devel] [PATCH v14 0/4] pvevent device to deal with guest panic event

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 04:15:49PM +0800, Hu Tao wrote: This series introduces a new simulated device, pvevent, to notify qemu when guest panic event happens. Call it something less generic. pvpanic for instance. Along with this series, there are two patches to add seabios ACPI driver and

Re: [Qemu-devel] [PATCH] pvevent: pvevent device driver

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 04:51:13PM +0800, Hu Tao wrote: pvevent device is a qemu simulated device through which guest panic event is sent to host. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao hu...@cn.fujitsu.com ---

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 09:15, Hu Tao ha scritto: pvevent device is used to send guest panic event from guest to qemu. When guest panic happens, pvevent device driver will write a event number to IO port 0x505(which is the IO port occupied by pvevent device, by default). On receiving the event,

Re: [Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 09:48, Hu Tao ha scritto: pvevent device is used to notify host(qemu) when guest panic happens. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- src/acpi-dsdt-isa.dsl | 30

Re: [Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 10:15:02AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:48, Hu Tao ha scritto: pvevent device is used to notify host(qemu) when guest panic happens. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu Tao

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha scritto: pvevent device is used to send guest panic event from guest to qemu. When guest panic happens, pvevent device driver will write a event number to IO port 0x505(which is the IO port

Re: [Qemu-devel] [PATCH v2] Use proper term in TCG README

2013-03-14 Thread Peter Maydell
On 14 March 2013 08:06, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: In TCG, target means the host architecture for which TCG generates the code. Using guest rather than target to make the document more consistent. Thanks. I've tweaked the wording a little in one sentence below;

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-14 Thread Asias He
On Thu, Mar 14, 2013 at 12:25:14PM +0800, Asias He wrote: On Tue, Mar 12, 2013 at 02:29:40PM +0800, Asias He wrote: This is on top of Paolo and Nick's work. Current status: Works now (guest boots fine, no hang any more) with seabios's virtio-scsi disabled. Rebased to latest

Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib

2013-03-14 Thread Stefan Hajnoczi
On Wed, Mar 13, 2013 at 12:52:11PM -0500, Anthony Liguori wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 13/03/2013 18:23, Anthony Liguori ha scritto: I think the nesting is also a bit strange. Nesting's gone since we added coroutines. :) Okay, I owe AioContext a deeper look

Re: [Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 10:57:18AM +0200, Gleb Natapov wrote: On Thu, Mar 14, 2013 at 04:48:47PM +0800, Hu Tao wrote: pvevent device is used to notify host(qemu) when guest panic happens. ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Signed-off-by: Hu

Re: [Qemu-devel] [PATCH v14 4/4] pvevent: add document to describe the usage

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 09:45:30AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha scritto: Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- docs/pvevent.txt | 16 1 file changed, 16 insertions(+) create mode 100644 docs/pvevent.txt diff --git

Re: [Qemu-devel] [PATCH v14 0/4] pvevent device to deal with guest panic event

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 10:58:45AM +0200, Gleb Natapov wrote: On Thu, Mar 14, 2013 at 04:15:49PM +0800, Hu Tao wrote: This series introduces a new simulated device, pvevent, to notify qemu when guest panic event happens. Call it something less generic. pvpanic for instance. OK.

Re: [Qemu-devel] [PATCH] Add pvevent device driver

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 05:33:19PM +0800, Hu Tao wrote: On Thu, Mar 14, 2013 at 10:57:18AM +0200, Gleb Natapov wrote: On Thu, Mar 14, 2013 at 04:48:47PM +0800, Hu Tao wrote: pvevent device is used to notify host(qemu) when guest panic happens. ref:

Re: [Qemu-devel] Problems with live migration

2013-03-14 Thread Toni F. [ackstorm]
Hi Eric, Thanks for your response, i will ask in the libvirt list. Unfortunatly, restarting libvirt don't solves the problem. Regards. On 13/03/13 21:55, Eric Blake wrote: On 03/13/2013 12:01 PM, Toni F. [ackstorm] wrote: Hi all, I have working with Openstack Folsom and with Glusterfs

[Qemu-devel] [PATCH 15/20] chardev: add memory (ringbuf) support to qapi

2013-03-14 Thread Gerd Hoffmann
This patch adds 'memory' support to qapi and also switches over the memory chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json | 14 +- qemu-char.c | 30 +++--- 2 files changed, 36

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 10:19, Gleb Natapov ha scritto: On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha scritto: pvevent device is used to send guest panic event from guest to qemu. When guest panic happens, pvevent device driver will write a event number

[Qemu-devel] [PATCH 09/20] chardev: switch parallel init to qapi

2013-03-14 Thread Gerd Hoffmann
This patch switches over the parallel chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Hu Tao
On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha scritto: pvevent device is used to send guest panic event from guest to qemu. When guest panic happens, pvevent device driver will write a event number to IO port 0x505(which is the IO port

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-14 Thread Michael S. Tsirkin
On Thu, Mar 14, 2013 at 05:25:42PM +0800, Asias He wrote: On Thu, Mar 14, 2013 at 12:25:14PM +0800, Asias He wrote: On Tue, Mar 12, 2013 at 02:29:40PM +0800, Asias He wrote: This is on top of Paolo and Nick's work. Current status: Works now (guest boots fine, no hang any more) with

Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 10:29, Stefan Hajnoczi ha scritto: Okay, I owe AioContext a deeper look then. We still have one level of nesting - the mainloop vs the AioContext aio_pool(). That's a different thing, and it can be solved quite easily. As soon as each BDS will have its own AioContext, the

Re: [Qemu-devel] [PATCH] dataplane: fix hang introduced by AioContext transition

2013-03-14 Thread Stefan Hajnoczi
On Wed, Mar 13, 2013 at 03:14:15PM +0100, Paolo Bonzini wrote: The bug is that the EventNotifiers do have a NULL io_flush callback. Because _none_ of the callbacks on the dataplane AioContext have such a callback, aio_poll will simply do nothing. Fixed by adding the callbacks: the ioeventfd

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-14 Thread Paolo Bonzini
--- 8 --- seabios patch: diff --git a/src/virtio-scsi.c b/src/virtio-scsi.c index 879ddfb..4de1255 100644 --- a/src/virtio-scsi.c +++ b/src/virtio-scsi.c @@ -147,6 +147,9 @@ init_virtio_scsi(struct pci_device *pci) goto fail; } +

Re: [Qemu-devel] [PATCH] qemu-iotests: add tests for rebasing zero clusters

2013-03-14 Thread Stefan Hajnoczi
On Wed, Mar 13, 2013 at 03:58:13PM +0100, Paolo Bonzini wrote: If zero clusters are erroneously treated as unallocated, qemu-img rebase will copy the backing file's contents onto the cluster. The bug existed also in image streaming, but since the root cause was in qcow2's is_allocated

Re: [Qemu-devel] [SeaBIOS] [PATCH] Add pvevent device driver

2013-03-14 Thread David Woodhouse
On Thu, 2013-03-14 at 10:57 +0200, Gleb Natapov wrote: +OperationRegion(PEOR, SystemIO, 0x0505, 0x01) IO port should be received form QEMU by fw_cfg and patched here at run time. Pfft. ACPI table should be received from QEMU. :) -- dwmw2 smime.p7s Description: S/MIME

Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib

2013-03-14 Thread Peter Maydell
On 13 March 2013 12:34, Anthony Liguori anth...@codemonkey.ws wrote: AioContext is necessary for the block layer because the block layer still has synchronous I/O. I think we should aim to replace all sync I/O in the long term with coroutine based I/O. I think coroutines are dreadful and we

Re: [Qemu-devel] [SeaBIOS] [PATCH] Add pvevent device driver

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 10:08:09AM +, David Woodhouse wrote: On Thu, 2013-03-14 at 10:57 +0200, Gleb Natapov wrote: +OperationRegion(PEOR, SystemIO, 0x0505, 0x01) IO port should be received form QEMU by fw_cfg and patched here at run time. Pfft. ACPI table should be

Re: [Qemu-devel] [PATCH V2 WIP 0/2] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-03-14 Thread Michael S. Tsirkin
On Thu, Mar 14, 2013 at 11:00:24AM +0100, Paolo Bonzini wrote: --- 8 --- seabios patch: diff --git a/src/virtio-scsi.c b/src/virtio-scsi.c index 879ddfb..4de1255 100644 --- a/src/virtio-scsi.c +++ b/src/virtio-scsi.c @@ -147,6 +147,9 @@ init_virtio_scsi(struct

Re: [Qemu-devel] slow virtio network with vhost=on and multiple cores

2013-03-14 Thread Alexandre DERUMIER
I don't think it's fixed in 1.3 or 1.4, some proxmox users have reported again this bug with guest kernel 2.6.32. (proxmox host is rhel 6.3 kernel + qemu 1.4) - Mail original - De: Davide Guerri d.gue...@unidata.it À: Alexandre DERUMIER aderum...@odiso.com Cc: Peter Lieven

Re: [Qemu-devel] [PATCH 3/9] two new file wrappers

2013-03-14 Thread Stefan Berger
On 03/13/2013 05:04 PM, Eric Blake wrote: On 03/13/2013 12:56 PM, Joel Schopp wrote: Add a 3 very short file wrapper functions to make code that follows more s/a 3/3/ readable. Also export an existing function that is currently static. Cc: Michael Tsirkin m...@redhat.com Signed-off-by:

Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 11:04, Peter Maydell ha scritto: On 13 March 2013 12:34, Anthony Liguori anth...@codemonkey.ws wrote: AioContext is necessary for the block layer because the block layer still has synchronous I/O. I think we should aim to replace all sync I/O in the long term with coroutine

Re: [Qemu-devel] [PATCH V3 3/3] New option -gdb-opts

2013-03-14 Thread Fabien Chouteau
On 03/14/2013 09:44 AM, Markus Armbruster wrote: Fabien Chouteau chout...@adacore.com writes: We introduce a new command line option. It's a generic option to customize the gdb server: -gdb-opts [attached=on|off] The only parameter for now is attached. Signed-off-by: Fabien Chouteau

Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib

2013-03-14 Thread Peter Maydell
On 14 March 2013 10:53, Paolo Bonzini pbonz...@redhat.com wrote: Il 14/03/2013 11:04, Peter Maydell ha scritto: I think coroutines are dreadful and we should really not be moving towards greater use of them. They're just really really not portable and they don't fit with the C language, and

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Alexander Graf
On 14.03.2013, at 10:43, Paolo Bonzini wrote: Il 14/03/2013 10:19, Gleb Natapov ha scritto: On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha scritto: pvevent device is used to send guest panic event from guest to qemu. When guest panic happens,

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 12:00, Alexander Graf ha scritto: On 14.03.2013, at 10:43, Paolo Bonzini wrote: Il 14/03/2013 10:19, Gleb Natapov ha scritto: On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha scritto: pvevent device is used to send guest panic

Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib

2013-03-14 Thread Paolo Bonzini
Il 14/03/2013 12:00, Peter Maydell ha scritto: I think coroutines are dreadful and we should really not be moving towards greater use of them. They're just really really not portable and they don't fit with the C language, and they're a constant source of problems.(For instance I have a

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Alexander Graf
On 14.03.2013, at 12:03, Paolo Bonzini wrote: Il 14/03/2013 12:00, Alexander Graf ha scritto: On 14.03.2013, at 10:43, Paolo Bonzini wrote: Il 14/03/2013 10:19, Gleb Natapov ha scritto: On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha

Re: [Qemu-devel] [RFC PATCH 0/2] port network layer onto glib

2013-03-14 Thread Peter Maydell
On 14 March 2013 11:04, Paolo Bonzini pbonz...@redhat.com wrote: The gthread coroutine backend is really more for debugging than anything else. It works for qemu-io/img, but not for QEMU. Good that you actually found proof. :) If it's not supposed to work we shouldn't let configure

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 12:23:01PM +0100, Alexander Graf wrote: On 14.03.2013, at 12:03, Paolo Bonzini wrote: Il 14/03/2013 12:00, Alexander Graf ha scritto: On 14.03.2013, at 10:43, Paolo Bonzini wrote: Il 14/03/2013 10:19, Gleb Natapov ha scritto: On Thu, Mar 14, 2013 at

Re: [Qemu-devel] [PATCH V9 01/14] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-14 Thread Markus Armbruster
Kevin Wolf kw...@redhat.com writes: Am 13.03.2013 um 19:19 hat Markus Armbruster geschrieben: Kevin Wolf kw...@redhat.com writes: Am 12.03.2013 um 06:01 hat Wenchao Xia geschrieben: Oops, Since it belongs to block layer I hope it can be LGPL2. Do you know how to contact Fabrice

Re: [Qemu-devel] [PATCH v6 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Markus Armbruster
Michael S. Tsirkin m...@redhat.com writes: On Thu, Mar 14, 2013 at 09:06:15AM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: [...] diff --git a/qapi-schema.json b/qapi-schema.json index 28b070f..bb361e1 100644 --- a/qapi-schema.json +++ b/qapi-schema.json

Re: [Qemu-devel] [PATCH 5/9] qapi_sized_buffer

2013-03-14 Thread mdroth
On Wed, Mar 13, 2013 at 09:48:11PM -0400, Stefan Berger wrote: On 03/13/2013 07:18 PM, mdroth wrote: On Wed, Mar 13, 2013 at 06:00:24PM -0400, Stefan Berger wrote: On 03/13/2013 04:52 PM, mdroth wrote: Visitors don't have any knowledge of the data structures they're visiting outside of what

Re: [Qemu-devel] [PATCH v6 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Michael S. Tsirkin
On Thu, Mar 14, 2013 at 01:13:54PM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: On Thu, Mar 14, 2013 at 09:06:15AM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: [...] diff --git a/qapi-schema.json b/qapi-schema.json index

Re: [Qemu-devel] [PATCH v6 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Markus Armbruster
Michael S. Tsirkin m...@redhat.com writes: On Thu, Mar 14, 2013 at 09:06:15AM +0100, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an

Re: [Qemu-devel] [PATCH V3 3/3] New option -gdb-opts

2013-03-14 Thread Markus Armbruster
Fabien Chouteau chout...@adacore.com writes: On 03/14/2013 09:44 AM, Markus Armbruster wrote: Fabien Chouteau chout...@adacore.com writes: We introduce a new command line option. It's a generic option to customize the gdb server: -gdb-opts [attached=on|off] The only parameter for now is

Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event

2013-03-14 Thread Gleb Natapov
On Thu, Mar 14, 2013 at 10:43:43AM +0100, Paolo Bonzini wrote: Il 14/03/2013 10:19, Gleb Natapov ha scritto: On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: Il 14/03/2013 09:15, Hu Tao ha scritto: pvevent device is used to send guest panic event from guest to qemu. When

[Qemu-devel] [PATCH v7 2/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Michael S. Tsirkin
libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- QMP/qmp-events.txt| 16 hw/qdev.c

Re: [Qemu-devel] [PATCH 1/2] qga: add windows implementation for guest-get-time

2013-03-14 Thread mdroth
On Thu, Mar 14, 2013 at 03:07:50PM +0800, Lei Li wrote: Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 33 + 1 file changed, 33 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 7e8ecb3..e24fb4a 100644

[Qemu-devel] [PATCH v7 0/3] DEVICE_DELETED event

2013-03-14 Thread Michael S. Tsirkin
libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. First patch only adds the event with ID, second patch adds a path field. Split this way for ease of backport (stable

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-14 Thread mdroth
On Thu, Mar 14, 2013 at 03:07:51PM +0800, Lei Li wrote: Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-win32.c | 33 + 1 file changed, 33 insertions(+) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index e24fb4a..8064c3a 100644

[Qemu-devel] [PATCH v8 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Michael S. Tsirkin
libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- QMP/qmp-events.txt| 16 hw/qdev.c

[Qemu-devel] [PATCH v8 3/3] qmp: add path to device_deleted event

2013-03-14 Thread Michael S. Tsirkin
Add QOM path to device deleted event. It now becomes useful to report it for devices which don't have an ID assigned. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- QMP/qmp-events.txt | 4 +++- hw/qdev.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH v8 0/3] DEVICE_DELETED event

2013-03-14 Thread Michael S. Tsirkin
libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. First patch only adds the event with ID, second patch adds a path field. Split this way for ease of backport (stable

[Qemu-devel] [PATCH v8 2/3] qom: pass original path to unparent method

2013-03-14 Thread Michael S. Tsirkin
We need to know the original path since unparenting loses this state. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/qdev.c| 4 ++-- include/qom/object.h | 3 ++- qom/object.c | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/qdev.c

  1   2   3   >