qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC][PATCH 0/21] QEMU Object Model
Date: Wed, 27 Jul 2011 17:33:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0

On 07/27/2011 02:48 PM, Anthony Liguori wrote:

So the idea here is that the PIC will multiplex a bunch of interrupts
 into a single line?

Yes, but the device needs to know the interrupt number so it can expose
it through the enumerator interface.  So the configuration cannot be simply

   pic->irq[n] = tty->irq;

Logically, it's more similar to the ISA case, but I doubt the PIC distributes all interrupts to everyone in real hardware.

Is the enumerator something that has an interface to devices where
the devices hold this info?  Or is the enumerator just a bank of
flash that's preprogrammed with fixed info?

The former, at least in theory.  Not sure if it also works that way in
real hardware, but that's the model it exposes and the way the Android
guys implemented it.

The device model provides hotplug support, so it is definitely not just flash. Not sure again if this support is used in the hardware.

At each phase, we also get significantly better modularity.

Fine, but when do we decide it's good enough to merge it? And what if it turns out that it's not suitable for devices? We unified some things, but we also dug ourselves in NIH when we could have used GObject. (GObject definitely does not work for devices, but at least we don't need to write the infrastructure).

My only real concern is how to attack the device layer incrementally.
I don't think it's impossible but it requires careful thought.

No idea here, honestly. :)

Paolo



reply via email to

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