On 11.09.2025 11:20, Penny, Zheng wrote: >> -----Original Message----- >> From: Jan Beulich <jbeul...@suse.com> >> Sent: Wednesday, September 10, 2025 10:57 PM >> >> On 10.09.2025 09:38, Penny Zheng wrote: >>> --- a/xen/include/xen/vm_event.h >>> +++ b/xen/include/xen/vm_event.h >>> @@ -50,6 +50,7 @@ struct vm_event_domain >>> unsigned int last_vcpu_wake_up; >>> }; >>> >>> +#ifdef CONFIG_VM_EVENT >>> /* Returns whether a ring has been set up */ bool >>> vm_event_check_ring(struct vm_event_domain *ved); >>> >>> @@ -68,6 +69,20 @@ bool vm_event_check_ring(struct vm_event_domain >> *ved); >>> */ >>> int __vm_event_claim_slot(struct domain *d, struct vm_event_domain *ved, >>> bool allow_sleep); >>> +#else >>> +static inline bool vm_event_check_ring(struct vm_event_domain *ved) { >>> + return false; >>> +} >> >> Which call site is in need of this stub? I was first considering >> mem_paging_enabled(), but MEM_PAGING already now depends on VM_EVENT. >> > > It is used in hvm.c to check whether vm_event_share ring is empty. And it has > the same problem as the below: whether we support the configuration: > VM_EVENT=n and MEM_SHARING=y.
Hmm, yes, I must have overlooked that. This needs to stay, I expect. Jan