aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/xen/pv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/x86/xen/pv.c')
-rw-r--r--sys/x86/xen/pv.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/x86/xen/pv.c b/sys/x86/xen/pv.c
index 3c22d9e5cf6f..515e5c58d304 100644
--- a/sys/x86/xen/pv.c
+++ b/sys/x86/xen/pv.c
@@ -159,7 +159,6 @@ uint64_t
hammer_time_xen(vm_paddr_t start_info_paddr)
{
struct hvm_modlist_entry *mod;
- struct xen_add_to_physmap xatp;
uint64_t physfree;
char *kenv;
@@ -210,19 +209,6 @@ hammer_time_xen(vm_paddr_t start_info_paddr)
PAGE_SIZE), physfree);
}
- if (isxen()) {
- xatp.domid = DOMID_SELF;
- xatp.idx = 0;
- xatp.space = XENMAPSPACE_shared_info;
- xatp.gpfn = atop(physfree);
- if (HYPERVISOR_memory_op(XENMEM_add_to_physmap, &xatp)) {
- xc_printf("ERROR: failed to setup shared_info page\n");
- HYPERVISOR_shutdown(SHUTDOWN_crash);
- }
- HYPERVISOR_shared_info = (shared_info_t *)(physfree + KERNBASE);
- physfree += PAGE_SIZE;
- }
-
/*
* Init a static kenv using a free page. The contents will be filled
* from the parse_preload_data hook.