qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] report serial devices created with -device in t


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] report serial devices created with -device in the PIIX4 config space
Date: Sun, 24 Jul 2011 20:45:57 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

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

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