qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] Memory API


From: Jan Kiszka
Subject: Re: [Qemu-devel] [RFC] Memory API
Date: Sun, 22 May 2011 12:53:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2011-05-22 10:41, Gleb Natapov wrote:
>> The chipset knows about the priorities.  How to communicate them to
>> the core?
>>
>> - at runtime, with hierarchical dispatch of ->read() and ->write():
>> slow, and doesn't work at all for RAM.
>> - using registration order: fragile
>> - using priorities
>>
> - by resolving overlapping and registering flattened list with the core.
>   (See example above).

[Registration would happens with the help of the core against the next
higher layer.]

To do this, you need to
 - open-code the resolution logic at every level (very bad idea)
 - provide library services to obtain a flattened representation

Please try to specify such an API without any parameters that are
priority-like.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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