WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel][PATCH] dom0 p2m setup fix

To: "Alex Williamson" <alex.williamson@xxxxxx>
Subject: [Xen-ia64-devel][PATCH] dom0 p2m setup fix
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Wed, 23 Apr 2008 17:19:47 +0800
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 23 Apr 2008 02:20:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcilIyzhoeZ2dN/FSkGz9NLB2IDgRg==
Thread-topic: [Xen-ia64-devel][PATCH] dom0 p2m setup fix
EFI uses 4k page, while xen uses 16k page.
For dom0, identity mapping are setup for EFI_ACPI_RECLAIM_MEMORY etc.
It is possible when seting up dom0 memory range which may include some
EFI_ACPI_RECLAIM_MEMORY due to 4k/16k alignment difference.
This patch fix this issue by scaning memory descriptors twice
in the first scan, setup dom0 identity mapping
in the seconde scan, setup dom0 memory mapping.


I have a machine with below memory descriptors
When xen setup dom0 p2m for BS_data
"000000003FFAC000-000000003FFD9FFF  000000000000002E 000000000000000F"
It also setup dom0 p2m for "000000003FFDA000-000000003FFDBFFF"

When xen wants to setup identity p2m for 'ACPI_recl
000000003FFDA000-000000003FFDBFFF  0000000000000002 000000000000000F"
This address space has been setup, this identity p2m setup fails without
error.
In my case, this memory block "ACPI_recl
000000003FFDA000-000000003FFDBFFF  0000000000000002 000000000000000F"
happens to save ACPI tables, then dom0 can't boot due to can't find some
ACPI tables.



available  000000003EC00000-000000003FF97FFF  0000000000001398
000000000000000F
ACPI_recl  000000003FF98000-000000003FFA7FFF  0000000000000010
000000000000000F
ACPI_NVS   000000003FFA8000-000000003FFA9FFF  0000000000000002
000000000000000F
ACPI_recl  000000003FFAA000-000000003FFABFFF  0000000000000002
000000000000000F
BS_data    000000003FFAC000-000000003FFD9FFF  000000000000002E
000000000000000F
ACPI_recl  000000003FFDA000-000000003FFDBFFF  0000000000000002
000000000000000F


Signed-off-by: Anthony Xu < anthony.xu@xxxxxxxxx >


Thanks,
Anthony

Attachment: dom0_p2m_fix.patch
Description: dom0_p2m_fix.patch

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>