[Qemu-devel] [PATCH v4 05/18] qapi: add QMP input visitor

2011-06-22 Thread Michael Roth
. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs|2 +- qapi/qmp-input-visitor.c | 264 ++ qapi/qmp-input-visitor.h | 27 + qerror.h |3 + 4 files changed, 295 insertions(+), 1 deletions

[Qemu-devel] [PATCH v4 13/18] qapi: add qapi-visit.py code generator

2011-06-22 Thread Michael Roth
-types.py Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-visit.py | 261 + 1 files changed, 261 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-visit.py diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py

[Qemu-devel] [PATCH v4 07/18] qapi: add QAPI dealloc visitor

2011-06-22 Thread Michael Roth
Type of Visitor class that can be passed into a qapi-generated C type's visitor function to free() any heap-allocated data types. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qapi-dealloc-visitor.c | 138

[Qemu-devel] [PATCH v4 11/18] qapi: add qapi.py helper libraries

2011-06-22 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi.py | 203 +++ 1 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi.py diff --git a/scripts/qapi.py b/scripts/qapi.py new file mode 100644

[Qemu-devel] [PATCH v4 08/18] qapi: add QMP command registration/lookup functions

2011-06-22 Thread Michael Roth
Registration/lookup functions for that provide a lookup table for dispatching QMP commands. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |1 + qapi/qmp-core.h | 40 qapi/qmp-registry.c | 40

[Qemu-devel] [PATCH v4 17/18] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

2011-06-22 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|8 +++- test-qmp-commands.c | 113 +++ 2 files changed, 120 insertions(+), 1 deletions(-) create mode 100644 test-qmp-commands.c diff --git a/Makefile b/Makefile

[Qemu-devel] [PATCH v4 09/18] qapi: add QMP dispatch functions

2011-06-22 Thread Michael Roth
for async QMP functions and QMP guest proxy dispatch as well. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qmp-core.h |1 + qapi/qmp-dispatch.c | 124 +++ 3 files changed, 126 insertions(+), 1

[Qemu-devel] [PATCH v4 12/18] qapi: add qapi-types.py code generator

2011-06-22 Thread Michael Roth
to as a namespace to keep the generated code from one schema/code-generation separated from others so code and be generated from multiple schemas with clobbering previously created code. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-types.py | 258

[Qemu-devel] [PATCH v4 14/18] qapi: add qapi-commands.py code generator

2011-06-22 Thread Michael Roth
-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-commands.py | 381 ++ 1 files changed, 381 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-commands.py diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py new file

[Qemu-devel] [PATCH v4 18/18] qapi: add QAPI code generation documentation

2011-06-22 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- docs/qapi-code-gen.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 docs/qapi-code-gen.txt diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt

[Qemu-devel] RFC: Qemu Guest Tools ISO

2011-06-22 Thread Michael Roth
Goal: Provide a mechanism, similar to vmware and virtualbox guest tools ISOs, that allows us to easily distribute guest tools (and potentially drivers) for linux and windows guests. Advantages (rough list to start the discussion, feel free to add/comment): - Simplify deployment of guest

Re: [Qemu-devel] RFC: Qemu Guest Tools ISO

2011-06-23 Thread Michael Roth
On 06/23/2011 06:38 AM, Daniel P. Berrange wrote: On Thu, Jun 23, 2011 at 12:08:26PM +0100, Stefan Hajnoczi wrote: On Thu, Jun 23, 2011 at 10:29 AM, Alon Levyal...@redhat.com wrote: On Wed, Jun 22, 2011 at 01:55:25PM -0500, Michael Roth wrote: Goal: Provide a mechanism, similar to vmware

Re: [Qemu-devel] RFC: Qemu Guest Tools ISO

2011-06-23 Thread Michael Roth
On 06/23/2011 07:00 AM, Avi Kivity wrote: On 06/23/2011 02:08 PM, Stefan Hajnoczi wrote: On Thu, Jun 23, 2011 at 10:29 AM, Alon Levyal...@redhat.com wrote: On Wed, Jun 22, 2011 at 01:55:25PM -0500, Michael Roth wrote: Goal: Provide a mechanism, similar to vmware and virtualbox guest tools

Re: [Qemu-devel] RFC: Qemu Guest Tools ISO

2011-06-23 Thread Michael Roth
On 06/23/2011 10:09 AM, Avi Kivity wrote: On 06/23/2011 05:54 PM, Michael Roth wrote: On 06/23/2011 07:00 AM, Avi Kivity wrote: On 06/23/2011 02:08 PM, Stefan Hajnoczi wrote: On Thu, Jun 23, 2011 at 10:29 AM, Alon Levyal...@redhat.com wrote: On Wed, Jun 22, 2011 at 01:55:25PM -0500, Michael

[Qemu-devel] [QAPI+QGA 2/3] QAPI code generation infrastructure v5

2011-07-05 Thread Michael Roth
This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of master (set1 merged), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set2-v5 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basic

[Qemu-devel] [PATCH v5 02/18] qlist: add qlist_first()/qlist_next()

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qlist.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/qlist.h b/qlist.h index dbe7b92..d426bd4 100644 --- a/qlist.h +++ b/qlist.h @@ -16,6 +16,7 @@ #include qobject.h #include qemu-queue.h #include

[Qemu-devel] [PATCH v5 01/18] Add hard build dependency on glib

2011-07-05 Thread Michael Roth
. Short term, it has a very nice thread pool implementation that we could leverage in something like virtio-9p. It also has a test harness implementation that this series will use. Signed-off-by: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile

[Qemu-devel] [PATCH v5 03/18] qapi: add module init types for qapi

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- module.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/module.h b/module.h index 9263f1c..ef66730 100644 --- a/module.h +++ b/module.h @@ -24,12 +24,14 @@ typedef enum { MODULE_INIT_BLOCK

[Qemu-devel] [PATCH v5 04/18] qapi: add QAPI visitor core

2011-07-05 Thread Michael Roth
embedded element. The solution is to have non-embedded lists and that what this is. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |6 +++ configure |1 + qapi/qapi-types-core.h | 21 + qapi/qapi-visit-core.c | 114

[Qemu-devel] [PATCH v5 12/18] qapi: add qapi-types.py code generator

2011-07-05 Thread Michael Roth
to as a namespace to keep the generated code from one schema/code-generation separated from others so code and be generated from multiple schemas with clobbering previously created code. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-types.py | 258

[Qemu-devel] [PATCH v5 06/18] qapi: add QMP output visitor

2011-07-05 Thread Michael Roth
over the wire. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qmp-output-visitor.c | 216 + qapi/qmp-output-visitor.h | 28 ++ 3 files changed, 245 insertions(+), 1 deletions(-) create mode

[Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-05 Thread Michael Roth
. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs|2 +- qapi/qmp-input-visitor.c | 264 ++ qapi/qmp-input-visitor.h | 27 + qerror.h |3 + 4 files changed, 295 insertions(+), 1 deletions

[Qemu-devel] [PATCH v5 15/18] qapi: test schema used for unit tests

2011-07-05 Thread Michael Roth
This is how QMP commands/parameters/types would be defined. We use a subset of that functionality here to implement functions/types for unit testing. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi-schema-test.json | 22 ++ 1 files changed, 22 insertions

[Qemu-devel] [PATCH v5 08/18] qapi: add QMP command registration/lookup functions

2011-07-05 Thread Michael Roth
Registration/lookup functions for that provide a lookup table for dispatching QMP commands. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |1 + qapi/qmp-core.h | 40 qapi/qmp-registry.c | 40

[Qemu-devel] [PATCH v5 07/18] qapi: add QAPI dealloc visitor

2011-07-05 Thread Michael Roth
Type of Visitor class that can be passed into a qapi-generated C type's visitor function to free() any heap-allocated data types. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qapi-dealloc-visitor.c | 138

[Qemu-devel] [PATCH v5 09/18] qapi: add QMP dispatch functions

2011-07-05 Thread Michael Roth
for async QMP functions and QMP guest proxy dispatch as well. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qmp-core.h |1 + qapi/qmp-dispatch.c | 124 +++ 3 files changed, 126 insertions(+), 1

[Qemu-devel] [PATCH v5 18/18] qapi: add QAPI code generation documentation

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- docs/qapi-code-gen.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 docs/qapi-code-gen.txt diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt

[Qemu-devel] [PATCH v5 10/18] qapi: add ordereddict.py helper library

2011-07-05 Thread Michael Roth
We need this to parse dictionaries with schema ordering intact so that C prototypes can be generated deterministically. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/ordereddict.py | 128 1 files changed, 128 insertions(+), 0

[Qemu-devel] [PATCH v5 11/18] qapi: add qapi.py helper libraries

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi.py | 203 +++ 1 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi.py diff --git a/scripts/qapi.py b/scripts/qapi.py new file mode 100644

[Qemu-devel] [PATCH v6 1/4] guest agent: command state class

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|4 ++- configure |1 + qga/guest-agent-command-state.c | 73 +++ qga/guest-agent-core.h | 25 + 4 files changed

[Qemu-devel] [PATCH v6 3/4] guest agent: add guest agent commands schema file

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi-schema-guest.json | 204 1 files changed, 204 insertions(+), 0 deletions(-) create mode 100644 qapi-schema-guest.json diff --git a/qapi-schema-guest.json b/qapi-schema-guest.json

[Qemu-devel] [PATCH v6 2/4] guest agent: qemu-ga daemon

2011-07-05 Thread Michael Roth
virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent \ -p /var/run/qemu-guest-agent.pid -d Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 10 +- qemu-ga.c | 651 qga/guest-agent-core.h

[Qemu-devel] [PATCH v5 13/18] qapi: add qapi-visit.py code generator

2011-07-05 Thread Michael Roth
-types.py Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-visit.py | 261 + 1 files changed, 261 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-visit.py diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py

[Qemu-devel] [PATCH v5 14/18] qapi: add qapi-commands.py code generator

2011-07-05 Thread Michael Roth
-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-commands.py | 381 ++ 1 files changed, 381 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-commands.py diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py new file

[Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v6

2011-07-05 Thread Michael Roth
This is Set 3/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set2-v5, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set3-v6 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the

[Qemu-devel] [PATCH v5 16/18] qapi: add test-visitor, tests for gen. visitor code

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 18 +++- test-visitor.c | 305 2 files changed, 321 insertions(+), 2 deletions(-) create mode 100644 test-visitor.c diff --git a/Makefile b/Makefile index

[Qemu-devel] [PATCH v5 17/18] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|8 +++- test-qmp-commands.c | 113 +++ 2 files changed, 120 insertions(+), 1 deletions(-) create mode 100644 test-qmp-commands.c diff --git a/Makefile b/Makefile

[Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-05 Thread Michael Roth
\ unix-connect:/tmp/qga0.sock guest: qemu-ga -c virtio-serial -p /dev/virtio-ports/qga0 \ -p /var/run/qemu-guest-agent.pid -d Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 15 ++- qemu-ga.c |4 + qerror.h

Re: [Qemu-devel] [PATCH v6 2/4] guest agent: qemu-ga daemon

2011-07-05 Thread Michael Roth
Doh! Missed a final build test and this little bugger slipped in. Please apply the following patch to fix it, qapi-backport-set3-v6 has been updated accordingly. Thanks to Matsuda Daiki for the catch/patch! --- qemu-ga.c.orig 2011-07-06 09:03:00.656139317 +0900 +++ qemu-ga.c 2011-07-06

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-07 Thread Michael Roth
On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:32 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: A type of Visiter class that is used to walk a qobject's structure and assign each entry to the corresponding native C type. Command marshaling function will use this

Re: [Qemu-devel] [QAPI+QGA 2/3] QAPI code generation infrastructure v5

2011-07-07 Thread Michael Roth
On 07/07/2011 09:37 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:27 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of master (set1 merged), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git

Re: [Qemu-devel] [PATCH v5 04/18] qapi: add QAPI visitor core

2011-07-07 Thread Michael Roth
On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:31 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: Base definitions/includes for Visiter interface used by generated visiter/marshalling code. Includes a GenericList type. Our lists require an embedded element. Since

Re: [Qemu-devel] [PATCH] Error: Fix build when qemu-common.h is not included

2011-07-07 Thread Michael Roth
100644 --- a/error.h +++ b/error.h @@ -12,7 +12,7 @@ #ifndef ERROR_H #define ERROR_H -#includestdbool.h +#include qemu-common.h /** * A class representing internal errors within QEMU. An error has a string Tested-by: Michael Roth mdr...@linux.vnet.ibm.com

Re: [Qemu-devel] [PATCH v6 1/4] guest agent: command state class

2011-07-08 Thread Michael Roth
On 07/08/2011 09:25 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:37 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: Signed-off-by: Michael Rothmdr...@linux.vnet.ibm.com --- Makefile|4 ++- configure |1 +

Re: [Qemu-devel] [PATCH v6 2/4] guest agent: qemu-ga daemon

2011-07-08 Thread Michael Roth
On 07/08/2011 09:36 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:38 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel and routes them through to dispatch routines, and writes

Re: [Qemu-devel] [PATCH v6 3/4] guest agent: add guest agent commands schema file

2011-07-08 Thread Michael Roth
On 07/08/2011 10:08 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:39 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: Signed-off-by: Michael Rothmdr...@linux.vnet.ibm.com --- qapi-schema-guest.json | 204 1 files changed, 204

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-11 Thread Michael Roth
On 07/08/2011 10:14 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:40 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: This adds the initial set of QMP/QAPI commands provided by the guest agent: guest-sync guest-ping guest-info guest-shutdown guest-file-open guest-file-read

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-11 Thread Michael Roth
On 07/11/2011 04:12 PM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 15:11:26 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/08/2011 10:14 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:40 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: This adds the initial set of

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-11 Thread Michael Roth
On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:32 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: A type of Visiter class that is used to walk a qobject's structure and assign each entry to the corresponding native C type. Command marshaling function will use this

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-12 Thread Michael Roth
On 07/12/2011 08:16 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 19:05:58 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:32 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: A type of Visiter class that is

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-12 Thread Michael Roth
On 07/12/2011 08:53 AM, Luiz Capitulino wrote: On Tue, 12 Jul 2011 08:46:13 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/12/2011 08:16 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 19:05:58 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/07/2011 09:32 AM, Luiz

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-12 Thread Michael Roth
On 07/12/2011 09:15 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 18:11:21 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/11/2011 04:12 PM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 15:11:26 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/08/2011 10:14 AM, Luiz

[Qemu-devel] [PATCH v6 01/18] Add hard build dependency on glib

2011-07-12 Thread Michael Roth
. Short term, it has a very nice thread pool implementation that we could leverage in something like virtio-9p. It also has a test harness implementation that this series will use. Signed-off-by: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile

[Qemu-devel] [PATCH v6 03/18] qapi: add module init types for qapi

2011-07-12 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- module.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/module.h b/module.h index 9263f1c..ef66730 100644 --- a/module.h +++ b/module.h @@ -24,12 +24,14 @@ typedef enum { MODULE_INIT_BLOCK

[Qemu-devel] [PATCH v6 07/18] qapi: add QAPI dealloc visitor

2011-07-12 Thread Michael Roth
Type of Visitor class that can be passed into a qapi-generated C type's visitor function to free() any heap-allocated data types. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qapi-dealloc-visitor.c | 147

[Qemu-devel] [PATCH v6 02/18] qlist: add qlist_first()/qlist_next()

2011-07-12 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qlist.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/qlist.h b/qlist.h index dbe7b92..d426bd4 100644 --- a/qlist.h +++ b/qlist.h @@ -16,6 +16,7 @@ #include qobject.h #include qemu-queue.h #include

[Qemu-devel] [PATCH v6 04/18] qapi: add QAPI visitor core

2011-07-12 Thread Michael Roth
embedded element. The solution is to have non-embedded lists and that what this is. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |6 +++ configure |1 + qapi/qapi-types-core.h | 20 qapi/qapi-visit-core.c | 118

[Qemu-devel] [PATCH v6 05/18] qapi: add QMP input visitor

2011-07-12 Thread Michael Roth
. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs|2 +- qapi/qmp-input-visitor.c | 301 ++ qapi/qmp-input-visitor.h | 27 qerror.h |3 + 4 files changed, 332 insertions(+), 1 deletions

[Qemu-devel] [PATCH v6 13/18] qapi: add qapi-visit.py code generator

2011-07-12 Thread Michael Roth
-types.py Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-visit.py | 243 + 1 files changed, 243 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-visit.py diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py

[Qemu-devel] [QAPI+QGA 2/3] QAPI code generation infrastructure v6

2011-07-12 Thread Michael Roth
This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of master (set1 merged), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set2-v6 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basic

[Qemu-devel] [PATCH v6 15/18] qapi: test schema used for unit tests

2011-07-12 Thread Michael Roth
This is how QMP commands/parameters/types would be defined. We use a subset of that functionality here to implement functions/types for unit testing. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi-schema-test.json | 22 ++ 1 files changed, 22 insertions

[Qemu-devel] [PATCH v6 09/18] qapi: add QMP dispatch functions

2011-07-12 Thread Michael Roth
for async QMP functions and QMP guest proxy dispatch as well. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qmp-core.h |1 + qapi/qmp-dispatch.c | 124 +++ 3 files changed, 126 insertions(+), 1

[Qemu-devel] [PATCH v6 12/18] qapi: add qapi-types.py code generator

2011-07-12 Thread Michael Roth
to as a namespace to keep the generated code from one schema/code-generation separated from others so code and be generated from multiple schemas with clobbering previously created code. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-types.py | 267

[Qemu-devel] [PATCH v6 16/18] qapi: add test-visitor, tests for gen. visitor code

2011-07-12 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 18 +++- test-visitor.c | 306 2 files changed, 322 insertions(+), 2 deletions(-) create mode 100644 test-visitor.c diff --git a/Makefile b/Makefile index

[Qemu-devel] [PATCH v6 11/18] qapi: add qapi.py helper libraries

2011-07-12 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi.py | 203 +++ 1 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi.py diff --git a/scripts/qapi.py b/scripts/qapi.py new file mode 100644

[Qemu-devel] [PATCH v6 14/18] qapi: add qapi-commands.py code generator

2011-07-12 Thread Michael Roth
-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-commands.py | 381 ++ 1 files changed, 381 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-commands.py diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py new file

[Qemu-devel] [PATCH v6 17/18] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

2011-07-12 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|8 +++- test-qmp-commands.c | 113 +++ 2 files changed, 120 insertions(+), 1 deletions(-) create mode 100644 test-qmp-commands.c diff --git a/Makefile b/Makefile

[Qemu-devel] [PATCH v6 18/18] qapi: add QAPI code generation documentation

2011-07-12 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- docs/qapi-code-gen.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 docs/qapi-code-gen.txt diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt

Re: [Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v6

2011-07-13 Thread Michael Roth
On 07/13/2011 08:14 AM, Daniel P. Berrange wrote: On Tue, Jul 05, 2011 at 08:21:36AM -0500, Michael Roth wrote: BUILD/USAGE build: ./configure --target-list=x86_64-softmmu make make qemu-ga #should be built on|for target guest start guest: qemu \ -drive file=/home/mdroth/vm

Re: [Qemu-devel] [QAPI+QGA 2/3] QAPI code generation infrastructure v6

2011-07-13 Thread Michael Roth
On 07/13/2011 01:52 PM, Luiz Capitulino wrote: On Tue, 12 Jul 2011 18:39:26 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of master (set1 merged), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git

Re: [Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v6

2011-07-14 Thread Michael Roth
On 07/14/2011 08:53 AM, Zhi Yong Wu wrote: On Thu, Jul 14, 2011 at 8:55 PM, Luiz Capitulinolcapitul...@redhat.com wrote: On Thu, 14 Jul 2011 10:53:51 +0800 Zhi Yong Wuzwu.ker...@gmail.com wrote: HI, Michael, On Tue, Jul 5, 2011 at 9:21 PM, Michael Rothmdr...@linux.vnet.ibm.com wrote:

[Qemu-devel] [PATCH v7 1/4] qerror: add QERR_JSON_PARSE_ERROR to qerror.c

2011-07-14 Thread Michael Roth
Missing from previous addition of error to qerror.h. Needed for qerror_format() and friends. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qerror.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index d7fcd93..c92adfc 100644

[Qemu-devel] [PATCH v7 4/4] guest agent: add guest agent RPCs/commands

2011-07-14 Thread Michael Roth
{'execute':'guest-info'} | socat stdio unix-connect:/tmp/qga0.sock guest: qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \ -p /var/run/qemu-guest-agent.pid -d Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 15 ++- qapi

[Qemu-devel] [PATCH v7 2/4] guest agent: command state class

2011-07-14 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|4 ++- configure |1 + qga/guest-agent-command-state.c | 73 +++ qga/guest-agent-core.h | 25 + 4 files changed

[Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v7

2011-07-14 Thread Michael Roth
This is Set 3/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set2-v6, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set3-v7 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the

[Qemu-devel] [PATCH v7 3/4] guest agent: qemu-ga daemon

2011-07-14 Thread Michael Roth
virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \ -f /var/run/qemu-guest-agent.pid -d Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 10 +- qemu-ga.c | 667 qga/guest-agent

Re: [Qemu-devel] [PATCH v7 4/4] guest agent: add guest agent RPCs/commands

2011-07-15 Thread Michael Roth
On 07/15/2011 11:23 AM, Luiz Capitulino wrote: On Thu, 14 Jul 2011 15:00:34 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: This adds the initial set of QMP/QAPI commands provided by the guest agent: guest-sync guest-ping guest-info guest-shutdown guest-file-open guest-file-read

[Qemu-devel] [PATCH v7 03/18] qapi: add module init types for qapi

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- module.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/module.h b/module.h index 9263f1c..ef66730 100644 --- a/module.h +++ b/module.h @@ -24,12 +24,14 @@ typedef enum { MODULE_INIT_BLOCK

[Qemu-devel] [QAPI+QGA 2/3] QAPI code generation infrastructure v7

2011-07-19 Thread Michael Roth
This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of master (set1 merged), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set2-v7 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basic

[Qemu-devel] [PATCH v7 01/18] Add hard build dependency on glib

2011-07-19 Thread Michael Roth
. Short term, it has a very nice thread pool implementation that we could leverage in something like virtio-9p. It also has a test harness implementation that this series will use. Signed-off-by: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile

[Qemu-devel] [PATCH v7 04/18] qapi: add QAPI visitor core

2011-07-19 Thread Michael Roth
embedded element. The solution is to have non-embedded lists and that what this is. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |6 +++ configure |1 + qapi/qapi-types-core.h | 20 qapi/qapi-visit-core.c | 118

[Qemu-devel] [PATCH v7 06/18] qapi: add QMP output visitor

2011-07-19 Thread Michael Roth
over the wire. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qmp-output-visitor.c | 239 + qapi/qmp-output-visitor.h | 28 + 3 files changed, 268 insertions(+), 1 deletions(-) create mode 100644

[Qemu-devel] [PATCH v7 09/18] qapi: add QMP dispatch functions

2011-07-19 Thread Michael Roth
for async QMP functions and QMP guest proxy dispatch as well. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qmp-core.h |1 + qapi/qmp-dispatch.c | 124 +++ 3 files changed, 126 insertions(+), 1

[Qemu-devel] [PATCH v7 05/18] qapi: add QMP input visitor

2011-07-19 Thread Michael Roth
. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs|2 +- qapi/qmp-input-visitor.c | 301 ++ qapi/qmp-input-visitor.h | 27 qerror.h |3 + 4 files changed, 332 insertions(+), 1 deletions

[Qemu-devel] [PATCH v7 11/18] qapi: add qapi.py helper libraries

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi.py | 203 +++ 1 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi.py diff --git a/scripts/qapi.py b/scripts/qapi.py new file mode 100644

[Qemu-devel] [PATCH v7 07/18] qapi: add QAPI dealloc visitor

2011-07-19 Thread Michael Roth
Type of Visitor class that can be passed into a qapi-generated C type's visitor function to free() any heap-allocated data types. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |2 +- qapi/qapi-dealloc-visitor.c | 147

[Qemu-devel] [PATCH v7 15/18] qapi: test schema used for unit tests

2011-07-19 Thread Michael Roth
This is how QMP commands/parameters/types would be defined. We use a subset of that functionality here to implement functions/types for unit testing. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi-schema-test.json | 22 ++ 1 files changed, 22 insertions

[Qemu-devel] [PATCH v7 08/18] qapi: add QMP command registration/lookup functions

2011-07-19 Thread Michael Roth
Registration/lookup functions for that provide a lookup table for dispatching QMP commands. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile.objs |1 + qapi/qmp-core.h | 40 qapi/qmp-registry.c | 40

[Qemu-devel] [PATCH v7 13/18] qapi: add qapi-visit.py code generator

2011-07-19 Thread Michael Roth
-types.py Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-visit.py | 247 + 1 files changed, 247 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-visit.py diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py

[Qemu-devel] [PATCH v7 14/18] qapi: add qapi-commands.py code generator

2011-07-19 Thread Michael Roth
-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-commands.py | 385 ++ 1 files changed, 385 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi-commands.py diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py new file

[Qemu-devel] [PATCH v7 17/18] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|8 +++- test-qmp-commands.c | 113 +++ 2 files changed, 120 insertions(+), 1 deletions(-) create mode 100644 test-qmp-commands.c diff --git a/Makefile b/Makefile

[Qemu-devel] [PATCH v7 10/18] qapi: add ordereddict.py helper library

2011-07-19 Thread Michael Roth
We need this to parse dictionaries with schema ordering intact so that C prototypes can be generated deterministically. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/ordereddict.py | 128 1 files changed, 128 insertions(+), 0

[Qemu-devel] [PATCH v7 18/18] qapi: add QAPI code generation documentation

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- docs/qapi-code-gen.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 docs/qapi-code-gen.txt diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt

[Qemu-devel] [PATCH v7 12/18] qapi: add qapi-types.py code generator

2011-07-19 Thread Michael Roth
to as a namespace to keep the generated code from one schema/code-generation separated from others so code and be generated from multiple schemas with clobbering previously created code. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/qapi-types.py | 270

[Qemu-devel] [PATCH v8 1/4] qerror: add QERR_JSON_PARSE_ERROR to qerror.c

2011-07-19 Thread Michael Roth
Missing from previous addition of error to qerror.h. Needed for qerror_format() and friends. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qerror.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index d7fcd93..c92adfc 100644

[Qemu-devel] [PATCH v7 02/18] qlist: add qlist_first()/qlist_next()

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qlist.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/qlist.h b/qlist.h index dbe7b92..d426bd4 100644 --- a/qlist.h +++ b/qlist.h @@ -16,6 +16,7 @@ #include qobject.h #include qemu-queue.h #include

[Qemu-devel] [PATCH v7 16/18] qapi: add test-visitor, tests for gen. visitor code

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 19 +++- test-visitor.c | 306 2 files changed, 323 insertions(+), 2 deletions(-) create mode 100644 test-visitor.c diff --git a/Makefile b/Makefile index

[Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v8

2011-07-19 Thread Michael Roth
This is Set 3/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set2-v7, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set3-v8 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the

[Qemu-devel] [PATCH v8 2/4] guest agent: command state class

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile|4 ++- configure |1 + qga/guest-agent-command-state.c | 73 +++ qga/guest-agent-core.h | 25 + 4 files changed

[Qemu-devel] [PATCH v8 3/4] guest agent: qemu-ga daemon

2011-07-19 Thread Michael Roth
virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \ -f /var/run/qemu-ga.pid -d Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile |8 +- configure |1 + qemu-ga.c | 667

<    4   5   6   7   8   9   10   11   12   13   >