[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
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/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Zhi Yong Wu
On Thu, Jun 02, 2011 at 09:17:06AM +0300, Sasha Levin wrote: >Date: Thu, 02 Jun 2011 09:17:06 +0300 >From: Sasha Levin >To: Zhi Yong Wu >Cc: qemu-devel@nongnu.org, k...@vger.kernel.org, kw...@redhat.com, > aligu...@us.ibm.com, herb...@gondor.apana.org.au, > guijianf...@cn.fujitsu.com,

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
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/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Sasha Levin
Hi, On Mon, 2011-05-30 at 13:09 +0800, Zhi Yong Wu wrote: > Hello, all, > > I have prepared to work on a feature called "Disk I/O limits" for > qemu-kvm projeect. > This feature will enable the user to cap disk I/O amount performed by a > VM.It is important for some storage resources to

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
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/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

Re: [Qemu-devel] [PATCH V2 2/3] Cocoa: avoid displaying window when command-line contains '-h' or '-help'

2011-06-01 Thread Peter Maydell
On 2 June 2011 00:05, Andreas Färber wrote: > Am 30.05.2011 um 00:32 schrieb Peter Maydell: >> (1) presumably this doesn't work if you disable the display >> with "-display none" ? > > I don't see how that would not work. It's just not handled specially here, > so it will likely display a window -

[Qemu-devel] [PATCH 7/7] usb-uvc: Use qemu_malloc()

2011-06-01 Thread Brad Hards
As requested by Blue Swirl (2010-06-10) Signed-off-by: Brad Hards --- hw/usb-uvc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-uvc.c b/hw/usb-uvc.c index 1e3d339..d1e71f8 100644 --- a/hw/usb-uvc.c +++ b/hw/usb-uvc.c @@ -1025,7 +1025,7 @@ static int usb_uvc_in

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Zhi Yong Wu
On Wed, Jun 01, 2011 at 09:32:32AM -0400, Vivek Goyal wrote: >Date: Wed, 1 Jun 2011 09:32:32 -0400 >From: Vivek Goyal >To: Zhi Yong Wu >Cc: kw...@redhat.com, stefa...@linux.vnet.ibm.com, k...@vger.kernel.org, > guijianf...@cn.fujitsu.com, qemu-devel@nongnu.org, wu...@cn.ibm.com, > her

qemu-devel@nongnu.org

2011-06-01 Thread Brad Hards
As requested by Blue Swirl (2010-06-10 17:46:16) Signed-off-by: Brad Hards --- hw/usb-uvc.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/hw/usb-uvc.c b/hw/usb-uvc.c index 5437a13..661eb1a 100644 --- a/hw/usb-uvc.c +++ b/hw/usb-uvc.c @@ -

[Qemu-devel] [PATCH 6/7] usb-uvc: Fix a couple of typos

2011-06-01 Thread Brad Hards
Signed-off-by: Brad Hards --- hw/usb-uvc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb-uvc.c b/hw/usb-uvc.c index 661eb1a..1e3d339 100644 --- a/hw/usb-uvc.c +++ b/hw/usb-uvc.c @@ -893,7 +893,7 @@ static int usb_uvc_initfn(USBDevice *dev) error_repor

[Qemu-devel] [PATCH 4/7] usb-uvc: fix some spelling issues.

2011-06-01 Thread Brad Hards
Signed-off-by: Brad Hards --- hw/usb-uvc.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/usb-uvc.c b/hw/usb-uvc.c index 20ac23e..5437a13 100644 --- a/hw/usb-uvc.c +++ b/hw/usb-uvc.c @@ -487,7 +487,7 @@ static int usb_uvc_handle_control(USBDevice *dev, USBPac

[Qemu-devel] [PATCH 1/7] usb: Turn off debug output by default.

2011-06-01 Thread Brad Hards
Addresses comment by Blue Swirl (2010-06-10 17:46:16) Signed-off-by: Brad Hards --- hw/usb-uvc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-uvc.c b/hw/usb-uvc.c index b711f51..e88ee00 100644 --- a/hw/usb-uvc.c +++ b/hw/usb-uvc.c @@ -31,7 +31,7 @@ #include

[Qemu-devel] [0/7] USB UVC updates

2011-06-01 Thread Brad Hards
Hi Natalia, As you suggested, I've stopped my nonsense and worked from your UVC patches (http://patchwork.ozlabs.org/patch/55001 and http://patchwork.ozlabs.org/patch/55000). These changes are relative to your patches (applied on top of trunk). I've mostly just incorporated some changes requested

[Qemu-devel] [PATCH 2/7] usb-uvc: compile fix

2011-06-01 Thread Brad Hards
Looks like function signature changed. Signed-off-by: Brad Hards --- hw/usb-uvc.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/usb-uvc.c b/hw/usb-uvc.c index e88ee00..c9c8f77 100644 --- a/hw/usb-uvc.c +++ b/hw/usb-uvc.c @@ -307,8 +307,9 @@ static void usb_uvc_h

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
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/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

[Qemu-devel] [PATCH v1][ 11/14] json-lexer: fix flushing logic to not always go to error state

2011-06-01 Thread Michael Roth
Currently we flush the lexer by passing in a NULL character. This generally forces the lexer to go to the corresponding TERMINAL() state for whatever token type it is currently parsing, emits the token to the parser, then puts the lexer back into IN_START state. However, since a NULL character caus

[Qemu-devel] [PATCH v1][ 14/14] json-parser: add handling for NULL token list

2011-06-01 Thread Michael Roth
Currently a NULL token list will crash the parser, instead we have it pass back a NULL QObject. Signed-off-by: Michael Roth --- json-parser.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/json-parser.c b/json-parser.c index 58e973b..849e215 100644 --- a/json-parse

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

2011-06-01 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] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent)

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

[Qemu-devel] [PATCH 1/3] usb: Add defines for USB Serial Bus Release Number register

2011-06-01 Thread Brad Hards
Signed-off-by: Brad Hards --- hw/usb.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/usb.h b/hw/usb.h index 9882400..2c051b3 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -26,6 +26,12 @@ #include "qdev.h" #include "qemu-queue.h" +/* Constants related to the USB /

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

2011-06-01 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

[Qemu-devel] [RFC PATCH] Darwin: Fix compilation warning regarding the deprecated daemon() function

2011-06-01 Thread Alexandre Raymond
On OSX > 10.5, daemon() is deprecated, resulting int he following warning: 8< qemu-nbd.c: In function ‘main’: qemu-nbd.c:371: warning: ‘daemon’ is deprecated (declared at /usr/include/stdlib.h:289) 8< The following trick, used in mDNSResponder, takes care of this warning: http://w

[Qemu-devel] Hello Would You Like To Earn

2011-06-01 Thread Sharon . Burns
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/3brnlpx Regards, Sharon Burns Survey Human Resources Dept.

[Qemu-devel] [0/3] usb: use defines instead of magic numbers for USB serial bus release number

2011-06-01 Thread Brad Hards
There is some commonality between the UHCI and EHCI (and xHCI, future) drivers. So we can make nice defines instead of magic numbers. usb-ehci.c |2 +- usb-uhci.c |2 +- usb.h |6 ++ 3 files changed, 8 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH] Fix compilation warning due to missing header for sigaction

2011-06-01 Thread Alexandre Raymond
Fix the following warning by including signal.h directly in qemu-common.h 8< iohandler.c: In function ‘qemu_init_child_watch’: iohandler.c:172: warning: implicit declaration of function ‘sigaction’ iohandler.c:172: warning: nested extern declaration of ‘sigaction’ 8< Signed-off-by:

[Qemu-devel] [PATCH 3/3] usb: Use defines for serial bus release number register for EHCI

2011-06-01 Thread Brad Hards
Signed-off-by: Brad Hards --- hw/usb-ehci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index f63519e..81b9d0b 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -1970,7 +1970,7 @@ static int usb_ehci_initfn(PCIDevice *dev) // pci_

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

2011-06-01 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

Re: [Qemu-devel] [PATCH 5/5] QMP: add server mode to QEMUMonitorProtocol

2011-06-01 Thread Brad Hards
On Thu, 2 Jun 2011 01:54:05 AM Luiz Capitulino wrote: > QEMU supports socket chardevs that establish connections like a server > or a client. Is this protocol documented anywhere? Brad

[Qemu-devel] [PATCH v1][ 06/14] json-lexer: limit the maximum size of a given token

2011-06-01 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- json-lexer.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index 65c9720..fe5a060 100644 --- a/json-lexer.c +++ b/json-lexer.c @@ -18,6 +18,8 @@ #include "qemu-common.h"

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

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi-schema-guest.json | 198 1 files changed, 198 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

Re: [Qemu-devel] [PATCH 1/3] lsi: Fix unused-but-set-variable warning

2011-06-01 Thread Paolo Bonzini
On 06/01/2011 02:56 PM, Christophe Fergeau wrote: This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau --- hw/lsi53c895a.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 83084b6..90c6cbc 100644 --- a/hw/lsi53c895a

[Qemu-devel] [PATCH 0/2] [PULL] qemu-kvm.git uq/master queue

2011-06-01 Thread Marcelo Tosatti
The following changes since commit 578c7b2ca8ee9e97fa8693b1a83d517e8e3f962e: audio: fix integer overflow expression (2011-06-01 00:14:07 +0400) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Yang, Wei Y (1): kvm: Enable CPU SMEP fea

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

2011-06-01 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 2/3] usb: Use defines for serial bus release number register for UHCI

2011-06-01 Thread Brad Hards
Signed-off-by: Brad Hards --- hw/usb-uhci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index c0de05b..d9c86ad 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -1098,7 +1098,7 @@ static int usb_uhci_common_initfn(UHCIState *s) pci_

[Qemu-devel] [PATCH 1/5] QMP: QError: New QERR_UNSUPPORTED

2011-06-01 Thread Luiz Capitulino
From: Lai Jiangshan New QERR_UNSUPPORTED for unsupported commands or requests. Signed-off-by: Luiz Capitulino --- qerror.c |4 qerror.h |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 4855604..4f3b7ca 100644 --- a/qerror.c +++ b/qer

[Qemu-devel] [PATCH v1][ 07/14] json-streamer: limit the maximum recursion depth and maximum token count

2011-06-01 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- json-streamer.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/json-streamer.c b/json-streamer.c index 549e9b7..6b9af63 100644 --- a/json-streamer.c +++ b/json-streamer.c @@ -18,6 +18,9 @@ #includ

Re: [Qemu-devel] [PATCH 01/14] usb-linux: Set usb_auto_timer to NULL after deleting it

2011-06-01 Thread Hans de Goede
Hi, On 06/01/2011 12:48 PM, Gerd Hoffmann wrote: On 05/31/11 11:35, Hans de Goede wrote: We might check for it being NULL later, if the device gets unplugged. --- usb-linux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 4d7a31a..ea3ab5f 10

[Qemu-devel] [PATCH 3/5] HMP: Use QMP inject nmi implementation

2011-06-01 Thread Luiz Capitulino
This **CHANGES** the human monitor "nmi" command behavior. Currently it accepts an CPU argument which, when provided, will send the NMI to the specified CPU. This feature is of discussable value though and HMP shouldn't have more features than QMP, so let's use QMP's instead (it's also simpler).

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

2011-06-01 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 v1][ 08/14] json-streamer: make sure to reset token_size after emitting a token list

2011-06-01 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- json-streamer.c |2 ++ json-streamer.h |1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/json-streamer.c b/json-streamer.c index 6b9af63..a6cb28f 100644 --- a/json-streamer.c +++ b/json-streamer.c @@ -65,6 +65,7 @

[Qemu-devel] [PATCH v1][ 04/14] json-parser: propagate error from parser

2011-06-01 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- Makefile |4 ++-- Makefile.objs |4 ++-- json-parser.c | 19 --- json-parser.h |2 ++ qerror.h |3 +++ 5 files changed, 25 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2b0

[Qemu-devel] [PULL 0/5]: Monitor queue

2011-06-01 Thread Luiz Capitulino
Anthony, The following patches have been sent to the list and look good to me. I've also tested them. The changes (since 578c7b2ca8ee9e97fa8693b1a83d517e8e3f962e) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git for-anthony Lai Jiangshan (2): QMP: QErr

[Qemu-devel] [PATCH v1][ 13/14] json-streamer: add handling for JSON_ERROR token/state

2011-06-01 Thread Michael Roth
This allows a JSON_ERROR state to be passed to the streamer to force a flush of the current tokens and pass a NULL token list to the parser rather that have it churn on bad data. (Alternatively we could just not pass it to the parser at all, but it may be useful to push there errors up the stack. N

Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface

2011-06-01 Thread Richard Henderson
On 06/01/2011 07:29 AM, Avi Kivity wrote: > On 06/01/2011 05:01 PM, Richard Henderson wrote: >> > +err = dev->mmu->translate(dev, addr,&paddr,&plen, is_write); >> >> I see you didn't take my suggestion for using an opaque callback pointer. >> Really and truly, I won't be able to use this a

[Qemu-devel] [PULL] collection of small VirtFS patches.

2011-06-01 Thread Venkateswararao Jujjuri
The following changes since commit 578c7b2ca8ee9e97fa8693b1a83d517e8e3f962e: Juha Riihim?ki (1): audio: fix integer overflow expression are available in the git repository at: git://repo.or.cz/qemu/aliguori/jvrao.git for-anthony Aneesh Kumar K.V (4): virtio-9p: Don't link to 9

Re: [Qemu-devel] [PATCH 05/18] ide: Turn debug messages into assertions

2011-06-01 Thread Luiz Capitulino
On Thu, 26 May 2011 18:12:08 -0300 Luiz Capitulino wrote: > On Thu, 19 May 2011 14:33:19 +0200 > Kevin Wolf wrote: > > > These printfs aren't really debug messages, but clearly indicate a bug if > > they > > ever become effective. > > Then we have a bug somewhere, starting a VM with: > > #

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

2011-06-01 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 v1][ 01/14] QError: Introduce qerror_format_desc()

2011-06-01 Thread Michael Roth
From: Luiz Capitulino Refactor non-QError-specific bits out of qerror_human() into general function that can be used by the error_get_pretty() analogue in the new error-propagation framework. Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth --- qerror.c | 44 ++

Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface

2011-06-01 Thread Richard Henderson
On 06/01/2011 08:35 AM, Eduard - Gabriel Munteanu wrote: > Maybe it's not nice, but you're missing the fact upcasting gives you > some type safety. With opaques you have none. Lol. Do you understand what container_of does? This is not dynamic_cast<> with RTTI. You can put any type name in there

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Paolo Bonzini
On 06/01/2011 04:36 PM, Michael S. Tsirkin wrote: Ah, I think I understand now. Both sense and data have in fields that might only be used partially? In that case I think I agree: it's best to require the use of separate buffers for them, in this way used len will give you useful information and

Re: [Qemu-devel] [PATCH] Fix libfdt warnings on Darwin

2011-06-01 Thread Andreas Färber
Am 28.05.2011 um 16:20 schrieb Alexander Graf: On 28.05.2011, at 16:16, Andreas Färber wrote: Am 28.05.2011 um 16:03 schrieb Alexander Graf: On 28.05.2011, at 16:01, Andreas Färber wrote: diff --git a/libfdt_env.h b/libfdt_env.h index ee0419f..90d7f3b 100644 --- a/libfdt_env.h +++ b/libfdt

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

2011-06-01 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] [PATCH v1][ 10/14] json-lexer: reset the lexer state on an invalid token

2011-06-01 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- json-lexer.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index fe5a060..a5bbe9e 100644 --- a/json-lexer.c +++ b/json-lexer.c @@ -305,6 +305,9 @@ static int json_lexer_feed_char(JSON

[Qemu-devel] [PATCH v1][ 02/14] QError: Introduce qerror_format()

2011-06-01 Thread Michael Roth
From: Luiz Capitulino Will be used by new error propagation framework to convert Error objects into human-readable form. Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth --- qerror.c | 15 +++ qerror.h |1 + 2 files changed, 16 insertions(+), 0 deletions(-) diff -

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

2011-06-01 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 05/18] ide: Turn debug messages into assertions

2011-06-01 Thread Markus Armbruster
Kevin Wolf writes: > Am 01.06.2011 15:44, schrieb Luiz Capitulino: >> On Thu, 26 May 2011 18:12:08 -0300 >> Luiz Capitulino wrote: >> >>> On Thu, 19 May 2011 14:33:19 +0200 >>> Kevin Wolf wrote: >>> These printfs aren't really debug messages, but clearly indicate a bug if they

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

2011-06-01 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 v3][ 5/7] guest agent: add guest agent RPCs/commands

2011-06-01 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 v1][ 02/21] qlist: add qlist_first()/qlist_next()

2011-06-01 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 v1][ 01/21] Add hard build dependency on glib

2011-06-01 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

Re: [Qemu-devel] [PATCH V2 1/3] Darwin: Fix incorrect check for fdatasync() in configure

2011-06-01 Thread Andreas Färber
Thanks, applied to the cocoa branch with a modified description. Am 30.05.2011 um 04:32 schrieb Alexandre Raymond: I didn't notice anything broken. I just stumbled upon this bug while reviewing the code. Alexandre On Sun, May 29, 2011 at 8:09 PM, Alexandre Raymond wrote: Sure, I'm fine wi

Re: [Qemu-devel] [PATCH] bdrv_img_create: Fix segfault

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 1:05 PM, Kevin Wolf wrote: > Block drivers that don't support creating images don't have a size option. > Fail > gracefully instead of segfaulting when trying to access the option's value. > > Signed-off-by: Kevin Wolf > --- >  block.c |    5 +++-- >  1 files changed, 3 in

Re: [Qemu-devel] [PATCH V2 2/3] Cocoa: avoid displaying window when command-line contains '-h' or '-help'

2011-06-01 Thread Andreas Färber
Am 30.05.2011 um 00:32 schrieb Peter Maydell: On 29 May 2011 23:22, Alexandre Raymond wrote: diff --git a/ui/cocoa.m b/ui/cocoa.m index 1ff1ac6..e1312d3 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -872,7 +872,8 @@ int main (int argc, const char * argv[]) { if (opt[1] == '-') {

Re: [Qemu-devel] [Qemu-trivial] [PATCH] Use SIGIO with caution

2011-06-01 Thread Stefan Hajnoczi
On Tue, May 31, 2011 at 08:47:25AM -0500, Anthony Liguori wrote: > On 05/29/2011 04:50 PM, Andreas Färber wrote: > >BeOS and Haiku don't define SIGIO. When undefined, it won't arrive > >and doesn't need to be blocked. > > > >Signed-off-by: Andreas Färber > > Anything to do with signal masks is nev

[Qemu-devel] [PATCH 2/5] QMP: add inject-nmi qmp command

2011-06-01 Thread Luiz Capitulino
From: Lai Jiangshan inject-nmi command injects an NMI on all CPUs of guest. It is only supported for x86 guest currently, it will returns "Unsupported" error for non-x86 guest. Signed-off-by: Luiz Capitulino --- monitor.c | 17 + qmp-commands.hx | 27 +

Re: [Qemu-devel] [PATCH V2 2/3] Cocoa: avoid displaying window when command-line contains '-h' or '-help'

2011-06-01 Thread Andreas Färber
Am 30.05.2011 um 00:22 schrieb Alexandre Raymond: There was already a check in place to avoid displaying a window in certain modes such as vnc, nographic or curses. Add a check for '-h' and '-help' to avoid displaying a window for a split- second before showing the usage information. Signed

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 10:42 PM, Vivek Goyal wrote: > On Wed, Jun 01, 2011 at 10:15:30PM +0100, Stefan Hajnoczi wrote: >> One issue that concerns me is how effective iops and throughput are as >> capping mechanisms.  If you cap throughput then you're likely to >> affect sequential I/O but do littl

[Qemu-devel] [PATCH 5/5] QMP: add server mode to QEMUMonitorProtocol

2011-06-01 Thread Luiz Capitulino
From: Stefan Hajnoczi QEMU supports socket chardevs that establish connections like a server or a client. The QEMUMonitorProtocol class only supports connecting as a client. It is not possible to connect race-free when launching QEMU since trying to connect before QEMU has bound and is listenin

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Yushu Yao
Hi Folks, Could anyone give me a 101 lesson on what is "two-pass PCI initialization"? I tried some time ago to pass a LSI megaraid to a rhel5 guest, but the initialization of the pci device inside the VM fails (because, I think, it was already initialized in the host). Just wondering could that

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Kevin O'Connor
On Wed, Jun 01, 2011 at 04:40:15PM +0200, Rudolf Marek wrote: > >Having a brief look at the coreboot code it seems static stuff (compiled by > >iasl) and dynamic bits are combined into the final dsdt table, is that > >correct? > > Yes the dsdt is static, it has just external references to ssdt >

Re: [Qemu-devel] [PATCH 2/3] ehci: Fix unused-but-set-variable warning

2011-06-01 Thread Christophe Fergeau
On Wed, Jun 01, 2011 at 09:53:46AM -0600, David Ahern wrote: > I think you want those to be ehci->pid instead of deleting them. Yeah, this is exactly what I was wondering while making this patch, but couldn't decide which one was supposed to be given my total lack of knowledge of USB and of this c

Re: [Qemu-devel] [PATCH 2/3] ehci: Fix unused-but-set-variable warning

2011-06-01 Thread David Ahern
On 06/01/2011 06:56 AM, Christophe Fergeau wrote: > @@ -1134,11 +1128,8 @@ static int ehci_process_itd(EHCIState *ehci, > > DPRINTF("ISOCH: buffer %08X len %d\n", ptr, len); > > -if (!dir) { > +if (!dir) > cpu_physical_memory_rw(ptr, &ehci->

[Qemu-devel] [PATCH 1/2] kvm: Add CPUID support for VIA CPU

2011-06-01 Thread Marcelo Tosatti
From: "brill...@viatech.com.cn" When KVM is running on VIA CPU with host cpu's model, the feautures of VIA CPU will be passed into kvm guest by calling the CPUID instruction for Centaur. Signed-off-by: BrillyWu Signed-off-by: KaryJin Signed-off-by: Marcelo Tosatti --- target-i386/cpu.h |

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

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 6636d2a..9049ff2 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 4/5] QMP: add get_events(wait=True) option

2011-06-01 Thread Luiz Capitulino
From: Stefan Hajnoczi The get_events() function polls for new QMP events and then returns. It can be useful to wait for the next QMP event so add the boolean 'wait' keyword argument. Signed-off-by: Stefan Hajnoczi Signed-off-by: Luiz Capitulino --- QMP/qmp.py | 11 --- 1 files chan

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

2011-06-01 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

Re: [Qemu-devel] VMDK development plan for Summer of Code 2011

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 10:13 AM, Alexander Graf wrote: > > On 01.06.2011, at 11:11, Kevin Wolf wrote: > >> Am 01.06.2011 10:49, schrieb Alexander Graf: >>> >>> On 01.06.2011, at 06:29, Stefan Hajnoczi wrote: >>> On Sun, May 29, 2011 at 2:19 PM, Fam Zheng wrote: > As a project of Google S

[Qemu-devel] [PATCH v1][ 21/21] qapi: add QAPI code generation documentation

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- docs/qapi-code-gen.txt | 315 1 files changed, 315 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 v1][ 09/21] qapi: add qapi-visit-core.h

2011-06-01 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.

Re: [Qemu-devel] [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-01 Thread Gerd Hoffmann
On 06/01/11 12:20, Rudolf Marek wrote: Sorry I forgot to include all addresses. I don't know how much work it would be to generate the DSDT dynamically from Qemu, but IMHO that's the sanest way to make things flexible. We could probably even extract most information from the Qdev tree. Well I

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

2011-06-01 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 ++

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

2011-06-01 Thread Anthony Liguori
On 06/01/2011 04:12 PM, Luiz Capitulino wrote: Hi there, There are people who want to use QMP for thin provisioning. That's, the VM is started with a small storage and when a no space error is triggered, more space is allocated and the VM is put to run again. QMP has two limitations that preven

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Vivek Goyal
On Wed, Jun 01, 2011 at 10:15:30PM +0100, Stefan Hajnoczi wrote: > On Wed, Jun 1, 2011 at 2:20 PM, Vivek Goyal wrote: > > On Tue, May 31, 2011 at 06:30:09PM -0500, Anthony Liguori wrote: > > > > [..] > >> The level of consistency will then depend on whether you overcommit > >> your hardware and ho

[Qemu-devel] [PATCH 2/2] kvm: Enable CPU SMEP feature

2011-06-01 Thread Marcelo Tosatti
From: "Yang, Wei Y" This patchset enables a new CPU feature SMEP (Supervisor Mode Execution Protection) in QEMU-KVM. SMEP prevents kernel from executing code in application. Updated Intel SDM describes this CPU feature. The document will be published soon. SMEP is identified by CPUID leaf 7 EB

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

2011-06-01 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

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 2:20 PM, Vivek Goyal wrote: > On Tue, May 31, 2011 at 06:30:09PM -0500, Anthony Liguori wrote: > > [..] >> The level of consistency will then depend on whether you overcommit >> your hardware and how you have it configured. > > Agreed. > >> >> Consistency is very hard becaus

Re: [Qemu-devel] [PATCH V2 3/3] Remove warning in printf due to type mismatch

2011-06-01 Thread Andreas Färber
Markus, Stefan, Am 30.05.2011 um 00:22 schrieb Alexandre Raymond: 8< qemu/target-lm32/translate.c: In function ‘gen_intermediate_code_internal’: qemu/target-lm32/translate.c:1135: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 4 has type ‘int’ 8< Both gen

[Qemu-devel] [PATCH v1][ 12/14] json-lexer: make lexer error-recovery more deterministic

2011-06-01 Thread Michael Roth
Currently when we reach an error state we effectively flush everything fed to the lexer, which can put us in a state where we keep feeding tokens into the parser at arbitrary offsets in the stream. This makes it difficult for the lexer/tokenizer/parser to get back in sync when bad input is made by

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

2011-06-01 Thread Luiz Capitulino
Hi there, There are people who want to use QMP for thin provisioning. That's, the VM is started with a small storage and when a no space error is triggered, more space is allocated and the VM is put to run again. QMP has two limitations that prevent people from doing this today: 1. The BLOCK_IO_

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Avi Kivity
On 06/01/2011 07:25 PM, Paolo Bonzini wrote: On 06/01/2011 03:46 PM, Avi Kivity wrote: Virtqueues 0:control transmitq 1:control receiveq 2:requestq Shouldn't we plan multiqueue for this from day 1? How would you do multiqueue? Just provide N queues, and the device can pla

Re: [Qemu-devel] virtio scsi host draft specification, v2

2011-06-01 Thread Paolo Bonzini
On 06/01/2011 03:46 PM, Avi Kivity wrote: Virtqueues 0:control transmitq 1:control receiveq 2:requestq Shouldn't we plan multiqueue for this from day 1? How would you do multiqueue? Just provide N queues, and the device can place requests for any LUN on any queue? If tha

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

2011-06-01 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 v3][ 2/7] guest agent: command state class

2011-06-01 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 v1][ 05/14] json-streamer: allow recovery after bad input

2011-06-01 Thread Michael Roth
From: Anthony Liguori Once we detect a malformed message, make sure to reset our state. Signed-off-by: Michael Roth --- json-streamer.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/json-streamer.c b/json-streamer.c index f7e7a68..549e9b7 100644 --- a/json-str

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

2011-06-01 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile | 13 + Makefile.objs |7 +++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index cf318c8..6636d2a 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,19 @@ check-qlist: check-qlist.o qlist.

[Qemu-devel] [QAPI+QGA 1/3] Error propagation and JSON parser fix-ups

2011-06-01 Thread Michael Roth
This is Set 1/3 of the QAPI+QGA patchsets. These patches apply on top of master (5-31), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set1-v1 (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 code ge

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

2011-06-01 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 v1][ 16/21] qapi: test schema used for unit tests

2011-06-01 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 v1][ 09/14] json-parser: detect premature EOI

2011-06-01 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- json-parser.c | 58 - 1 files changed, 57 insertions(+), 1 deletions(-) diff --git a/json-parser.c b/json-parser.c index ac4063a..58e973b 100644 --- a/json-parser.c +++ b/json-parse

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

2011-06-01 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[] = {

  1   2   >