lkml.org 
[lkml]   [2009]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:x86/setup] x86, setup: "glove box" BIOS calls -- infrastructure

* Pavel Machek <pavel@ucw.cz> wrote:

> Hi!
>
> > x86, setup: "glove box" BIOS calls -- infrastructure
> >
> > Impact: new interfaces (not yet used)
> >
> > For all the platforms out there, there is an infinite number of buggy
> > BIOSes. This adds infrastructure to treat BIOS interrupts more like
> > toxic waste and "glove box" them -- we switch out the register set,
> > perform the BIOS interrupt, and then restore the previous state.
> >
> > LKML-Reference: <49DE7F79.4030106@zytor.com>
> > Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
> > Cc: Pavel Machek <pavel@ucw.cz>
>
> Sounds quite sane. Disadvantage is that we will no longer detect
> those buggy BIOSen.

I'd call that an advantage: sandboxing BIOS calls as much as we can
and trusting all data from it as if it were a random packet from the
Internet is the only sane way forward IMHO.

If we really care we could put in checks for unexpected register
state changes ... but is it worth the trouble?

Ingo


\
 
 \ /
  Last update: 2009-04-10 12:43    [W:0.085 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site