ia64/xen-unstable

changeset 9266:dc99944b9bd0

[IA64] dummy IO memmap entry

Create a dummy IO ports memmap entry for domU, so that
IO accesses are trapped by Xen. Otherwise, they could
pollute memory.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Wed Mar 15 08:22:03 2006 -0700 (2006-03-15)
parents 2f4911432398
children 60578e2ace8e
files xen/arch/ia64/xen/dom_fw.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom_fw.c	Wed Mar 15 08:20:28 2006 -0700
     1.2 +++ b/xen/arch/ia64/xen/dom_fw.c	Wed Mar 15 08:22:03 2006 -0700
     1.3 @@ -860,7 +860,10 @@ dom_fw_init (struct domain *d, char *arg
     1.4  		/* hypercall patches live here, masquerade as reserved PAL memory */
     1.5  		MAKE_MD(EFI_PAL_CODE,EFI_MEMORY_WB,HYPERCALL_START,HYPERCALL_END, 1);
     1.6  		MAKE_MD(EFI_CONVENTIONAL_MEMORY,EFI_MEMORY_WB,HYPERCALL_END,maxmem, 1);
     1.7 -		MAKE_MD(EFI_RESERVED_TYPE,0,0,0,0);
     1.8 +		/* Create a dummy entry for IO ports, so that IO accesses are
     1.9 +		   trapped by Xen.  */
    1.10 +		MAKE_MD(EFI_MEMORY_MAPPED_IO_PORT_SPACE,EFI_MEMORY_UC,
    1.11 +			0x00000ffffc000000, 0x00000fffffffffff, 1);
    1.12  		MAKE_MD(EFI_RESERVED_TYPE,0,0,0,0);
    1.13  	}
    1.14