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: Avi Kivity
Subject: Re: [Qemu-devel] [RFC] Memory API
Date: Thu, 19 May 2011 17:40:50 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.10

On 05/19/2011 05:37 PM, Anthony Liguori wrote:

So....  do you do:

isa_register_region(ISABus *bus, MemoryRegion *mr, int priority)
{
    chipset_register_region(bus->chipset, mr, priority + 1);
}

I don't really understand how you can fold everything into one table and not allow devices to override their parents using priorities.

Think of how a window manager folds windows with priorities onto a flat framebuffer.

You do a depth-first walk of the tree. For each child list, you iterate it from the lowest to highest priority, allowing later subregions override earlier subregions.

--
error compiling committee.c: too many arguments to function




reply via email to

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