On 10.09.2025 09:38, Penny Zheng wrote: > --- a/xen/include/xen/domain.h > +++ b/xen/include/xen/domain.h > @@ -151,8 +151,17 @@ void arch_dump_domain_info(struct domain *d); > > int arch_vcpu_reset(struct vcpu *v); > > +#ifdef CONFIG_MGMT_HYPERCALLS > bool domctl_lock_acquire(void); > void domctl_lock_release(void); > +#else > +static inline bool domctl_lock_acquire(void) > +{ > + return false;
I.e. a someone invoking hvm_set_param() with HVM_PARAM_IDENT_PT will loop indefinitely on getting back -ERESTART? Imo you simply cannot get things right here with a stub: Either you have the above issue, or you put some future new user of the function at risk. Setting HVM_PARAM_IDENT_PT being a toolstack-only operation, I think that needs making conditional upon CONFIG_MGMT_HYPERCALLS right in this series, such that the last caller of these lock/unlock functions disappears. Jan