With DOMCTL=n, we need to provide stub for domctl_lock_{acquire,release}(), as it may be invoked by hvm_set_param() in x86 PV shim mode. Although PV_SHIM_EXCLUSIVE and HVM shall not be both enabled, randconfig stands little chance to make it happen.
Signed-off-by: Penny Zheng <penny.zh...@amd.com> --- xen/include/xen/domain.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xen/include/xen/domain.h b/xen/include/xen/domain.h index 33dd90357c..b45ac91760 100644 --- a/xen/include/xen/domain.h +++ b/xen/include/xen/domain.h @@ -148,8 +148,17 @@ void arch_dump_domain_info(struct domain *d); int arch_vcpu_reset(struct vcpu *v); +#ifdef CONFIG_DOMCTL bool domctl_lock_acquire(void); void domctl_lock_release(void); +#else +static inline bool domctl_lock_acquire(void) +{ + return false; +} + +static inline void domctl_lock_release(void) {} +#endif /* CONFIG_DOMCTL */ /* * Continue the current hypercall via func(data) on specified cpu. -- 2.34.1