Re: [Qemu-devel] [RFC 2/2] hmp/qxl: info spice: add qxl0_mode & qxl0_guest_bug

2012-05-21 Thread Gerd Hoffmann
Hi, > OK, so I can fix this and remove the qxl0 hack at the same stroke. I was > looking at using the system_bus, but that seems like another hack. Didn't check what qom provides these days, searching for objects of a certain type (for example a qxl device) should be possible IMO. Dunno whenev

Re: [Qemu-devel] [RFC 2/2] hmp/qxl: info spice: add qxl0_mode & qxl0_guest_bug

2012-05-21 Thread Alon Levy
On Mon, May 21, 2012 at 11:22:16AM +0200, Gerd Hoffmann wrote: > Hi, > > > +if (info->qxl0_guest_bug != -1 && info->qxl0_mode != -1) { > > +monitor_printf(mon, " qxl0\n"); > > +monitor_printf(mon, " guest_bug: %"PRIu64"d\n", > > info->qxl0_guest_bug); > > +monitor_

Re: [Qemu-devel] [RFC 2/2] hmp/qxl: info spice: add qxl0_mode & qxl0_guest_bug

2012-05-21 Thread Gerd Hoffmann
Hi, > +if (info->qxl0_guest_bug != -1 && info->qxl0_mode != -1) { > +monitor_printf(mon, " qxl0\n"); > +monitor_printf(mon, " guest_bug: %"PRIu64"d\n", > info->qxl0_guest_bug); > +monitor_printf(mon, "mode: %s\n", > +SpiceQueryQXLMode_lookup

[Qemu-devel] [RFC 2/2] hmp/qxl: info spice: add qxl0_mode & qxl0_guest_bug

2012-05-21 Thread Alon Levy
Signed-off-by: Alon Levy --- hmp.c|7 +++ hw/qxl.c | 17 + qapi-schema.json | 32 ++-- ui/qemu-spice.h |4 ui/spice-core.c |3 +++ 5 files changed, 61 insertions(+), 2 deletions(-) diff --git a/hmp.c b/hmp