qemu-devel
[Top][All Lists]
Advanced

[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


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [RFC 2/2] hmp/qxl: info spice: add qxl0_mode & qxl0_guest_bug
Date: Mon, 21 May 2012 13:55:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120422 Thunderbird/10.0.4

  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
whenever it actually is.

> The
> 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) ?

cheers,
  Gerd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]