@@ -97,7 +97,7 @@ static void map_shared_info(void)
unsigned int i;
unsigned long rc;
- if ( hypervisor_alloc_unused_page(&mfn) )
+ if ( xen_alloc_unused_page(&mfn) )
panic("unable to reserve shared info memory page\n");
xatp.gpfn = mfn_x(mfn);
@@ -284,7 +284,7 @@ void hypervisor_ap_setup(void)
init_evtchn();
}
-int hypervisor_alloc_unused_page(mfn_t *mfn)
+int xen_alloc_unused_page(mfn_t *mfn)
{
unsigned long m;
int rc;
@@ -296,7 +296,7 @@ int hypervisor_alloc_unused_page(mfn_t *mfn)
return rc;
}
-int hypervisor_free_unused_page(mfn_t mfn)
+int xen_free_unused_page(mfn_t mfn)
{
return rangeset_remove_range(mem, mfn_x(mfn), mfn_x(mfn));
}
@@ -739,7 +739,7 @@ static long pv_shim_grant_table_op(unsigned int cmd,
};
mfn_t mfn;
- rc = hypervisor_alloc_unused_page(&mfn);
+ rc = xen_alloc_unused_page(&mfn);
if ( rc )
{
gprintk(XENLOG_ERR,
@@ -751,7 +751,7 @@ static long pv_shim_grant_table_op(unsigned int cmd,
rc = xen_hypercall_memory_op(XENMEM_add_to_physmap, &xatp);
if ( rc )
{
- hypervisor_free_unused_page(mfn);
+ xen_free_unused_page(mfn);
break;
}
@@ -33,8 +33,8 @@ extern bool pv_console;
extern uint32_t xen_cpuid_base;
void probe_hypervisor(void);
-int hypervisor_alloc_unused_page(mfn_t *mfn);
-int hypervisor_free_unused_page(mfn_t mfn);
+int xen_alloc_unused_page(mfn_t *mfn);
+int xen_free_unused_page(mfn_t mfn);
DECLARE_PER_CPU(unsigned int, vcpu_id);
DECLARE_PER_CPU(struct vcpu_info *, vcpu_info);
They are used in Xen code only. No functional change. Signed-off-by: Wei Liu <liuwe@microsoft.com> --- xen/arch/x86/guest/xen/xen.c | 6 +++--- xen/arch/x86/pv/shim.c | 4 ++-- xen/include/asm-x86/guest/xen.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-)