|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH 06/10] xen/setup: Only set identity mapping in E8
On 12/21/2010 01:37 PM, Konrad Rzeszutek Wilk wrote:
> We do not want to set the identity mapping on E820 reserved
> regions when running as PV. This is b/c the 0->ISA_END_ADDRESS region
> would be considered identity and we would try to read DMI information
> and fail (since the pfn_to_mfn(mfn)==pfn) under PV guests.
>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
> ---
> arch/x86/xen/setup.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
> index 752c865..34fb906 100644
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -160,7 +160,7 @@ static unsigned long __init xen_set_identity(const struct
> e820map *e820)
> if (end < start)
> continue;
>
> - if (e820->map[i].type != E820_RAM) {
> + if (xen_initial_domain() && e820->map[i].type != E820_RAM) {
> for (pfn = PFN_UP(start); pfn < PFN_DOWN(end); pfn++)
> set_phys_to_machine(pfn, pfn);
> identity += pfn - PFN_UP(start);
So you're relying on the fact that the ISA area is the only non-RAM e820
entry in domU? I think it would be better to do a specific exclusion
for the ISA area rather than this.
J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: [PATCH 01/10] xen: Make all reserved pages for the balloon be INVALID_P2M_ENTRY., (continued)
[Xen-devel] [PATCH 09/10] xen/mmu: Be aware of p2m_[mid_|]missing when saving/restore., Konrad Rzeszutek Wilk
[Xen-devel] [PATCH 04/10] xen/mmu: For 1-1 mapping, automatically set _PAGE_IOMAP., Konrad Rzeszutek Wilk
[Xen-devel] [PATCH 03/10] xen/mmu: Add the notion of IDENTITY_P2M_ENTRY., Konrad Rzeszutek Wilk
[Xen-devel] [PATCH 06/10] xen/setup: Only set identity mapping in E820 regions when privileged., Konrad Rzeszutek Wilk
- [Xen-devel] Re: [PATCH 06/10] xen/setup: Only set identity mapping in E820 regions when privileged.,
Jeremy Fitzhardinge <=
[Xen-devel] [PATCH 02/10] xen/p2m: change p2m_missing_* to p2m_identity_*, Konrad Rzeszutek Wilk
[Xen-devel] [PATCH 10/10] xen/mmu: Warn against races., Konrad Rzeszutek Wilk
[Xen-devel] [PATCH 05/10] xen/setup: Set identity mapping for non-RAM E820 and E820 gaps., Konrad Rzeszutek Wilk
|
|
|
|
|