On 07/24/2011 04:35 PM, Andreas Färber wrote:
Am 24.07.2011 um 20:57 schrieb Anthony Liguori:

On 07/24/2011 01:45 PM, Paolo Bonzini wrote:
On 07/16/2011 04:39 PM, Anthony Liguori wrote:

Instead of checking for a port assignment, couldn't we do a device tree
transversal and look for isa-serial devices? We could then look at the
iobase property to figure out which serial device is configured.

---BTW, I set to do this first but changed
plans after I noticed that there are no qdev property getters.

:-/

I seem to recall a patch to add them but it's not a very nice solution
either.

Mine, in the ISA/PReP series. The alternative is moving lots of device
state to header files.
Adding the getters avoided patch conflicts and seemed cleaner
symmetry-wise.

The getters lack type safety though which is unfortunate. That said, I guess it's the best we can do with qdev.

Regards,

Anthony Liguori


Regards,
Andreas



Reply via email to