#endif
}
- #ifdef CONFIG_XEN_PVHVM
- #define HVM_SHARED_INFO_ADDR 0xFE700000UL
- static struct shared_info *xen_hvm_shared_info;
- static unsigned long xen_hvm_sip_phys;
- static int xen_major, xen_minor;
-
+ void __ref xen_hvm_init_shared_info(void)
+/* Use a pfn in RAM, may move to MMIO before kexec.
+ * This function also called for PVH dom0 */
- static void xen_hvm_connect_shared_info(unsigned long pfn)
{
+ int cpu;
struct xen_add_to_physmap xatp;
+ static struct shared_info *shared_info_page = 0;
+ if (!shared_info_page)
+ shared_info_page = (struct shared_info *)
+ extend_brk(PAGE_SIZE, PAGE_SIZE);
xatp.domid = DOMID_SELF;
xatp.idx = 0;
xatp.space = XENMAPSPACE_shared_info;