Re: [PATCH 3/8] xen/setup: Set identity mapping for non-RAM E820 and E820 gaps.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ian Campbell
Date: Tuesday, January 4, 2011 - 12:27 pm

On Tue, 2011-01-04 at 18:38 +0000, Konrad Rzeszutek Wilk wrote: 

xen_memory_setup has: 
        e820_add_region(ISA_START_ADDRESS, ISA_END_ADDRESS - ISA_START_ADDRESS,
                        E820_RESERVED);
which is unconditional but is actually more for domU's benefit than
dom0's which already sees the host e820 presumably with the right hole
already in place, which we simply shadow, or maybe slightly extend,
here.

In a domU we do this because if you let these pages into the general
allocation pool then they will potentially get used as page table pages
(hence be R/O) but e.g. the DMI code tries to map them to probe for
signatures and tries to does so R/W which fails. We could try and find
everywhere in the kernel which does this or we can simply reserve the
region which stops it getting used for page tables or other special
things, and is somewhat less surprising for non-Xen code.


Yep. 



I don't think you can return it, since something like the DMI code which
wants to probe it expects to be able to map that PFN, if you've given
the MFN back then that will fail.

I suppose we could alias all such PFNs to the same scratch MFN but I'd
be concerned about some piece of code which expects to interact with
firmware scribbling over it and surprising some other piece of code
which interacts with the firmware...

Ian.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/8] xen/setup: Set identity mapping for non-RAM E8 ..., Konrad Rzeszutek Wilk, (Thu Dec 30, 12:48 pm)
Re: [PATCH 3/8] xen/setup: Set identity mapping for non-RA ..., Konrad Rzeszutek Wilk, (Tue Jan 4, 11:38 am)
Re: [PATCH 3/8] xen/setup: Set identity mapping for non-RA ..., Ian Campbell, (Tue Jan 4, 12:27 pm)
Re: [PATCH 3/8] xen/setup: Set identity mapping for non-RA ..., Konrad Rzeszutek Wilk, (Tue Jan 4, 2:28 pm)