ia64/xen-unstable

view xen/include/asm-x86/smpboot.h @ 15812:86a154e1ef5d

[HVM] Shadow: don't shadow the p2m table.
For HVM vcpus with paging disabled, we used to shadow the p2m table,
and skip the p2m lookup to go from gfn to mfn. Instead, we now
provide a simple pagetable that gives a one-to-one mapping of 4GB, and
shadow that, making the translations from gfn to mfn via the p2m.
This removes the paging-disabled special-case code from the shadow
fault handler, and allows us to expand the p2m interface, since all HVM
translations now go through the same p2m lookups.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Fri Aug 31 11:06:22 2007 +0100 (2007-08-31)
parents ddd290cc8f0d
children
line source
1 #ifndef __ASM_SMPBOOT_H
2 #define __ASM_SMPBOOT_H
4 static inline unsigned long apicid_to_phys_cpu_present(int apicid)
5 {
6 return 1UL << apicid;
7 }
9 extern volatile int logical_apicid_2_cpu[];
10 extern volatile int cpu_2_logical_apicid[];
11 extern volatile int physical_apicid_2_cpu[];
12 extern volatile int cpu_2_physical_apicid[];
14 #define boot_apicid_to_cpu(apicid) physical_apicid_2_cpu[apicid]
16 #endif