[Qemu-devel] [PATCH] json-parser: don't replicate tokens at each level of recursion

2012-08-10 Thread Michael Roth
form of an indexable array so that we can save/restore state by manipulating indices. With this patch applied the above QMP/JSON request can be parsed in under a second. Tested with valgrind, make check, and QMP. Signed-off-by: Michael Roth ---

Re: [Qemu-devel] [PATCH] json-parser: don't replicate tokens at each level of recursion

2012-08-13 Thread Michael Roth
On Mon, Aug 13, 2012 at 03:01:56PM -0300, Luiz Capitulino wrote: > On Fri, 10 Aug 2012 18:24:10 -0500 > Michael Roth wrote: > > > Currently, when parsing a stream of tokens we make a copy of the token > > list at the beginning of each level of recursion so that we do not &g

Re: [Qemu-devel] [PATCH] json-parser: don't replicate tokens at each level of recursion

2012-08-13 Thread Michael Roth
On Mon, Aug 13, 2012 at 08:49:26PM +0200, Markus Armbruster wrote: > Michael Roth writes: > > > Currently, when parsing a stream of tokens we make a copy of the token > > list at the beginning of each level of recursion so that we do not > > modify the original list i

[Qemu-devel] Add infrastructure for supporting QIDL annotations

2012-08-14 Thread Michael Roth
These patches are based are origin/master, and can also be obtained from: git://github.com/mdroth/qemu.git qidl-base This is a cleanup of the infrastructure bits from "[RFC v2] Use QEMU IDL for device serialization/introspection". I know this is pretty late into the release cycle, but the patche

[Qemu-devel] [PATCH 11/20] qapi: qapi.py, make json parser more robust

2012-08-14 Thread Michael Roth
. Signed-off-by: Michael Roth --- scripts/qapi.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index a347203..47cd672 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -81,7 +81,7 @@ def parse_schema(fp): if line.startswith('#

[Qemu-devel] [PATCH 13/20] qom-fuse: workaround for truncated properties > 4096

2012-08-14 Thread Michael Roth
d()'s. Old Cache entries are evicted as soon as we attempt to read() from offset 0 again. Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- QMP/qom-fuse | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/QMP/qom-fuse b/QMP/qom-fus

[Qemu-devel] [PATCH 05/20] qapi: qapi_visit.py, support arrays and complex qapi definitions

2012-08-14 Thread Michael Roth
uninitialized elements. Add handling for these in the code generators as well. Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- scripts/qapi.py |8 -- scripts/qapi_commands.py |8 +++--- scripts/qapi_types.py|2 +- scripts/qapi_visit.py| 64

[Qemu-devel] [PATCH 04/20] qapi: qapi_visit.py, make code useable as module

2012-08-14 Thread Michael Roth
Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- scripts/qapi_visit.py | 143 + 1 file changed, 74 insertions(+), 69 deletions(-) diff --git a/scripts/qapi_visit.py b/scripts/qapi_visit.py index 04ef7c4..25707f5 100644 --- a/scripts

[Qemu-devel] [PATCH 17/20] qidl: parser, initial import from qc.git

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- scripts/qidl_parser.py | 512 1 file changed, 512 insertions(+) create mode 100644 scripts/qidl_parser.py diff --git a/scripts/qidl_parser.py b/scripts/qidl_parser.py new file mode 100644 index 000..831b3f5

[Qemu-devel] [PATCH 19/20] qidl: qidl.h, definitions for qidl annotations

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- qidl.h | 63 +++ 1 file changed, 63 insertions(+) create mode 100644 qidl.h diff --git a/qidl.h b/qidl.h new file mode 100644 index 000..210f4c6 --- /dev/null +++ b/qidl.h @@ -0,0 +1,63

[Qemu-devel] [PATCH 12/20] qapi: add open-coded visitor for struct tm types

2012-08-14 Thread Michael Roth
Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- qapi/Makefile.objs |1 + qapi/misc-qapi-visit.c | 14 ++ qapi/qapi-visit-core.h |3 +++ 3 files changed, 18 insertions(+) create mode 100644 qapi/misc-qapi-visit.c diff --git a/qapi/Makefile.objs b/qapi

[Qemu-devel] [PATCH 18/20] qidl: codegen, initial commit

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- scripts/qidl.py | 282 +++ 1 file changed, 282 insertions(+) create mode 100644 scripts/qidl.py diff --git a/scripts/qidl.py b/scripts/qidl.py new file mode 100644 index 000..71c89bc --- /dev/null +++ b

[Qemu-devel] [PATCH 07/20] qapi: qapi_visit.py, support generating static functions

2012-08-14 Thread Michael Roth
qidl embeds visitor code into object files rather than linking against seperate files, so allow for static declarations when we're using qapi_visit.py as a library as we do with qidl.py Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- scripts/qapi_visit.py |

[Qemu-devel] [PATCH 20/20] qidl: unit tests

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile |2 + rules.mak | 15 +++- tests/Makefile |8 +- tests/test-qidl-included.h | 31 tests/test-qidl-linked.c | 91 +++ tests/test-qidl-linked.h | 18

[Qemu-devel] [PATCH 10/20] qapi: QmpInputVisitor, implement array handling

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qmp-input-visitor.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/qapi/qmp-input-visitor.c b/qapi/qmp-input-visitor.c index 107d8d3..c4388f3 100644 --- a/qapi/qmp-input-visitor.c +++ b/qapi/qmp-input

[Qemu-devel] [PATCH 16/20] qidl: Add documentation

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- docs/qidl.txt | 343 + 1 file changed, 343 insertions(+) create mode 100644 docs/qidl.txt diff --git a/docs/qidl.txt b/docs/qidl.txt new file mode 100644 index 000..19976d9 --- /dev/null +++ b/docs

[Qemu-devel] [PATCH 01/20] qapi: qapi-visit.py -> qapi_visit.py so we can import

2012-08-14 Thread Michael Roth
Python doesn't allow "-" in module names, so we need to rename the file so we can re-use bits of the codegen Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- Makefile |8 scripts/{qapi-visit.py => qapi_visit.py} |

[Qemu-devel] [PATCH 08/20] qapi: qapi_visit.py, support for visiting non-pointer/embedded structs

2012-08-14 Thread Michael Roth
Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- scripts/qapi_visit.py |9 + 1 file changed, 9 insertions(+) diff --git a/scripts/qapi_visit.py b/scripts/qapi_visit.py index d146013..ab44f11 100644 --- a/scripts/qapi_visit.py +++ b/scripts/qapi_visit.py @@ -107,6

[Qemu-devel] [PATCH 02/20] qapi: qapi-types.py -> qapi_types.py

2012-08-14 Thread Michael Roth
Python doesn't allow "-" in module names, so we need to rename the file so we can re-use bits of the codegen Signed-off-by: Michael Roth --- Makefile |8 scripts/{qapi-types.py => qapi_types.py} |0 tests/Makefile

[Qemu-devel] [PATCH 03/20] qapi: qapi-commands.py -> qapi_commands.py

2012-08-14 Thread Michael Roth
Python doesn't allow "-" in module names, so we need to rename the file so we can re-use bits of the codegen. Signed-off-by: Michael Roth --- Makefile |8 scripts/{qapi-commands.py => qapi_commands.py} |

[Qemu-devel] [PATCH 14/20] module additions for schema registration

2012-08-14 Thread Michael Roth
Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth --- module.h |2 ++ vl.c |1 + 2 files changed, 3 insertions(+) diff --git a/module.h b/module.h index c4ccd57..cb81aa2 100644 --- a/module.h +++ b/module.h @@ -25,6 +25,7 @@ typedef enum { MODULE_INIT_MACHINE

[Qemu-devel] [PATCH 15/20] qdev: move Property-related declarations to qdev-properties.h

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/qdev-properties.h | 151 ++ hw/qdev.h| 126 + 2 files changed, 152 insertions(+), 125 deletions(-) create mode 100644 hw/qdev-properties.h diff --git a/hw

[Qemu-devel] [PATCH 06/20] qapi: add visitor interfaces for C arrays

2012-08-14 Thread Michael Roth
Generally these will be serialized into lists, but the representation can be of any form so long as it can be deserialized into a single-dimension C array. Signed-off-by: Michael Roth --- qapi/qapi-visit-core.c | 25 + qapi/qapi-visit-core.h |8 2 files

[Qemu-devel] [PATCH 09/20] qapi: QmpOutputVisitor, implement array handling

2012-08-14 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qmp-output-visitor.c | 20 1 file changed, 20 insertions(+) diff --git a/qapi/qmp-output-visitor.c b/qapi/qmp-output-visitor.c index 2bce9d5..ea08795 100644 --- a/qapi/qmp-output-visitor.c +++ b/qapi/qmp-output-visitor.c @@ -181,6

Re: [Qemu-devel] [PATCH 16/20] qidl: Add documentation

2012-08-14 Thread Michael Roth
On Tue, Aug 14, 2012 at 08:41:56PM +0100, Peter Maydell wrote: > On 14 August 2012 17:27, Michael Roth wrote: > > > > Signed-off-by: Michael Roth > > --- > > docs/qidl.txt | 343 > > + > > 1 file

Re: [Qemu-devel] [PATCH] json-parser: don't replicate tokens at each level of recursion

2012-08-15 Thread Michael Roth
On Mon, Aug 13, 2012 at 09:25:44PM -0500, Michael Roth wrote: > On Mon, Aug 13, 2012 at 03:01:56PM -0300, Luiz Capitulino wrote: > > On Fri, 10 Aug 2012 18:24:10 -0500 > > Michael Roth wrote: > > > > > +qlist_iter(tokens, tokens_count_from_iter, &

[Qemu-devel] [PATCH for-1.2 v2 1/3] qlist: add qlist_size()

2012-08-15 Thread Michael Roth
Signed-off-by: Michael Roth --- qlist.c | 13 + qlist.h |1 + 2 files changed, 14 insertions(+) diff --git a/qlist.c b/qlist.c index 88498b1..b48ec5b 100644 --- a/qlist.c +++ b/qlist.c @@ -124,6 +124,19 @@ int qlist_empty(const QList *qlist) return QTAILQ_EMPTY(&q

[Qemu-devel] [PATCH for-1.2 v2 2/3] json-parser: don't replicate tokens at each level of recursion

2012-08-15 Thread Michael Roth
vior as above. With this patch applied the test case successfully completes in under a second. Tested with valgrind, make check, and QMP. Signed-off-by: Michael Roth --- json-parser.c | 229 +++-- 1 file changed, 141 insertions(+), 88 d

[Qemu-devel] [PATCH for-1.2 v2 3/3] check-qjson: add test for large JSON objects

2012-08-15 Thread Michael Roth
Signed-off-by: Michael Roth --- tests/check-qjson.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/tests/check-qjson.c b/tests/check-qjson.c index 526e25e..ef9b529 100644 --- a/tests/check-qjson.c +++ b/tests/check-qjson.c @@ -690,6

Re: [Qemu-devel] [PATCH for-1.2 v2 2/3] json-parser: don't replicate tokens at each level of recursion

2012-08-15 Thread Michael Roth
On Wed, Aug 15, 2012 at 12:09:09PM -0600, Eric Blake wrote: > On 08/15/2012 11:56 AM, Michael Roth wrote: > > Currently, when parsing a stream of tokens we make a copy of the token > > list at the beginning of each level of recursion so that we do not > > modify the original l

[Qemu-devel] [PATCH for-1.2 v3 1/3] qlist: add qlist_size()

2012-08-15 Thread Michael Roth
Signed-off-by: Michael Roth --- qlist.c | 13 + qlist.h |1 + 2 files changed, 14 insertions(+) diff --git a/qlist.c b/qlist.c index 88498b1..b48ec5b 100644 --- a/qlist.c +++ b/qlist.c @@ -124,6 +124,19 @@ int qlist_empty(const QList *qlist) return QTAILQ_EMPTY(&q

[Qemu-devel] [PATCH for-1.2 v3 3/3] check-qjson: add test for large JSON objects

2012-08-15 Thread Michael Roth
Signed-off-by: Michael Roth --- tests/check-qjson.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/tests/check-qjson.c b/tests/check-qjson.c index 526e25e..3b896f5 100644 --- a/tests/check-qjson.c +++ b/tests/check-qjson.c @@ -466,6

[Qemu-devel] [PATCH for-1.2 v3 2/3] json-parser: don't replicate tokens at each level of recursion

2012-08-15 Thread Michael Roth
vior as above. With this patch applied the test case successfully completes in under a second. Tested with valgrind, make check, and QMP. Signed-off-by: Michael Roth --- json-parser.c | 230 +++-- 1 file changed, 142 insertions(+), 88 d

Re: [Qemu-devel] [PATCH for-1.2 v3 1/3] qlist: add qlist_size()

2012-08-15 Thread Michael Roth
On Wed, Aug 15, 2012 at 01:52:33PM -0600, Eric Blake wrote: > On 08/15/2012 12:45 PM, Michael Roth wrote: > > Signed-off-by: Michael Roth > > --- > > qlist.c | 13 + > > qlist.h |1 + > > 2 files changed, 14 insertions(+) > > No cover-l

Re: [Qemu-devel] [PATCH for-1.2 v3 2/3] json-parser: don't replicate tokens at each level of recursion

2012-08-15 Thread Michael Roth
On Wed, Aug 15, 2012 at 02:04:52PM -0600, Eric Blake wrote: > On 08/15/2012 12:45 PM, Michael Roth wrote: > > Currently, when parsing a stream of tokens we make a copy of the token > > list at the beginning of each level of recursion so that we do not > > modify the original l

Re: [Qemu-devel] [PATCH for-1.2 v3 2/3] json-parser: don't replicate tokens at each level of recursion

2012-08-16 Thread Michael Roth
On Thu, Aug 16, 2012 at 11:11:26AM -0300, Luiz Capitulino wrote: > On Wed, 15 Aug 2012 13:45:43 -0500 > Michael Roth wrote: > > > Currently, when parsing a stream of tokens we make a copy of the token > > list at the beginning of each level of recursion so that we do not &g

Re: [Qemu-devel] [PATCH for-1.2 v3 1/3] qlist: add qlist_size()

2012-08-16 Thread Michael Roth
On Thu, Aug 16, 2012 at 10:40:05AM -0300, Luiz Capitulino wrote: > On Wed, 15 Aug 2012 13:45:42 -0500 > Michael Roth wrote: > > > > > Signed-off-by: Michael Roth > > I've applied this series to the qmp branch for 1.2. I'll run some tests and if > a

Re: [Qemu-devel] qemu-ga : Guest Agent : Windows 2008 : Unknown command guest-fsfreeze-freeze

2012-08-20 Thread Michael Roth
On Mon, Aug 20, 2012 at 10:54:29AM -0300, Luiz Capitulino wrote: > On Fri, 17 Aug 2012 10:11:29 -0700 (PDT) > desi babu wrote: > > > Guest-Agent : Windows 2008 Error : Relase 1.1.90 > > > > error : internal error unable to execute QEMU command > > 'guest-fsfreeze-freeze': this feature or comman

Re: [Qemu-devel] [Bug 1038070] [NEW] > qemu-kvm-1.1.1-r1 - USB activkey doesn't work anymore

2012-08-20 Thread Michael Roth
On Fri, Aug 17, 2012 at 12:50:14PM -, linuxale wrote: > Public bug reported: > > Linux Distro: Gentoo > > Smartcard Activkey doesn't work anymore. I use it without problem till version > qemu-kvm-1.0.1. > > Follow a log extraction: > 2012-08-14 16:27:34.751+: 5487: error : qemuProcessRea

Re: [Qemu-devel] [PATCH for-1.2 v3] qemu-ga: report success-response field in guest-info

2012-08-21 Thread Michael Roth
On Tue, Aug 21, 2012 at 02:39:35PM +0200, Michal Privoznik wrote: > This is a useful hint for users (or libvirt) whether a command returns > anything success and hence wait for reply or not. I'm not necessarilly against this patch, but I think we should clarify it's purpose. Commands that don't r

[Qemu-devel] [PATCH for-1.2] libcacard: Fix segfault when no backend specified

2012-08-21 Thread Michael Roth
... unknown backend, must be one of: nss-emulated certificates qemu-system-x86_64: -device ccid-card-emulated,id=smartcard0,backend=nss-certificates: Device 'ccid-card-emulated' could not be initialized Signed-off-by: Michael Roth --- hw/ccid-card-emulated.c |3 +++ 1 file changed,

[Qemu-devel] [PATCH 16/23] check-qjson: add test for large JSON objects

2012-08-21 Thread Michael Roth
Signed-off-by: Michael Roth Signed-off-by: Anthony Liguori (cherry picked from commit 7109edfeb69c1d3c2164175837784dfcd210fed0) Signed-off-by: Michael Roth --- tests/check-qjson.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/tests

[Qemu-devel] [PATCH 02/23] configure: Don't override user's --cpu on MacOS and Solaris

2012-08-21 Thread Michael Roth
didn't specify a CPU with --cpu. This fixes a bug where the user's command line argument was being ignored. Reviewed-by: Andreas F=E4rber Signed-off-by: Peter Maydell Signed-off-by: Anthony Liguori (cherry picked from commit bbea4050802a2e7e0296a21823c0925782c02b93) Signed-off-by: Mi

[Qemu-devel] [PATCH 23/23] update VERSION for 1.1.2

2012-08-21 Thread Michael Roth
Signed-off-by: Michael Roth --- VERSION |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 524cb55..45a1b3f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.1 +1.1.2 -- 1.7.9.5

[Qemu-devel] [PATCH 15/23] json-parser: don't replicate tokens at each level of recursion

2012-08-21 Thread Michael Roth
vior as above. With this patch applied the test case successfully completes in under a second. Tested with valgrind, make check, and QMP. Reviewed-by: Eric Blake Signed-off-by: Michael Roth Signed-off-by: Anthony Liguori (cherry picked from commit 65c0f1e9558c7c762cdb333406243fff1d687117

[Qemu-devel] [PATCH 06/23] qdev: fix use-after-free in the error path of qdev_init_nofail

2012-08-21 Thread Michael Roth
It worked :-) Cc: Andreas Faerber Reported-by: Markus Armbruster Signed-off-by: Anthony Liguori (cherry picked from commit 7de3abe505e34398cef5bddf6c4d0bd9ee47007f) Signed-off-by: Michael Roth --- hw/qdev.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/qdev.c b

[Qemu-devel] [PATCH 05/23] kvmvapic: Disable if there is insufficient memory

2012-08-21 Thread Michael Roth
Signed-off-by: Marcelo Tosatti (cherry picked from commit a9605e0317c7a6d5e68f3a3b6708c8ef1096f4bc) Signed-off-by: Michael Roth --- hw/apic_common.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/apic_common.c b/hw/apic_common.c index 60b8259..e4612bb 100644 --- a

[Qemu-devel] [PATCH 01/23] qtest: fix infinite loop when QEMU aborts abruptly

2012-08-21 Thread Michael Roth
ri (cherry picked from commit 039380a8e18f618cdacf72486449c04dc1b70eef) Signed-off-by: Michael Roth --- tests/libqtest.c |5 + 1 file changed, 5 insertions(+) diff --git a/tests/libqtest.c b/tests/libqtest.c index 6d333ef..0664323 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c

[Qemu-devel] [PATCH 22/23] apic: Defer interrupt updates to VCPU thread

2012-08-21 Thread Michael Roth
ff-by: Jan Kiszka Signed-off-by: Avi Kivity (cherry picked from commit 5d62c43a17edaa7f6a88821c9086e6c8e0e5327d) Signed-off-by: Michael Roth --- cpu-exec.c |6 ++ hw/apic.c |5 - hw/apic.h |1 + hw/apic_internal.h |1 - target-i386/cpu.h |

[Qemu-devel] [PATCH 14/23] qlist: add qlist_size()

2012-08-21 Thread Michael Roth
Signed-off-by: Michael Roth Reviewed-by: Eric Blake Signed-off-by: Michael Roth Signed-off-by: Anthony Liguori (cherry picked from commit a86a4c2f7b7f0b72816ea1c219d8140699b6665b) Signed-off-by: Michael Roth --- qlist.c | 13 + qlist.h |1 + 2 files changed, 14 insertions

[Qemu-devel] [PATCH 11/23] usb: restore USBDevice->attached on vmload

2012-08-21 Thread Michael Roth
From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann (cherry picked from commit 495d544798151206bafca65ec588c0388637eb40) Signed-off-by: Michael Roth --- hw/usb/bus.c | 13 + 1 file changed, 13 insertions(+) diff --git a/hw/usb/bus.c b/hw/usb/bus.c index 2068640..77b2b99 100644

[Qemu-devel] [PATCH 09/23] ehci: don't flush cache on doorbell rings.

2012-08-21 Thread Michael Roth
tch the cached content before reusing it. Cc: Hans de Goede Signed-off-by: Gerd Hoffmann (cherry picked from commit 9bc3a3a216e2689bfcdd36c3e079333bbdbf3ba0) Conflicts: hw/usb/hcd-ehci.c Signed-off-by: Michael Roth --- hw/usb/hcd-ehci.c | 34 -- 1 fil

[Qemu-devel] [PATCH 18/23] slirp: Ensure smbd and shared directory exist when enable smb

2012-08-21 Thread Michael Roth
ned-off-by: Jan Kiszka (cherry picked from commit 927d811b282ffdf5386bd63f435c1507634ba49a) Signed-off-by: Michael Roth --- net/slirp.c | 12 1 file changed, 12 insertions(+) diff --git a/net/slirp.c b/net/slirp.c index c73610e..d3fcbf4 100644 --- a/net/slirp.c +++ b/net/sl

[Qemu-devel] [PATCH 04/23] s390: Fix error handling and condition code of service call

2012-08-21 Thread Michael Roth
n code values. Signed-off-by: Christian Borntraeger Signed-off-by: Alexander Graf (cherry picked from commit 9abf567d95a4e840df868ca993219175fbef8c22) Signed-off-by: Michael Roth --- target-s390x/kvm.c |5 +++-- target-s390x/op_helper.c | 27 ++- 2 files c

[Qemu-devel] [PATCH 03/23] ppc: Fix bug in handling of PAPR hypercall exits

2012-08-21 Thread Michael Roth
a small optimization. Signed-off-by: David Gibson Signed-off-by: Alexander Graf (cherry picked from commit 78e8fde26c032931ca2ae13bfc7c59e38afd17ee) Signed-off-by: Michael Roth --- target-ppc/kvm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/kvm.c b/target-ppc

[Qemu-devel] [PATCH 07/23] virtio-blk: fix use-after-free while handling scsi commands

2012-08-21 Thread Michael Roth
Signed-off-by: Kevin Wolf (cherry picked from commit 730a9c53b4e52681fcfe31cf38854cbf91e132c7) Signed-off-by: Michael Roth --- hw/virtio-blk.c |1 + 1 file changed, 1 insertion(+) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index fe07746..f44d244 100644 --- a/hw/virtio-blk.c +++ b/hw

[Qemu-devel] [PATCH 21/23] apic: Reevaluate pending interrupts on LVT_LINT0 changes

2012-08-21 Thread Michael Roth
From: Jan Kiszka When the guest modifies the LVT_LINT0 register, we need to check if some pending PIC interrupt can now be delivered. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity (cherry picked from commit a94820ddc36f8c452b37f9dcb323f55ffdbc75f9) Signed-off-by: Michael Roth --- hw

[Qemu-devel] [PATCH 20/23] apic: Resolve potential endless loop around apic_update_irq

2012-08-21 Thread Michael Roth
from commit 3db3659bf60094657e1465cc809acb09551816ee) Signed-off-by: Michael Roth --- hw/apic.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 4eeaf88..ec8f9ba 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -371,9 +371,6 @@ static void apic_update_irq(APICCo

[Qemu-devel] [PATCH 13/23] usb-ehci: Fix an assert whenever isoc transfers are used

2012-08-21 Thread Michael Roth
-off-by: Gerd Hoffmann (cherry picked from commit 7341ea075c09258b98a1d0efc60efd402cbfc9b4) Signed-off-by: Michael Roth --- hw/usb/hcd-ehci.c |1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index ce8b405..41c9d84 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw

[Qemu-devel] [PATCH 19/23] slirp: Improve error reporting of inaccessible smb directories

2012-08-21 Thread Michael Roth
From: Jan Kiszka Instead of guessing, print the error code returned by access. Signed-off-by: Jan Kiszka (cherry picked from commit 22a61f365df83d5d7884cceb1c462295977cb2db) Signed-off-by: Michael Roth --- net/slirp.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH 12/23] usb-redir: Correctly handle the usb_redir_babble usbredir status

2012-08-21 Thread Michael Roth
From: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffmann (cherry picked from commit adae502c0ae4572ef08f71cb5b5ed5a8e90299fe) Signed-off-by: Michael Roth --- hw/usb/redirect.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c

[Qemu-devel] [PATCH 17/23] slirp: Enforce host-side user of smb share

2012-08-21 Thread Michael Roth
(cherry picked from commit 1cb1c5d10bb9e180bd3f7be2c10b212ed86a97b4) Signed-off-by: Michael Roth --- net/slirp.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/net/slirp.c b/net/slirp.c index 96f5032..c73610e 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -26,6

[Qemu-devel] [PATCH 10/23] uhci: fix uhci_async_cancel_all

2012-08-21 Thread Michael Roth
ommit 77fa9aee38758a078870e25f0dcf642066b4d5cc) Signed-off-by: Michael Roth --- hw/usb/hcd-uhci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 9e211a0..3803f52 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -288,10 +288,10 @@ static

[Qemu-devel] [stable-1.1] Patch Round-up for stable 1.1.2

2012-08-21 Thread Michael Roth
b directories apic: Resolve potential endless loop around apic_update_irq apic: Reevaluate pending interrupts on LVT_LINT0 changes apic: Defer interrupt updates to VCPU thread Michael Roth (4): qlist: add qlist_size() json-parser: don't replicate tokens at each level of recur

[Qemu-devel] [PATCH 08/23] ehci: fix reset

2012-08-21 Thread Michael Roth
From: Gerd Hoffmann Check for the reset bit first when processing USBCMD register writes. Also break out of the switch, there is no need to check the other bits. Signed-off-by: Gerd Hoffmann (cherry picked from commit 7046530c36fa3a3f87692bdb54556f5d891a9c03) Signed-off-by: Michael Roth

Re: [Qemu-devel] [PATCH] Add guest-get-hostname to retrieve the guests current hostname

2012-08-23 Thread Michael Roth
On Thu, Aug 23, 2012 at 09:48:54AM -0300, Luiz Capitulino wrote: > On Tue, 21 Aug 2012 13:57:54 +0200 > Guido Günther wrote: > > > This allows to retrieve the guest's hostname via gethostname(2). > > > > This can be useful to identify a VM e.g. one without network. > > > > Signed-off-by: Guido

Re: [Qemu-devel] [PATCH 1/7] qemu-ga: move channel/transport functionality into wrapper class

2012-01-23 Thread Michael Roth
On 01/23/2012 02:24 PM, Anthony Liguori wrote: On 01/23/2012 08:21 AM, Michael Roth wrote: This is monstly in preparation for the win32 port, which won't use GIO channels for reasons that will be made clearer later. Here the GAChannel class is just a loose wrapper around GIOChannel

[Qemu-devel] [PULL 0/6] qemu-ga queue and qemu-tool fixes

2012-01-25 Thread Michael Roth
g (2012-01-23 11:00:26 -0600) are available in the git repository at: git://github.com/mdroth/qemu.git qga-pull-2012-01-23 Luiz Capitulino (2): qemu-ga: set O_NONBLOCK for serial channels qemu-ga: Add the guest-suspend command Michael Roth (4): main-loop: Fix Set

[Qemu-devel] [PATCH 1/6] main-loop: Fix SetEvent() on uninitialized handle on win32

2012-01-25 Thread Michael Roth
ols.o programs on Windows at runtime. This patch checks for an initialized event handle before attempting to set it, which is analoguous to how we deal with an unitialized io_thread_fd in the posix implementation. Signed-off-by: Michael Roth --- main-loop.c |5 - 1 files changed, 4 insertions(

[Qemu-devel] [PATCH 5/6] qemu-ga: set O_NONBLOCK for serial channels

2012-01-25 Thread Michael Roth
From: Luiz Capitulino This fixes a bug when using -m isa-serial where qemu-ga will hang on a read()'s when communicating to the host via isa-serial. Original fix by Michael Roth. Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth --- qemu-ga.c |2 +- 1 files chang

[Qemu-devel] [PATCH 6/6] qemu-ga: Add the guest-suspend command

2012-01-25 Thread Michael Roth
Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth --- qapi-schema-guest.json | 32 ++ qemu-ga.c | 18 - qga/guest-agent-commands.c | 226 3 files changed, 275 insertions(+), 1 deletions(-) diff --git a/qapi-sch

[Qemu-devel] [PATCH 3/6] qemu-ga: Add schema documentation for types

2012-01-25 Thread Michael Roth
Document guest agent schema types in similar fashion as qmp schema types. Signed-off-by: Michael Roth --- qapi-schema-guest.json | 118 +++- 1 files changed, 97 insertions(+), 21 deletions(-) diff --git a/qapi-schema-guest.json b/qapi-schema

[Qemu-devel] [PATCH 4/6] qemu-ga: add guest-set-support-level command

2012-01-25 Thread Michael Roth
he client. The current default/minimum support level supports all versions of QEMU that have had qemu-ga in-tree (0.15.0, 1.0.0) and so should be backward-compatible with existing hosts/clients. Signed-off-by: Michael Roth --- qapi-schema-guest.json | 67 +++

[Qemu-devel] [PATCH 2/6] main-loop: For tools, initialize timers as part of qemu_init_main_loop()

2012-01-25 Thread Michael Roth
lities, so existing users shouldn't be affected. Signed-off-by: Michael Roth --- main-loop.c |2 +- main-loop.h | 12 qemu-tool.c |3 ++- vl.c|5 + 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/main-loop.c b/main-loop.c index 62d9

Re: [Qemu-devel] [libvirt] [PATCH RFC 0/4] Allow hibernation on guests

2012-01-26 Thread Michael Roth
On 01/26/2012 02:13 PM, Luiz Capitulino wrote: On Thu, 26 Jan 2012 20:41:13 +0100 Michal Privoznik wrote: On 26.01.2012 20:35, Luiz Capitulino wrote: On Thu, 26 Jan 2012 08:18:03 -0700 Eric Blake wrote: [adding qemu-devel] On 01/26/2012 07:46 AM, Daniel P. Berrange wrote: One thing, that

Re: [Qemu-devel] [libvirt] [PATCH RFC 0/4] Allow hibernation on guests

2012-01-26 Thread Michael Roth
On 01/26/2012 09:18 AM, Eric Blake wrote: [adding qemu-devel] On 01/26/2012 07:46 AM, Daniel P. Berrange wrote: One thing, that you'll probably notice is this 'set-support-level' command. Basically, it tells GA what qemu version is it running on. Ideally, this should be done as soon as GA start

[Qemu-devel] [PATCH v2] main-loop: Fix SetEvent() on uninitialized handle on win32

2012-01-27 Thread Michael Roth
ols.o programs on Windows at runtime. This patch checks for an initialized event handle before attempting to set it, which is analoguous to how we deal with an unitialized io_thread_fd in the posix implementation. Signed-off-by: Michael Roth --- main-loop.c |3 +++ 1 files changed, 3 insertions(

Re: [Qemu-devel] [libvirt] [PATCH RFC 0/4] Allow hibernation on guests

2012-01-30 Thread Michael Roth
On 01/30/2012 06:57 AM, Luiz Capitulino wrote: On Thu, 26 Jan 2012 16:57:01 -0600 Anthony Liguori wrote: On 01/26/2012 01:35 PM, Luiz Capitulino wrote: On Thu, 26 Jan 2012 08:18:03 -0700 Eric Blake wrote: [adding qemu-devel] On 01/26/2012 07:46 AM, Daniel P. Berrange wrote: One thing, t

Re: [Qemu-devel] [libvirt] [PATCH RFC 0/4] Allow hibernation on guests

2012-01-30 Thread Michael Roth
On 01/30/2012 08:44 AM, Luiz Capitulino wrote: On Mon, 30 Jan 2012 07:54:56 -0600 Anthony Liguori wrote: On 01/30/2012 06:57 AM, Luiz Capitulino wrote: On Thu, 26 Jan 2012 16:57:01 -0600 Anthony Liguori wrote: On 01/26/2012 01:35 PM, Luiz Capitulino wrote: On Thu, 26 Jan 2012 08:18:03 -0

Re: [Qemu-devel] [libvirt] [PATCH RFC 0/4] Allow hibernation on guests

2012-01-30 Thread Michael Roth
On 01/30/2012 09:58 AM, Eric Blake wrote: On 01/30/2012 07:44 AM, Luiz Capitulino wrote: I think we should do the following then: 1. Drop the set-support-level command 2. Split the guest-suspend command into guest-suspend-ram, guest-suspend-hybrid, guest-suspend-disk 3. Libvirt shou

Re: [Qemu-devel] [RFC Patch 3/7]Qemu: Cmd "block_set_hostcache" for dynamic cache change

2012-02-01 Thread Michael Roth
On 01/31/2012 09:06 PM, Supriya Kannery wrote: New command "block_set_hostcache" added for dynamically changing host pagecache setting of a block device. Usage: block_set_hostcache = block device = on/off Example: (qemu) block_set_hostcache ide0-hd0 off Signed-off-by: Supriya

Re: [Qemu-devel] [RFC Patch 5/7]Qemu: raw-posix image file reopen

2012-02-01 Thread Michael Roth
On 01/31/2012 09:07 PM, Supriya Kannery wrote: raw-posix driver changes for bdrv_reopen_xx functions to safely reopen image files. Reopening of image files while changing hostcache dynamically is handled here. Signed-off-by: Supriya Kannery Index: qemu/block/raw.c ==

[Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-02 Thread Michael Roth
These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git qga-win32-v2 Luiz/Gal, I decided not to roll the suspend/hibernate stuff into this series since the s3 situation isn't fully sorted out yet. The file structure is a little different now,

[Qemu-devel] [PATCH v2 2/8] qemu-ga: move channel/transport functionality into wrapper class

2012-02-02 Thread Michael Roth
pid files, which weren't always cleaned up previously. Signed-off-by: Michael Roth --- Makefile.objs |1 + qemu-ga.c | 306 qga/channel-posix.c| 246 ++ qga/channel.h

[Qemu-devel] [PATCH v2 1/8] qemu-ga: Add schema documentation for types

2012-02-02 Thread Michael Roth
Document guest agent schema types in similar fashion as qmp schema types. Signed-off-by: Michael Roth --- qapi-schema-guest.json | 118 +++- 1 files changed, 97 insertions(+), 21 deletions(-) diff --git a/qapi-schema-guest.json b/qapi-schema

[Qemu-devel] [PATCH v2 8/8] qemu-ga: add win32 guest-shutdown command

2012-02-02 Thread Michael Roth
Implement guest-shutdown RPC for Windows. Functionally this should be equivalent to the posix implementation. Original patch by Gal Hammer Signed-off-by: Michael Roth --- qga/commands-win32.c | 41 - 1 files changed, 40 insertions(+), 1 deletions

[Qemu-devel] [PATCH v2 3/8] qemu-ga: separate out common commands from posix-specific ones

2012-02-02 Thread Michael Roth
latter, and will rename guest-agent-commands.c to commands-posix.c in a future commit. Windows implementations will go in commands-win32.c, eventually. Signed-off-by: Michael Roth --- Makefile.objs |2 +- qga/commands.c | 73

[Qemu-devel] [PATCH v2 6/8] qemu-ga: add initial win32 support

2012-02-02 Thread Michael Roth
ts asynchronous/overlapped I/O to fill an GAChannel-managed read buffer, and tells glib to poll the corresponding event handle for a completion whenever there is no data/RPC in the read buffer to notify the main application about. Signed-off-by: Michael Roth --- Makefile.objs |2 +- qemu-ga.c

[Qemu-devel] [PATCH v2 4/8] qemu-ga: rename guest-agent-commands.c -> commands-posix.c

2012-02-02 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile.objs |2 +- qga/commands-posix.c | 528 qga/guest-agent-commands.c | 528 3 files changed, 529 insertions(+), 529 deletions(-) create mode

[Qemu-devel] [PATCH v2 7/8] qemu-ga: add Windows service integration

2012-02-02 Thread Michael Roth
Original patch by Gal Hammer Signed-off-by: Michael Roth --- Makefile.objs |2 +- qemu-ga.c | 103 -- qga/service-win32.c | 114 +++ qga/service-win32.h | 30 + 4 files

[Qemu-devel] [PATCH v2 5/8] qemu-ga: fixes for win32 build of qemu-ga

2012-02-02 Thread Michael Roth
Various stubs and #ifdefs to compile for Windows using mingw cross-build. Still has 1 linker error due to a dependency on the forthcoming win32 versions of the GAChannel/transport class. Signed-off-by: Michael Roth --- Makefile |2 +- Makefile.objs|9 +++-- configure

Re: [Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-03 Thread Michael Roth
On 02/03/2012 08:18 AM, Luiz Capitulino wrote: On Thu, 2 Feb 2012 13:58:52 -0600 Michael Roth wrote: These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git qga-win32-v2 Luiz/Gal, I decided not to roll the suspend/hibernate stuff into

Re: [Qemu-devel] [PATCH v2 2/8] qemu-ga: move channel/transport functionalit

2012-02-03 Thread Michael Roth
On 02/02/2012 10:25 PM, MATSUDA, Daiki wrote: Hi, Michael! Thank you for your working. And I have a question the process id written in pid file. If qemu-ga is ran as daemon, the parent process id not child is written in pid file. So, id gotten by 'ps' command is different. Is it correct work? Ma

Re: [Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-03 Thread Michael Roth
On 02/03/2012 10:45 AM, Luiz Capitulino wrote: On Fri, 03 Feb 2012 10:37:25 -0600 Michael Roth wrote: On 02/03/2012 08:18 AM, Luiz Capitulino wrote: On Thu, 2 Feb 2012 13:58:52 -0600 Michael Roth wrote: These patches apply on top of qemu.git master, and can also be obtained from: git

[Qemu-devel] [PATCH 0/1] qemu-ga: add guest-sync-delimited

2012-02-06 Thread Michael Roth
Sorry for the somewhat redundant cover letter, but needed to note that: This applies on top of "[PATCH v2 0/8] qemu-ga: add support for Windows", and can also be obtained from: git://github.com/mdroth/qemu.git qga-guest-sync-delimited As noted in the commit there's a wiki write-up with more detai

[Qemu-devel] [PATCH] qemu-ga: add guest-sync-delimited

2012-02-06 Thread Michael Roth
the wiki: http://wiki.qemu.org/Features/QAPI/GuestAgent#QEMU_Guest_Agent_Protocol Signed-off-by: Michael Roth --- qapi-schema-guest.json | 42 +- qemu-ga.c | 29 +++-- qga/commands-posix.c |3 ---

Re: [Qemu-devel] [PATCH 0/1] qemu-ga: add guest-sync-delimited

2012-02-06 Thread Michael Roth
On Mon, Feb 06, 2012 at 06:07:34PM -0600, Michael Roth wrote: > Sorry for the somewhat redundant cover letter, but needed to note that: > > This applies on top of "[PATCH v2 0/8] qemu-ga: add support for Windows", and > can also be obtained from: > git://github.com/mdrot

[Qemu-devel] [PATCH v2 0/1] qemu-ga: add guest-sync-delimited

2012-02-06 Thread Michael Roth
Sorry for the somewhat redundant cover letter, but needed to note that: This applies on top of "[PATCH v2 0/8] qemu-ga: add support for Windows", and can also be obtained from: git://github.com/mdroth/qemu.git qga-guest-sync-delimited CHANGES SINCE v1: - removed deprecation flag for guest-sync,

[Qemu-devel] [PATCH v2] qemu-ga: add guest-sync-delimited

2012-02-06 Thread Michael Roth
ptimization for clients, since, after issuing a guest-sync-delimited, clients can safely discard all stale data read from the channel until the 0xFF is found. More information available on the wiki: http://wiki.qemu.org/Features/QAPI/GuestAgent#QEMU_Guest_Agent_Protocol Signed-off-by: Michael Roth -

Re: [Qemu-devel] [PATCH v2] qemu-ga: add guest-sync-delimited

2012-02-07 Thread Michael Roth
On Tue, Feb 07, 2012 at 04:17:26PM +0100, Michal Privoznik wrote: > On 07.02.2012 02:09, Michael Roth wrote: > > guest-sync leaves it as an exercise to the user as to how to reliably > > obtain the response to guest-sync if the client had previously read in a > > partial

  1   2   3   4   5   6   7   8   9   10   >