[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.

[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] [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 dis

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

2011-06-03 Thread Fam Zheng
Signed-off-by: Fam Zheng --- 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 vmdk_close(BlockDriverState *bs)

[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 --- 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 --- a/block/vmdk.c +++ b/block/vm

[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 --- block/vmdk.c | 297 -- block

[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 --- block/vmdk.c | 86 - 1 files changed, 54 insertions(+), 32 del

[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 --- block/vmdk.c | 17 ++---

[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 --- block/vmdk.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.

[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 --- block/vmdk.c |2 ++ 1 files changed, 2 insert

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 wrote: > >> +case MPC8544_GUTS_ADDR_PVR: >> +value = env->spr[SPR_PVR]; >> +break; >> +case MPC8544_GUTS_ADDR_SVR: >> +value = env->spr[SPR_E500_SVR]; >> +brea

[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 --- 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 @@ static void vmdk_cl

[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 --- block/vmdk.c | 301 ++ 1 files changed, 200 insertions(+), 101 deletions(-) diff --git a/bloc

[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 --- block/vmdk.c | 171 +++--- 1 files changed, 104 insertions(+), 67 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index bf8d02a..e3601

[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 --- 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 @@ static int vmdk_p

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 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 case? > Sorry,

[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 t

[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 --- 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 qerror_table[] = {

[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 v

[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 d

[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 basi

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 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 -- I w

[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 --- 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 new file mode 100644 index 0

[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 --- 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 mode 100644 index 000..7

[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 d

[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 --- 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 000..31596a0 --- /dev

[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 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 asyn

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

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- 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 b/qga/guest-agent-command-state.c ne

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

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- 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 b/qga/guest-agent-worker.c new file mode 100644 i

[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 --- qapi/qapi-visit-core.h | 187 1 files changed, 187 insertions(+), 0 deletions(-) create mode 100644 qapi/qapi-visit-core.

[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 --- 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 $(CHECK_PROG_DEPS) check-qjson: chec

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

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- 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 000..34b2e6a --- /dev/null +++

[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 --- qapi/qapi-types-core.h | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 qapi/qapi-types-core.h diff --git a/qapi/qapi-types-core.h b/qapi/qapi-types-core.h

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

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- 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 @@ check-qlist: check-qlist.o qlist

[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 --- qapi/qmp-registry.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) create mode 100644 qapi/qmp-registry.c diff --git a/qapi/qmp-reg

[Qemu-devel] [PATCH v2][ 06/21] qapi: add qapi-visit.py code generator

2011-06-03 Thread Michael Roth
This is the code generator for qapi visiter functions used to marshal/unmarshal/dealloc qapi types. It generates the following 2 files: $(prefix)qapi-visit.c: visiter function for a particular c type, used to automagically convert qobjects into the

[Qemu-devel] [PATCH v2][ 16/21] qapi: test schema used for unit tests

2011-06-03 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 --- qapi-schema-test.json | 16 1 files changed, 16 insertions(+), 0 deletions(-) create mode 1006

[Qemu-devel] [PATCH v2][ 12/21] qapi: add QAPI dealloc visiter

2011-06-03 Thread Michael Roth
Type of Visiter class that can be passed into a qapi-generated C type's visiter function to free() any heap-allocated data types. Signed-off-by: Michael Roth --- qapi/qapi-dealloc-visiter.c | 127 +++ qapi/qapi-dealloc-visiter.h | 26 + 2 files

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread malc
On Sat, 4 Jun 2011, Aurelien Jarno wrote: > On Sat, Jun 04, 2011 at 01:57:23AM +0400, malc wrote: > > On Fri, 3 Jun 2011, Aurelien Jarno wrote: > > > > > On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: > > > > pulse/simple.h does not include stdlib.h > > > > We cannot use N

[Qemu-devel] [PATCH v2][ 04/21] qapi: add ordereddict/qapi.py helper libraries

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- scripts/ordereddict.py | 128 ++ scripts/qapi.py| 181 2 files changed, 309 insertions(+), 0 deletions(-) create mode 100644 scripts/ordereddict.py create mode 100644 scri

[Qemu-devel] [PATCH v2][ 11/21] qapi: add QMP output visiter

2011-06-03 Thread Michael Roth
Type of Visiter class that serves as the inverse of the input visiter: it takes a series of native C types and uses their values to construct a corresponding QObject. The command marshaling/dispatcher functions will use this to convert the output of QMP functions into a QObject that can be sent ove

[Qemu-devel] [PATCH v2][ 05/21] qapi: add qapi-types.py code generator

2011-06-03 Thread Michael Roth
This is the code generator for qapi types. It will generation the following files: $(prefix)qapi-types.h - C types corresponding to types defined in the schema you pass in $(prefix)qapi-types.c - Cleanup functions for the above C types The $(prefix) is used to as a n

[Qemu-devel] [PATCH v2][ 02/21] qlist: add qlist_first()/qlist_next()

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- qlist.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/qlist.h b/qlist.h index dbe7b92..cd2d23e 100644 --- a/qlist.h +++ b/qlist.h @@ -16,6 +16,7 @@ #include "qobject.h" #include "qemu-queue.h" #include "qemu-common.h" +#inc

[Qemu-devel] [PATCH v4][ 7/7] guest agent: Makefile, build qemu-ga

2011-06-03 Thread Michael Roth
This allows us to build qemu-ga with "make qemu-ga". It pulls in the qemu-tools deps, but does not currently build by default. This may change to avoid bitrot and help with host-side-only unit tests. Signed-off-by: Michael Roth --- Makefile | 22 +- qemu-ga.c | 10 ++

[Qemu-devel] [PATCH v2][ 10/21] qapi: add QMP input visiter

2011-06-03 Thread Michael Roth
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 to pull out QMP command parameters recieved over the wire and pass them as native arguments to the corresponding C functions. Signe

[Qemu-devel] [PATCH v2][ 03/21] qapi: add module init types for qapi

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- 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, MODULE_INIT_DEVICE, MODULE_INIT_

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

2011-06-03 Thread Michael Roth
This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set1-v1, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set2-v2 (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 v2][ 21/21] qapi: add QAPI code generation documentation

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth --- 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 new file mode 100644 index 0

[Qemu-devel] [PATCH v2][ 01/21] Add hard build dependency on glib

2011-06-03 Thread Michael Roth
From: Anthony Liguori GLib is an extremely common library that has a portable thread implementation along with tons of other goodies. GLib and GObject have a fantastic amount of infrastructure we can leverage in QEMU including an object oriented programming infrastructure. Short term, it has a

[Qemu-devel] [PATCH v2][ 07/21] qapi: add qapi-commands.py code generator

2011-06-03 Thread Michael Roth
This is the code generator for qapi command marshaling/dispatch. Currently only generators for synchronous qapi/qmp functions are supported. This script generates the following files: $(prefix)qmp-marshal.c: command marshal/dispatch functions for each QMP command define

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

2011-06-03 Thread Jordan Justen
On Fri, Jun 3, 2011 at 13:36, Aurelien Jarno 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 case? -Jordan > > On Mon, Apr 18, 2011 at 10:46:40AM +0200, Aurelien Jarno wrote: >> On T

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread Aurelien Jarno
On Sat, Jun 04, 2011 at 01:57:23AM +0400, malc wrote: > On Fri, 3 Jun 2011, Aurelien Jarno wrote: > > > On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: > > > pulse/simple.h does not include stdlib.h > > > We cannot use NULL since it may not be defined > > > Use 0 instead > >

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread malc
On Fri, 3 Jun 2011, Aurelien Jarno wrote: > On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: > > pulse/simple.h does not include stdlib.h > > We cannot use NULL since it may not be defined > > Use 0 instead > > I am unable to reproduce this issue, even with gcc-4.6. Also ple

Re: [Qemu-devel] [PATCH] configure: check for -Wendif-labels support

2011-06-03 Thread Aurelien Jarno
On Tue, May 17, 2011 at 05:08:43PM -0400, Mike Frysinger wrote: > Older gcc compilers do not support -Wendif-labels, so move it from the > hardcoded list to the dynamically detected list. > > Signed-off-by: Mike Frysinger > --- > configure |4 ++-- > 1 files changed, 2 insertions(+), 2 delet

Re: [Qemu-devel] [PATCH] virtio-9p: Remove statement without effect (fix warning from cppcheck)

2011-06-03 Thread Aurelien Jarno
On Sat, May 07, 2011 at 10:23:49PM +0200, Stefan Weil wrote: > cppcheck report: > virtio-9p.c:197: warning: Redundant assignment of "flags" to itself > > Cc: Venkateswararao Jujjuri > Signed-off-by: Stefan Weil > --- > hw/9pfs/virtio-9p.c |1 - > 1 files changed, 0 insertions(+), 1 deletion

Re: [Qemu-devel] [RESEND2 PATCH] exec: Implement qemu_ram_free_from_ptr()

2011-06-03 Thread Aurelien Jarno
On Tue, May 03, 2011 at 12:48:09PM -0600, Alex Williamson wrote: > Required for regions mapped via qemu_ram_alloc_from_ptr(). VFIO > and ivshmem will make use of this to remove mappings when devices > are hot unplugged. > > Signed-off-by: Alex Williamson > --- > > Trying to clean out my patch q

[Qemu-devel] [PATCH v2] linux-user: add pselect6 syscall support

2011-06-03 Thread Mike Frysinger
Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it. Signed-off-by: Mike Frysinger --- v2 - handle null sigptr in a valid 6th sig struct linux-user/syscall.c | 149 +++-- 1 files chan

Re: [Qemu-devel] [PATCH] linux-user: add pselect6 syscall support

2011-06-03 Thread Mike Frysinger
On Fri, Jun 3, 2011 at 14:10, riku voipio wrote: > On 05/18/2011 03:14 AM, Mike Frysinger wrote: >> Some architectures (like Blackfin) only implement pselect6 (and skip >> select/newselect).  So add support for it using existing newselect code. > > There is a blackfin qemu? i posted it to the list

Re: [Qemu-devel] [PATCH] target-arm: Move VLD/VST multiple into helper functions

2011-06-03 Thread Aurelien Jarno
On Mon, May 02, 2011 at 05:01:24PM +0100, Peter Maydell wrote: > On 20 April 2011 15:52, Peter Maydell wrote: > > Move VLD/VST multiple into helper functions, as some cases can > > generate more TCG ops than the maximum per-instruction limit > > and certainly more than the recommended 20. > > I'v

Re: [Qemu-devel] [PATCH] multiboot: set boot_device to first partition

2011-06-03 Thread Aurelien Jarno
On Thu, Apr 28, 2011 at 04:11:11PM +0200, Arun Thomas wrote: > The multiboot info struct's 'boot_device' field has 'part1' set to 0x01, which > maps to the second primary partition. To specify the first primary partition, > 'part1' should be set to 0x00, since partition numbers start from zero > ac

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

2011-06-03 Thread Aurelien Jarno
Ping? Cc:ed Anthony the maintainer of pc.c On Mon, Apr 18, 2011 at 10:46:40AM +0200, Aurelien Jarno wrote: > On Thu, Mar 31, 2011 at 11:25:26AM -0700, Jordan Justen wrote: > > If -pflash is specified and -bios is specified then pflash will > > be mapped just below the system rom using hw/pflash_cf

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread Aurelien Jarno
On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: > pulse/simple.h does not include stdlib.h > We cannot use NULL since it may not be defined > Use 0 instead I am unable to reproduce this issue, even with gcc-4.6. Also please note that NULL is defined in , not . is included

[Qemu-devel] [RFC 06/10] QMP: Introduce the blockdev-tray-close command

2011-06-03 Thread Luiz Capitulino
This command closes a removable media drive's tray. It's only available in QMP. Please, check the command's documentation (being introduced in this commit) for a detailed description. XXX: Should we return an error if the tray is already closed? Signed-off-by: Luiz Capitulino --- blockdev.c

[Qemu-devel] [RFC 03/10] QMP: query-block: Add the 'tray-open' key

2011-06-03 Thread Luiz Capitulino
As its name implies this new key informs the device's tray status to clients. It's only present if the device is a removable one. Signed-off-by: Luiz Capitulino --- block.c |5 + qmp-commands.hx |2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/block.c b/b

[Qemu-devel] [RFC 10/10] QMP/HMP: change: Use QMP tray commands

2011-06-03 Thread Luiz Capitulino
This commit rewrites change in terms of blockdev-tray-open, blockdev-media-insert and blockdev-tray-close. There should be no visible changes in HMP or QMP, except that the use of this command causes the BLOCK_TRAY_OPEN *and* BLOCK_TRAY_CLOSE events to emitted. Signed-off-by: Luiz Capitulino ---

[Qemu-devel] [RFC 02/10] block: Rename bdrv_mon_event()

2011-06-03 Thread Luiz Capitulino
Rename it to bdrv_error_mon_event() in order to better communicate its purpose. Signed-off-by: Luiz Capitulino --- block.c |4 ++-- block.h |4 ++-- hw/ide/core.c |6 +++--- hw/scsi-disk.c |6 +++--- hw/virtio-blk.c |6 +++--- 5 files changed, 13 insertions

[Qemu-devel] [RFC 09/10] QMP/HMP: eject: Use blockdev-tray-open

2011-06-03 Thread Luiz Capitulino
This commit rewrites eject as a special case of the blockdev-tray-open command. In other words, do_eject() just calls tray_open(). This brings the following behavior *changes* to both QMP and HMP: 1. Before this commit eject was capable of closing the BlockDriverState associated with *any* d

[Qemu-devel] [RFC 05/10] QMP: Introduce the blockdev-tray-open command

2011-06-03 Thread Luiz Capitulino
This command opens a removable media drive's tray. It's only available in QMP. The do_tray_open() function is split into two smaller functions because next commits will also use them. Please, check the command's documentation (being introduced in this commit) for a detailed description. XXX: Sho

[Qemu-devel] [RFC 01/10] block: bdrv_eject(): Add 'force' parameter

2011-06-03 Thread Luiz Capitulino
It's purpose is to skip the media locked test. This is going to be used by the blockdev-tray-open QMP command. Signed-off-by: Luiz Capitulino --- block.c|4 ++-- block.h|2 +- block/raw.c|2 +- hw/ide/atapi.c |2 +- hw/scsi-disk.c |2 +- 5 files changed, 6

[Qemu-devel] [RFC 04/10] HMP: info block: Print the 'tray-open' key

2011-06-03 Thread Luiz Capitulino
It's printed before the "[not inserted]" or the "file" fields, like this: (qemu) info block ide0-hd0: removable=0 file=disks/test.img ro=0 drv=qcow2 encrypted=0 ide1-cd0: removable=1 locked=0 tray-open=0 file=/Fedora-14-x86_64-DVD.iso ro=1 drv=raw encrypted=0 floppy0: removable=1 locked=0 tra

[Qemu-devel] [RFC 08/10] QMP: Introduce the BLOCK_TRAY_OPEN and BLOCK_TRAY_CLOSE events

2011-06-03 Thread Luiz Capitulino
They are emitted when the tray is opened or closed, either by the guest or by monitor commands. Signed-off-by: Luiz Capitulino --- QMP/qmp-events.txt | 30 ++ block.c| 22 ++ monitor.c |6 ++ monitor.h |

[Qemu-devel] [RFC 07/10] QMP: Introduce the blockdev-media-insert command

2011-06-03 Thread Luiz Capitulino
This command inserts a new media in an already opened tray. It's only available in QMP. Please, check the command's documentation (being introduced in this commit) for a detailed description. Signed-off-by: Luiz Capitulino --- blockdev.c | 52 +

[Qemu-devel] [RFC 00/10]: QMP/HMP: Introduce tray handling commands

2011-06-03 Thread Luiz Capitulino
In a recent discussion on the mailing list regarding the introduction of the BLOCK_TRAY_OPEN and BLOCK_TRAY_CLOSE events[1], it was mentioned that we need to fix the eject command and maybe introduce new commands first. Here's a my proposal. This series introduces three new commands: o blockdev

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

2011-06-03 Thread Alexander Graf
On 03.06.2011, at 19:00, Scott Wood wrote: > On Thu, 2 Jun 2011 13:57:50 +0200 > Alexander Graf wrote: > >> diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts >> index 872152d..9b95bfd 100644 >> --- a/pc-bios/mpc8544ds.dts >> +++ b/pc-bios/mpc8544ds.dts >> @@ -82,6 +82,12 @@ >>

Re: [Qemu-devel] [PATCH] linux-user: add pselect6 syscall support

2011-06-03 Thread riku voipio
On 05/18/2011 03:14 AM, Mike Frysinger wrote: Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it using existing newselect code. There is a blackfin qemu? Anyways, with this patch pselect01 ltp testcase starts failing. Looks like (at l

[Qemu-devel] [PATCH] 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 d

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

2011-06-03 Thread Alexander Graf
On 03.06.2011, at 19:00, Scott Wood wrote: > On Thu, 2 Jun 2011 13:57:50 +0200 > Alexander Graf wrote: > >> diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts >> index 872152d..9b95bfd 100644 >> --- a/pc-bios/mpc8544ds.dts >> +++ b/pc-bios/mpc8544ds.dts >> @@ -82,6 +82,12 @@ >>

Re: [Qemu-devel] ARM: BKPT instructions should raise prefetch aborts with IFSR type 00010

2011-06-03 Thread Aurelien Jarno
On Wed, May 18, 2011 at 12:00:46PM +0200, Alex Zuepke wrote: > Hi, > > Peter Maydell schrieb: > > On 25 March 2011 10:54, Alex Zuepke wrote: > >> while digging through some problems with BKPT exceptions on ARM, I > >> discovered that QEMU does not update IFSR on prefetch aborts. This > >> should

Re: [Qemu-devel] [PATCH 0/2] tcg: If DEBUG_TCGV, distinguish TCGv_ptr from TCGv_i32/TCGv_i64

2011-06-03 Thread Aurelien Jarno
On Fri, May 27, 2011 at 01:12:11PM +0100, Peter Maydell wrote: > This patch series enhances the type checking of TCG values done when > compiling with debugging enabled, so that it can detect confusion of > TCGv_ptr values with whichever of TCGv_i32 and TCGv_i64 corresponds to > the pointer-width t

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

2011-06-03 Thread Scott Wood
On Thu, 2 Jun 2011 13:57:50 +0200 Alexander Graf wrote: > diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts > index 872152d..9b95bfd 100644 > --- a/pc-bios/mpc8544ds.dts > +++ b/pc-bios/mpc8544ds.dts > @@ -82,6 +82,12 @@ > compatible = "chrp,open-pic"; >

Re: [Qemu-devel] [PATCH 2/3] Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD.

2011-06-03 Thread Aurelien Jarno
On Wed, May 25, 2011 at 11:06:00PM -0400, Brad wrote: > Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD > to fix compilation of the MIPS host support for OpenBSD/mips64 based > architecures. > > Signed-off-by: Brad Smith > > --- > tcg/mips/tcg-target.h |4 >

Re: [Qemu-devel] [PULL 00/13] s390x patch queue June 03 2011

2011-06-03 Thread Aurelien Jarno
On Thu, Jun 02, 2011 at 08:51:30AM +0200, Alexander Graf wrote: > Hi, > > This is my current patch queue for s390x related work. It contains: > > * compile fixes > * add temp_frees where missing > * fix LMH, CKSM instructions > * update bootloader for increased bootup speed > * implemen

Re: [Qemu-devel] [PATCH-v3 1/2] tcg: Fix unused-but-set-variable warning

2011-06-03 Thread Aurelien Jarno
On Tue, May 31, 2011 at 09:53:48AM +0200, Christophe Fergeau wrote: > Based on a patch from Hans de Goede > > This warning is new in gcc 4.6. > > Acked-by: Amit Shah > Signed-off-by: Christophe Fergeau > --- > tcg/tcg.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Thanks,

Re: [Qemu-devel] [PULL 0/5] PPC patch queue June 03 2011

2011-06-03 Thread Aurelien Jarno
On Thu, Jun 02, 2011 at 08:32:58AM +0200, Alexander Graf wrote: > Howdy, > > This is my current PPC patch queue, containing a compile fix for ppc64 and > some fixes I've come along while trying to get the e500 target working in > autotest. > > Please pull. Done. > The following changes since co

Re: [Qemu-devel] [PATCH] target-arm: Fix compilation failure for 64 bit hosts

2011-06-03 Thread Aurelien Jarno
On Thu, May 26, 2011 at 12:03:36PM +0100, Peter Maydell wrote: > Use the correct _ptr aliases for manipulating the pointer to > the fp_status; this fixes a compilation failure on 64 bit hosts. > > Signed-off-by: Peter Maydell > --- > Apologies for the build breakage. > > target-arm/translate.c

[Qemu-devel] [PATCH v3] configure: Don't create symlinks to nonexistent targets

2011-06-03 Thread Peter Maydell
When we create the symlinks to source tree files, don't create them if the file is not actually present in the source tree; this will happen if the file is in a git submodule that wasn't checked out. This also avoids the odd effect where an in-source-tree configure will end up creating the missing

[Qemu-devel] [PATCH] xen: avoid tracking the region 0xa0000 - 0xbffff

2011-06-03 Thread stefano.stabellini
From: Stefano Stabellini Xen can only do dirty bit tracking for one memory region, so we should explicitly avoid trying to track the legacy VGA region between 0xa and 0xb, rather than trying and failing. Signed-off-by: Stefano Stabellini --- xen-all.c |4 1 files changed, 4 in

[Qemu-devel] [PATCH] cirrus_vga: reset lfb_addr after a pci config write if the BAR is unmapped

2011-06-03 Thread stefano.stabellini
From: Stefano Stabellini If the cirrus_vga PCI BAR is unmapped than we should not only reset map_addr but also lfb_addr, otherwise we'll keep trying to map the old lfb_addr in map_linear_vram. Signed-off-by: Stefano Stabellini --- hw/cirrus_vga.c |5 - 1 files changed, 4 insertions(+),

[Qemu-devel] [PATCH v3 2/2] Add support for Zipit Z2 machine

2011-06-03 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes, added VMStateDescription for LCD device and AER915, traces clean up. v3: no changes Makefile.target |1 + hw/z2.c | 352 +++ 2 f

Re: [Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
On Friday 03 June 2011 18:36:36 Vasily Khoruzhick wrote: > Until now, pxa2xx_lcd only supported 90deg rotation, but > some machines (for example Zipit Z2) needs 270deg rotation. > > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes > v3: fix dpy_update calls for 180 and 360 deg. rotati

[Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick --- v2: codestyle fixes v3: fix dpy_update calls for 180 and 360 deg. rotation. hw/framebuffer.c |2 + hw/pxa2xx_lcd.c | 101 ++

Re: [Qemu-devel] [PATCH v2 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
On Wednesday 01 June 2011 12:28:06 Vasily Khoruzhick wrote: > Until now, pxa2xx_lcd only supported 90deg rotation, but > some machines (for example Zipit Z2) needs 270deg rotation. > > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes > > hw/framebuffer.c |2 + > hw/pxa2xx_lcd.c

Re: [Qemu-devel] [PATCH 00/11] cpu model bug fixes and definition corrections (v2)

2011-06-03 Thread Jan Kiszka
On 2011-06-03 16:38, Eduardo Habkost wrote: > (CCing Marcelo, Avi, and kvm mailing list, so they can help answering > the uq/master patch flow question) > > On Fri, Jun 03, 2011 at 12:51:42AM +0200, Jan Kiszka wrote: >> On 2011-06-02 21:34, Eduardo Habkost wrote: >>> Ouch, the subject prefix is co

Re: [Qemu-devel] [PATCH 00/11] cpu model bug fixes and definition corrections (v2)

2011-06-03 Thread Eduardo Habkost
(CCing Marcelo, Avi, and kvm mailing list, so they can help answering the uq/master patch flow question) On Fri, Jun 03, 2011 at 12:51:42AM +0200, Jan Kiszka wrote: > On 2011-06-02 21:34, Eduardo Habkost wrote: > > Ouch, the subject prefix is completely wrong because of broken > > git-send-email c

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Fri, Jun 03, 2011 at 08:51:29AM -0500, Anthony Liguori wrote: > On 06/03/2011 08:41 AM, Jan Kiszka wrote: > >On 2011-06-03 15:26, Anthony Liguori wrote: > >>I think what we're getting at is the need for an enumeration. So let's > >>introduce one. Here's what I propose: > >> > >>SQMP > >>query-

  1   2   >