[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 2/2] hmp/qxl: info spice: add qxl0_mode & qxl0_gue
Re: [Qemu-devel] [RFC 2/2] hmp/qxl: info spice: add qxl0_mode & qxl0_guest_bug
Mon, 21 May 2012 13:55:04 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120422 Thunderbird/10.0.4
> 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
whenever it actually is.
> alternative is to keep a linked list of qxl devices private to qxl.c and
> use that, and the below functions become
Second best option if the QOM way doesn't fly.
> int qxl_guest_bug(int index)
> int qxl_mode(int index)
> int qxl_device_count(void)
> How does that sound?
qxl_guest_bug(Object *dev) ?