.
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
-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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
.
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
-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
-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
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
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
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
\
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
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
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
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
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
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
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 +
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
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
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
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
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
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
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
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
.
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
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
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
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
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
.
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
-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
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
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
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
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
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
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
-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
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
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
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
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
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:
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
{'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
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
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
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
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
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
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
.
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
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
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
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
.
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
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
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
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
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
-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
-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
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
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
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
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
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
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
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
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
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
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
801 - 900 of 5841 matches
Mail list logo