lkml.org 
[lkml]   [2012]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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


    \
     
     \ /
      Last update: 2012-04-19 20:01    [W:3.289 / U:0.284 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site