Messages in this thread | | | Date | Thu, 19 Apr 2012 10:59:23 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH 3/3] x86, extable: Handle early exceptions |
| |
On 04/19/2012 10:38 AM, Borislav Petkov wrote: > > Yeah, simplicity is the key here. I don't think we're getting that many > early boot exceptions due to rdmsr or whatever to warrant adding a bunch > of code. > > OTOH, if we can share early and normal exception handling lookup code, then a > perfect hash would make sense as those exceptions would pile up. >
Obviously we should use the hash after the main kernel is up, too. Anything else would be silly.
I would argue that the O(1) hash makes things simpler as there is no need to deal with collisions at all. The one advantage with "plain" hashes is that can be runtime modified, which would be of some interest if we create one single hash table that includes modules.
*That* seems complex to me, though.
-hpa
| |