They are used in Xen code only.
No functional change.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Reviewed-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
unsigned int i;
unsigned long rc;
- if ( hypervisor_alloc_unused_page(&mfn) )
+ if ( xg_alloc_unused_page(&mfn) )
panic("unable to reserve shared info memory page\n");
xatp.gpfn = mfn_x(mfn);
init_evtchn();
}
-int hypervisor_alloc_unused_page(mfn_t *mfn)
+int xg_alloc_unused_page(mfn_t *mfn)
{
unsigned long m;
int rc;
return rc;
}
-int hypervisor_free_unused_page(mfn_t mfn)
+int xg_free_unused_page(mfn_t mfn)
{
return rangeset_remove_range(mem, mfn_x(mfn), mfn_x(mfn));
}
};
mfn_t mfn;
- rc = hypervisor_alloc_unused_page(&mfn);
+ rc = xg_alloc_unused_page(&mfn);
if ( rc )
{
gprintk(XENLOG_ERR,
rc = xen_hypercall_memory_op(XENMEM_add_to_physmap, &xatp);
if ( rc )
{
- hypervisor_free_unused_page(mfn);
+ xg_free_unused_page(mfn);
break;
}
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 xg_alloc_unused_page(mfn_t *mfn);
+int xg_free_unused_page(mfn_t mfn);
DECLARE_PER_CPU(unsigned int, vcpu_id);
DECLARE_PER_CPU(struct vcpu_info *, vcpu_info);