# HG changeset patch # User dietmar.hahn@xxxxxxxxxxxxxxxxxxx # Node ID af5b03c89cbd6c05c66a7d269a634a25a3f18210 # Parent bd09409a91002ed506af334e31cb9218e8c6a543 - adds optimization feature for region 7 identity mapping - adds protection keys to region 5 and region 7 addresses, may be used for testing the hypervisor protection key support Signed-off-by: Dietmar Hahn diff -r bd09409a9100 -r af5b03c89cbd extras/mini-os/arch/ia64/common.c --- a/extras/mini-os/arch/ia64/common.c Fri Jul 27 13:25:53 2007 +0200 +++ b/extras/mini-os/arch/ia64/common.c Fri Jul 27 14:11:58 2007 +0200 @@ -103,7 +103,7 @@ map_pal_code(void) */ ia64_ptc_l(machineFwG.ia64_pal_base, PTE_PS_16K); ia64_write_itr_i(&pte, IA64_TR_PAL, - (uint64_t) machineFwG.ia64_pal_base, PTE_PS_16K, 0); + (uint64_t)machineFwG.ia64_pal_base, PTE_PS_16K, IA64_KEY_REG7); xen_set_virtual_psr_ic(1); } @@ -180,6 +180,19 @@ init_boot_params(void) bootverbose = 1; } +static void +set_opt_feature(void) +{ + struct xen_ia64_opt_feature optf; + optf.cmd = XEN_IA64_OPTF_IDENT_MAP_REG7; + optf.on = XEN_IA64_OPTF_ON; + optf.pgprot = ((1<