@@ -745,7 +745,8 @@ static __always_inline bool pv_vcpu_is_preempted(long cpu)
*/
#define PV_THUNK_NAME(func) "__raw_callee_save_" #func
#define PV_CALLEE_SAVE_REGS_THUNK(func) \
- extern typeof(func) __raw_callee_save_##func; \
+ extern __visible typeof(func) __raw_callee_save_##func; \
+ extern __visible typeof(func) func; \
\
asm(".pushsection .text;" \
".globl " PV_THUNK_NAME(func) ";" \
@@ -144,7 +144,7 @@ void xen_get_runstate_snapshot(struct vcpu_runstate_info *res)
}
/* return true when a vcpu could run but has no real cpu to run on */
-bool xen_vcpu_stolen(int vcpu)
+__visible bool xen_vcpu_stolen(int vcpu)
{
return per_cpu(xen_runstate, vcpu).state == RUNSTATE_runnable;
}