Re: [PATCH v3 19/20] xen/sysctl: wrap around arch-specific arch_do_sysctl

2025-04-30 Thread Jan Beulich
On 21.04.2025 09:37, Penny Zheng wrote: > --- a/xen/arch/riscv/stubs.c > +++ b/xen/arch/riscv/stubs.c > @@ -315,13 +315,13 @@ unsigned long raw_copy_from_guest(void *to, const void > __user *from, > > /* sysctl.c */ > > +#ifdef CONFIG_SYSCTL > long arch_do_sysctl(struct xen_sysctl *sysctl, >

Re: [PATCH v3 19/20] xen/sysctl: wrap around arch-specific arch_do_sysctl

2025-04-21 Thread Stefano Stabellini
On Mon, 21 Apr 2025, Penny Zheng wrote: > Function arch_do_sysctl is to perform arch-specific sysctl op. > Some functions, like psr_get_info for x86, DTB overlay support for arm, > are solely available through sysctl op, then they all shall be wrapped > with CONFIG_SYSCTL > > Also, remove all #ifd

[PATCH v3 19/20] xen/sysctl: wrap around arch-specific arch_do_sysctl

2025-04-21 Thread Penny Zheng
Function arch_do_sysctl is to perform arch-specific sysctl op. Some functions, like psr_get_info for x86, DTB overlay support for arm, are solely available through sysctl op, then they all shall be wrapped with CONFIG_SYSCTL Also, remove all #ifdef CONFIG_SYSCTL-s in arch-specific sysctl.c, as we