These exist for no reason: The code using them is only ever built for
Arm32. And memguard_guard_stack() has no use outside of x86-specific
code at all.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
unsigned long domain_get_maximum_gpfn(struct domain *d);
-#define memguard_guard_stack(_p) ((void)0)
-#define memguard_guard_range(_p,_l) ((void)0)
-#define memguard_unguard_range(_p,_l) ((void)0)
-
/* Release all __init and __initdata ranges to be reused */
void free_init_memory(void);
if ( !is_xen_heap_mfn(maddr_to_mfn(pe)) )
pe -= PAGE_SIZE;
- memguard_guard_range(maddr_to_virt(ps), pe - ps);
-
init_heap_pages(maddr_to_page(ps), (pe - ps) >> PAGE_SHIFT);
}
if ( unlikely(pg == NULL) )
return NULL;
- memguard_unguard_range(page_to_virt(pg), 1 << (order + PAGE_SHIFT));
-
return page_to_virt(pg);
}
if ( v == NULL )
return;
- memguard_guard_range(v, 1 << (order + PAGE_SHIFT));
-
free_heap_pages(virt_to_page(v), order, false);
}