qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] two level table for IO port lookup


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] two level table for IO port lookup
Date: Fri, 10 Apr 2009 11:03:28 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Brian Wheeler wrote:
The alpha architecture uses 24 bits for the io port address so this
patch adds a two level table and puts the IO port data into a
struct...because sizeof(void *) * 7 * 16777216 is nearly a 1G on my
workstation.

I've set the alpha target to use a 12/12 split and everything else to
use 8/8.

The table lookups really kill performance. It's probably a better idea just to switch to a linear list of IO ports. There's usually going to be a small number of registered IO regions (certainly, less than 100).

Regards,

Anthony Liguori





reply via email to

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