ia64/xen-unstable

changeset 10265:6fdafeeb88bb

[IA64] passthrough EFI_ACPI_MEMORY_NVS and EFI_RESERVED_TYPE

According to the EFI spec, firmware may describe ACPI tables loaded
at runtime in EFI_RESERVED_TYPE or EFI_ACPI_MEMORY_NVS memory ranges.
This patch adds these to the list of memory types we pass through for
dom0. This allows Xen to boot on HP Superdomes.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Fri Jun 09 10:35:41 2006 -0600 (2006-06-09)
parents d5adbcbb7492
children bc76ad9d6270
files xen/arch/ia64/xen/dom_fw.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom_fw.c	Fri Jun 09 10:35:40 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/dom_fw.c	Fri Jun 09 10:35:41 2006 -0600
     1.3 @@ -413,6 +413,8 @@ dom_fw_dom0_passthrough(efi_memory_desc_
     1.4      BUG_ON(md->type != EFI_RUNTIME_SERVICES_CODE &&
     1.5             md->type != EFI_RUNTIME_SERVICES_DATA &&
     1.6             md->type != EFI_ACPI_RECLAIM_MEMORY &&
     1.7 +           md->type != EFI_ACPI_MEMORY_NVS &&
     1.8 +           md->type != EFI_RESERVED_TYPE &&
     1.9             md->type != EFI_MEMORY_MAPPED_IO &&
    1.10             md->type != EFI_MEMORY_MAPPED_IO_PORT_SPACE);
    1.11  
    1.12 @@ -748,6 +750,10 @@ dom_fw_init (struct domain *d, const cha
    1.13  #endif
    1.14  			efi_memmap_walk_type(EFI_ACPI_RECLAIM_MEMORY,
    1.15  			                     dom_fw_dom0_passthrough, &arg);
    1.16 +			efi_memmap_walk_type(EFI_ACPI_MEMORY_NVS,
    1.17 +			                     dom_fw_dom0_passthrough, &arg);
    1.18 +			efi_memmap_walk_type(EFI_RESERVED_TYPE,
    1.19 +			                     dom_fw_dom0_passthrough, &arg);
    1.20  			efi_memmap_walk_type(EFI_MEMORY_MAPPED_IO,
    1.21  			                     dom_fw_dom0_passthrough, &arg);
    1.22  			efi_memmap_walk_type(EFI_MEMORY_MAPPED_IO_PORT_SPACE,