This patch adds to the QObject system a method to encode JSON
objects. It also adds printf-like capabilities where you can
write %{a.b} in a format string and the method will walk a
QDict to find the a first and b in a QDict inside that one
(and then print what's found).
Since QEMU does not have
A nice-to-have utility function, it helps avoiding useless strlen+strdup
pairs.
Cc: Luiz Capitulino lcapitul...@redhat.com
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
qemu-common.h |1 +
qemu-malloc.c |8
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git
This gives more freedom to define prototypes without dragging in
the whole header files.
Cc: Luiz Capitulino lcapitul...@redhat.com
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
qobject.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/qobject.h b/qobject.h
qemu does not have a string buffer object, so I added this capability
to QString.
Cc: Luiz Capitulino lcapitul...@redhat.com
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
check-qstring.c | 79 -
qstring.c | 105
And finally, a small testsuite using check as the rest of the QObject
framework.
Cc: Luiz Capitulino lcapitul...@redhat.com
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
Makefile |1 +
check-json.c | 123 ++
configure|
The JSON encoder is just a virtual method on QObject.
Cc: Luiz Capitulino lcapitul...@redhat.com
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
Makefile |4 ++--
qdict.c | 32
qint.c| 16
qlist.c | 28
On 10/17/2009 03:50 AM, Anthony Liguori wrote:
Paolo Bonzini wrote:
On 10/16/2009 11:37 PM, Anthony Liguori wrote:
I already am :-) Stay tuned, I should have a patch later this afternoon.
Was it a race? (Seriously, sorry I didn't notice a couple of hours ago).
This one is ~5% slower than
On Fri, Oct 16, 2009 at 11:55:45PM +0200, Jan-Simon Möller wrote:
This patch fixes the mount call. GUEST_BASE shouldn't be added to a NULL
pointer on arg5 .
failing call:
mount(rootfs, /, 0x47a78, MS_MGC_VAL|MS_REMOUNT, 0x1) = -1 EFAULT
(Bad
address)
correct call:
mount(rootfs, /,
On Fri, Oct 16, 2009 at 05:52:21PM +0200, Aurelien Jarno wrote:
On Fri, Oct 16, 2009 at 02:38:47PM +0200, Ulrich Hecht wrote:
sync allows concurrent accesses to locations in memory through different TCG
variables. This comes in handy when you are emulating CPU registers that can
be used as
On Fri, Oct 16, 2009 at 05:02:26PM +0300, riku.voi...@iki.fi wrote:
From: Riku Voipio riku.voi...@iki.fi
Long time no update... A set of relatively small patches for comment
on the list before sending a pull request.
Max Filippov (1):
linux-user: fix ppc target_stat64 st_blocks layout
Gerd Hoffmann kra...@redhat.com wrote:
This patch adds a loader-target.c file for target-specific
rom loading functions. The rom_add_vga() and rom_add_option()
macros are transformed into functions and sticked in there. They
load the bios on TARGET_I386 and no nothing on other targets.
On Fri, Oct 16, 2009 at 02:38:49PM +0200, Ulrich Hecht wrote:
changes to configure and makefiles for S/390 host and target support,
fixed as suggested by Juan Quintela
adapted to most recent changes in build system
Basically looks ok, but it would be worth to split it into host and
target
On 2009-10-16 09:04:51 -0500, Anthony Liguori wrote:
Kusanagi Kouichi wrote:
If I am using vga and serial which is stdio and hit C-c on
serial console, qemu terminates. That is annoying for me.
So make it configurable whether signal is generated when C-c is hit.
Signed-off-by: Kusanagi
Paolo Bonzini wrote:
This gives more freedom to define prototypes without dragging in
the whole header files.
Cc: Luiz Capitulino lcapitul...@redhat.com
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
qobject.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git
Paolo Bonzini wrote:
qemu does not have a string buffer object, so I added this capability
to QString.
Cc: Luiz Capitulino lcapitul...@redhat.com
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
check-qstring.c | 79 -
qstring.c | 105
This allows qstring to be used for dynamic string construction.
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
qstring.c | 37 -
qstring.h |4
2 files changed, 40 insertions(+), 1 deletions(-)
diff --git a/qstring.c b/qstring.c
index
I fat-fingered the git send-email command the first time so here's the second
iteration.
This series introduces a json parsing framework. The parser is a recursive
decent parser and implements the full json spec except for the null keyword. We
need to decide how we want to model null in order
qfloat is a qobject wrapper for double precision floating points
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
Makefile |3 +-
qfloat.c | 76 +
qfloat.h | 29 +++
qobject.h |1 +
4 files
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
Makefile |2 +
check-qfloat.c | 81
configure |2 +-
3 files changed, 84 insertions(+), 1 deletions(-)
create mode 100644 check-qfloat.c
diff --git a/Makefile
This implements a json parser that generates qobjects. The intention is that
this all can be eventually moved to a shared library to form the basis of the
QMP client API. Unfortunately, qobject is currently GPL licensed so hopefully
Luiz will switch it to LGPL.
The parser is a pretty straight
Instead of parsing true/false as QInt, parse them as QBool and update the
test suite accordingly.
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
Makefile |2 +-
check-qjson.c | 19 ++-
qjson.c |5 +++--
3 files changed, 14 insertions(+), 12
We currently model as json bool as an int. This works fine on the server side
but it means we cannot send back proper bools to the client. Introducing a
proper QBool type fixes that.
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
Makefile |2 +-
qbool.c | 76
Not a wonderful choice in conversion characters but nothing else seems better.
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
qjson.c |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/qjson.c b/qjson.c
index ce2c942..9279bfb 100644
--- a/qjson.c
+++ b/qjson.c
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
check-qjson.c | 21 +
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/check-qjson.c b/check-qjson.c
index 32aa33c..8760941 100644
--- a/check-qjson.c
+++ b/check-qjson.c
@@ -9,6 +9,7 @@
*
*/
#include
%p lets you specify an already constructed qobject. It takes a weak reference.
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
qjson.c | 25 +
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/qjson.c b/qjson.c
index 9279bfb..7bedaf3 100644
---
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
check-qjson.c | 33 -
1 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/check-qjson.c b/check-qjson.c
index 8760941..9be1448 100644
--- a/check-qjson.c
+++ b/check-qjson.c
@@ -551,11 +551,38 @@
On 10/17/2009 03:03 PM, Anthony Liguori wrote:
I think it makes more sense as an external entity.
Maybe... I just thought of it as a toString method that happens to emit
JSON.
Paolo
On Sat, Oct 17, 2009 at 08:36:03AM -0500, Anthony Liguori wrote:
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
Makefile |2 +
check-qfloat.c | 81
Hello Anthony,
Shouldn't we put these tests under
On Sat, Jul 11, 2009 at 5:14 PM, Laurent Desnogues
laurent.desnog...@gmail.com wrote:
Hello,
the attached patch implements two of the three x86_64 vsyscall's.
Also attached is a test that demonstrates the issue and hopefully
the fix.
Note there is a trick in there: since vsyscall functions
Paolo Bonzini wrote:
On 10/17/2009 03:03 PM, Anthony Liguori wrote:
I think it makes more sense as an external entity.
Maybe... I just thought of it as a toString method that happens to
emit JSON.
json is one representation of the monitor protocol. I think we should
attempt to design
Edgar E. Iglesias wrote:
On Sat, Oct 17, 2009 at 08:36:03AM -0500, Anthony Liguori wrote:
Signed-off-by: Anthony Liguori aligu...@us.ibm.com
---
Makefile |2 +
check-qfloat.c | 81
Hello Anthony,
Shouldn't we put
This patch fixes the mount call. GUEST_BASE shouldn't be added to a NULL
pointer on arg5 .
failing call:
mount(rootfs, /, 0x47a78, MS_MGC_VAL|MS_REMOUNT, 0x1) = -1 EFAULT (Bad
address)
correct call:
mount(rootfs, /, 0x37ab0, MS_MGC_VAL|MS_REMOUNT, NULL) = 0
Signed-off-by: Jan-Simon
On Sat, Jul 11, 2009 at 05:14:47PM +0200, Laurent Desnogues wrote:
Hello,
the attached patch implements two of the three x86_64 vsyscall's.
Also attached is a test that demonstrates the issue and hopefully
the fix.
Note there is a trick in there: since vsyscall functions are in high
Hi Edgar,
On Sat, Oct 17, 2009 at 9:57 PM, Edgar E. Iglesias
edgar.igles...@gmail.com wrote:
It feels a bit strange to have the CPU model know about linux vsyscalls.
Did you consider having the linux-user loader pass a qemu version of the
x86_64 vdso to the guest through the auxvector? That
Laurent Desnogues wrote:
A recent compiler (gcc 4.4.0) produces this code for a statically
compiled program:
005779e0 time:
5779e0: 48 83 ec 08 sub$0x8,%rsp
5779e4: 48 c7 c0 00 04 60 ffmov$0xff600400,%rax
5779eb: ff d0
Edgar E. Iglesias wrote:
Did you consider having the linux-user loader pass a qemu version of the
x86_64 vdso to the guest through the auxvector? That version could probably
implement the vsyscalls by translating them into syscalls with x86_64 code.
That seems like a good idea.
Note that on
Anthony Liguori wrote:
holl...@linux.vnet.ibm.com wrote:
It's hard enough to keep localized strings updated for every release
within a single code tree. Beyond that, you expect that every *client*
will update its localized strings for every *server* release?
What I meant by highly
Paolo Bonzini wrote:
On 10/15/2009 09:08 PM, Luiz Capitulino wrote:
{ error: { code: 12
desc: device already open,
data: { bus: 0, address: 12 } } }
Note that this also can be reused by any bus, as the data information
is built at error time and can contain
Jamie Lokier wrote:
Paolo Bonzini wrote:
On 10/15/2009 09:08 PM, Luiz Capitulino wrote:
{ error: { code: 12
desc: device already open,
data: { bus: 0, address: 12 } } }
Note that this also can be reused by any bus, as the data information
is built at
39 matches
Mail list logo