On 2011-05-19 14:50, Avi Kivity wrote:
> On 05/19/2011 03:20 PM, Jan Kiszka wrote:
>>>
>>>  An example is ne2000-isa and ne2000-pci.  There's no getting around some
>>>  glue logic, but I think this API minimizes it (you can declare
>>>  everything about your memory region in common code, the only thing that
>>>  is different is registration).
>>
>> If devices register against the corresponding qbus (I expect we'll have
>> multiple ones in the future), not even that need to be different.
> 
> Eventually we may make the memory API a sub-API of qdev.  I don't want 
> to start with that however, the change is large enough already.

Touching all devices again at that point to change the way they register
regions may not be the best approach. I would try to consolidate the
refactoring work that affects the majority of device models.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

Reply via email to