[Qemu-devel] [PATCH v2][ 13/21] qapi: add command registration/lookup functions

2011-06-03 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 --- qapi/qmp-registry.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) create mode 100644 qapi/qmp-registry.c

[Qemu-devel] [PATCH v2][ 18/21] qapi: Makefile changes to build test-visiter

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 14 ++ Makefile.objs |7 +++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index cf318c8..7176176 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,19 @@

[Qemu-devel] [PATCH v2][ 08/21] qapi: add qapi-types-core.h

2011-06-03 Thread Michael Roth
Base declarations and includes for qapi types generator. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi/qapi-types-core.h | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 qapi/qapi-types-core.h diff --git

[Qemu-devel] [PATCH v2][ 15/21] qapi: add base declaration/types for QMP

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi/qmp-core.h | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) create mode 100644 qapi/qmp-core.h diff --git a/qapi/qmp-core.h b/qapi/qmp-core.h new file mode 100644 index

[Qemu-devel] [PATCH v2][ 20/21] qapi: Makefile changes to build test-qmp-commands

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 7176176..944e85e 100644 --- a/Makefile +++ b/Makefile @@ -146,7 +146,7 @@ check-qfloat: check-qfloat.o qfloat.o

[Qemu-devel] [PATCH v2][ 09/21] qapi: add qapi-visit-core.h

2011-06-03 Thread Michael Roth
Base definitions/includes for Visiter interface used by generated visiter/marshalling code. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi/qapi-visit-core.h | 187 1 files changed, 187 insertions(+), 0 deletions(-) create mode

[Qemu-devel] [PATCH v4][ 1/7] guest agent: worker thread class

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qga/guest-agent-worker.c | 179 ++ 1 files changed, 179 insertions(+), 0 deletions(-) create mode 100644 qga/guest-agent-worker.c diff --git a/qga/guest-agent-worker.c

[Qemu-devel] [PATCH v4][ 2/7] guest agent: command state class

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qga/guest-agent-command-state.c | 73 +++ 1 files changed, 73 insertions(+), 0 deletions(-) create mode 100644 qga/guest-agent-command-state.c diff --git a/qga/guest-agent-command-state.c

[Qemu-devel] [PATCH v2][ 14/21] qapi: add QMP dispatch functions

2011-06-03 Thread Michael Roth
Given an object recieved via QMP, this code uses the dispatch table provided by qmp_registry.c to call the corresponding marshalling/dispatch function and format return values/errors for delivery to the QMP. Currently only synchronous QMP functions are supported, but this will also be used for

[Qemu-devel] [PATCH v4][ 5/7] guest agent: add guest agent RPCs/commands

2011-06-03 Thread Michael Roth
This adds the initial set of QMP/QAPI commands provided by the guest agent: guest-sync guest-ping guest-info guest-file-open guest-file-read guest-file-write guest-file-seek guest-file-close guest-fsfreeze-freeze guest-fsfreeze-thaw guest-fsfreeze-status The input/output specification for these

[Qemu-devel] [PATCH v2][ 17/21] qapi: add test-visiter, tests for gen. visiter code

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- test-visiter.c | 214 1 files changed, 214 insertions(+), 0 deletions(-) create mode 100644 test-visiter.c diff --git a/test-visiter.c b/test-visiter.c new file mode 100644 index

[Qemu-devel] [PATCH v2] PPC: E500: Implement reboot controller

2011-06-03 Thread Alexander Graf
When Linux reboots an e500 VM, it writes to a magic register in the global-utilities device indicated by the device tree. We were not emulating that device so far, renedering the VM reboot-less. This patch implements that device with only the reboot functionality implemented and adds it to the

[Qemu-devel] [PATCH v2][ 19/21] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

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

[Qemu-devel] [PATCH v4][ 6/7] guest agent: add guest agent commands schema file

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

Re: [Qemu-devel] [PATCH v2] PPC: E500: Implement reboot controller

2011-06-03 Thread Scott Wood
On Thu, 2 Jun 2011 20:37:30 +0200 Alexander Graf ag...@suse.de wrote: +case MPC8544_GUTS_ADDR_PVR: +value = env-spr[SPR_PVR]; +break; +case MPC8544_GUTS_ADDR_SVR: +value = env-spr[SPR_E500_SVR]; +break; Heh, I didn't even realize these were in there

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

2011-06-03 Thread Michael Roth
This is Set 3/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set2-v2, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set3-v4 (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 v3] PPC: E500: Implement reboot controller

2011-06-03 Thread Alexander Graf
When Linux reboots an e500 VM, it writes to a magic register in the global-utilities device indicated by the device tree. We were not emulating that device so far, renedering the VM reboot-less. This patch implements that device with only the reboot functionality implemented and adds it to the

[Qemu-devel] [PATCH v4][ 3/7] guest agent: qemu-ga daemon

2011-06-03 Thread Michael Roth
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 the results back to the channel in a manner similar to QMP. A shorthand invocation: qemu-ga -d Is equivalent to: qemu-ga -c

[Qemu-devel] [PATCH v4][ 4/7] guest agent: add error class for QERR_QGA_LOGGING_FAILED

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qerror.c |4 qerror.h |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index c18641f..059981b 100644 --- a/qerror.c +++ b/qerror.c @@ -209,6 +209,10 @@ static const QErrorStringTable

[Qemu-devel] [PATCH 0/12] Adding VMDK monolithic flat support

2011-06-03 Thread Fam Zheng
This is a split patch series of the previous monolithic flat support version, with improvements according to Kevin's comments. Original comment: VMDK multiple file images can not be recognized for now. This patch is adding monolithic flat support to it, that is the image type with two files, one

Re: [Qemu-devel] [PATCH v3] hw/pc: Support system flash memory with -pflash parameter

2011-06-03 Thread Aurelien Jarno
On Fri, Jun 03, 2011 at 03:28:49PM -0700, Jordan Justen wrote: On Fri, Jun 3, 2011 at 13:36, Aurelien Jarno aurel...@aurel32.net wrote: Ping? Cc:ed Anthony the maintainer of pc.c Sorry, I've been meaning to rebase this and add your reviewed-by. Would that be the right next step in this

[Qemu-devel] [PATCH 03/12] VMDK: probe for mono flat image

2011-06-03 Thread Fam Zheng
vmdk_probe for mono flat images. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index f787528..bf8d02a 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -101,10 +101,17 @@

[Qemu-devel] [PATCH 04/12] VMDK: separate vmdk_open by format version

2011-06-03 Thread Fam Zheng
Separate vmdk_open by subformats to: * vmdk_open_vmdk3 * vmdk_open_vmdk4 Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 171 +++--- 1 files changed, 104 insertions(+), 67 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c

[Qemu-devel] [PATCH 01/12] VMDK: Introduced VmdkExtent

2011-06-03 Thread Fam Zheng
Added VmdkExtent array to hold image extent information, with the exsiting functionalities fit into this structure. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 301 ++ 1 files changed, 200 insertions(+), 101 deletions(-)

[Qemu-devel] [PATCH 07/12] VMDK: vmdk_flush for extents

2011-06-03 Thread Fam Zheng
Vmdk flush in extent array style. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index f1233cf..1d74b62 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -1094,7 +1094,14 @@

Re: [Qemu-devel] [PATCH v2] PPC: E500: Implement reboot controller

2011-06-03 Thread Alexander Graf
On 04.06.2011, at 01:42, Scott Wood wrote: On Thu, 2 Jun 2011 20:37:30 +0200 Alexander Graf ag...@suse.de wrote: +case MPC8544_GUTS_ADDR_PVR: +value = env-spr[SPR_PVR]; +break; +case MPC8544_GUTS_ADDR_SVR: +value = env-spr[SPR_E500_SVR]; +break;

[Qemu-devel] [PATCH 02/12] VMDK: bugfix, align offset to cluster in get_whole_cluster

2011-06-03 Thread Fam Zheng
In get_whole_cluster, the offset is not aligned, to cluster when reading from backing_hd. So if it's the first write to child and the offset is not the cluster boundary, data is copied from parent at a wrong position. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c |2 ++ 1 files

[Qemu-devel] [PATCH 09/12] VMDK: bugfix, change cid_update from static variable to bs field

2011-06-03 Thread Fam Zheng
Cid_update is a flag to update image cid on the first write after each image open. Using a static may suppress the cid update of second opened image. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH 05/12] VMDK: add field BDRVVmdkState.desc_offset to hold descriptor offset

2011-06-03 Thread Fam Zheng
There are several occurrence of magic number 0x200 as the descriptor offset within mono sparse image file. This is not the case for images with separate descriptor file. So a field is added to BDRVVmdkState to hold the correct value. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c |

[Qemu-devel] [PATCH 10/12] VMDK: change get_cluster_offset return type to success flag

2011-06-03 Thread Fam Zheng
As mono flat format being introduced, cluster offset of 0 becomes a valid value. get_cluster_offset now return non-zero on fail, and 0 on success. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 86 - 1 files changed, 54

[Qemu-devel] [PATCH 11/12] VMDK: vmdk_create and options for mono flat image

2011-06-03 Thread Fam Zheng
A flag is added, as there are basically two extent type: SPARSE and FLAT, this flat can be used in future subformats too. Create vmdk mono flat image with `qemu-img create -o flat`. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 297

[Qemu-devel] [PATCH 06/12] VMDK: vmdk_open for mono flat

2011-06-03 Thread Fam Zheng
Vmdk_open for mono flat image. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 134 +++--- 1 files changed, 128 insertions(+), 6 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index b02a7b7..f1233cf 100644 ---

[Qemu-devel] [PATCH 08/12] VMDK: vmdk_close for extents

2011-06-03 Thread Fam Zheng
Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 1d74b62..bbab68a 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -1086,10 +1086,15 @@ exit: static void

[Qemu-devel] [PATCH 12/12] Add disk_size field to BlockDriverState structure

2011-06-03 Thread Fam Zheng
The `qemu-img info` results for mono flat image are no longer accurate, as the disk size was the length of bs-file, which is not the case for multi file images (such as vmdk images with multiple files). The new field disk_size in BlockDriverState can be used by block driver to tell the exact disk

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

<    1   2