Re: [PATCH] x86: Reducing footprint of BIOS32 service mappings

From: Siarhei Liakh
Date: Sun Jul 19 2009 - 21:02:56 EST


For now I have only tested it on my home system and qemu. Actuallym in
both cases, I had to compile kernel with only CONFIG_PCI_GOBIOS=y,
since Kernel prefers other ways to access PCI when possible (with
CONFIG_PCI_GOANY=y).

On Sun, Jul 19, 2009 at 8:53 PM, H. Peter Anvin<hpa@xxxxxxxxx> wrote:
> Siarhei Liakh wrote:
>> According to BIOS32 specification
>> (http://members.datafast.net.au/dft0802/specs/bios32.pdf), at most two
>> pages per BIOS32 service should be set executable and no pages need to
>> be writeable. This patch modifies bios32_service() to set proper page
>> access permissions at time of service discovery, as described in the
>> specification.
>> Further, hardcoded protection of memory area between 640k to 1Mb have
>> been removed from static_protections(), since only pages mentioned
>> above need to be executable, not whole BIOS region.
>>
>> The patch have been developed for Linux 2.6.30 x86 by Siarhei Liakh
>> <sliakh.lkml@xxxxxxxxx> and Xuxian Jiang <jiang@xxxxxxxxxxx>.
>>
>
> Specifications mean little in the BIOS space, unfortunately.  Do we have
> any notion about how many machines this has been tested on?
>
>        -hpa
>
> --
> H. Peter Anvin, Intel Open Source Technology Center
> I work for Intel.  I don't speak on their behalf.
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/