[PATCH] x86/hyperv/vtl: Stop kernel from probing VTL0 low memory

2025-01-15 Thread Naman Jain
For Linux, running in Hyper-V VTL (Virtual Trust Level), kernel in VTL2 tries to access VTL0 low memory in probe_roms. This memory is not described in the e820 map. Initialize probe_roms call to no-ops during boot for VTL2 kernel to avoid this. The issue got identified in OpenVMM which detects inva

[PATCH v3 2/2] drivers/hv: add CPU offlining support

2025-01-15 Thread Hamza Mahfooz
Currently, it is tedious to offline CPUs. Since, most CPUs will have vmbus channels attached to them that a user would have to manually rebind elsewhere. So, as made mention of in commit d570aec0f2154 ("Drivers: hv: vmbus: Synchronize init_vp_index() vs. CPU hotplug"), rebind channels associated wi

[PATCH v3 1/2] drivers/hv: introduce vmbus_channel_set_cpu()

2025-01-15 Thread Hamza Mahfooz
The core functionality in target_cpu_store() is also needed in a subsequent patch for automatically changing the CPU when taking a CPU offline. As such, factor out the body of target_cpu_store() into new function vmbus_channel_set_cpu() that can also be used elsewhere. No functional change is inte

RE: [PATCH v2 2/2] drivers/hv: add CPU offlining support

2025-01-15 Thread Michael Kelley
From: Hamza Mahfooz Sent: Wednesday, January 15, 2025 9:23 AM > > On Tue, Jan 14, 2025 at 02:43:33AM +, Michael Kelley wrote: > > From: Hamza Mahfooz Sent: Friday, January > 10, 2025 2:00 PM > > > > > > Currently, it is effectively impossible to offline CPUs. Since, most > > > CPUs will hav

Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-15 Thread Bill O'Donnell
On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote: > Add the const qualifier to all the ctl_tables in the tree except for > watchdog_hardlockup_sysctl, memory_allocation_profiling_sysctls, > loadpin_sysctl_table and the ones calling register_net_sysctl (./net, > drivers/inifiniband dirs

Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-15 Thread Wei Liu
On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote: [...] > diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c > index 7a35c82976e0..9453f0c26f2a 100644 > --- a/drivers/hv/hv_common.c > +++ b/drivers/hv/hv_common.c > @@ -141,7 +141,7 @@ static int sysctl_record_panic_msg = 1; >

Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-15 Thread Thomas Gleixner
On Fri, Jan 10 2025 at 15:16, Joel Granados wrote: > sed: > sed --in-place \ > -e "s/struct ctl_table .table = &uts_kern/const struct ctl_table *table > = \&uts_kern/" \ > kernel/utsname_sysctl.c > > Reviewed-by: Song Liu > Acked-by: Steven Rostedt (Google) # for kernel/trace/ >

Re: [PATCH v2 2/2] drivers/hv: add CPU offlining support

2025-01-15 Thread Hamza Mahfooz
On Tue, Jan 14, 2025 at 02:43:33AM +, Michael Kelley wrote: > From: Hamza Mahfooz Sent: Friday, January > 10, 2025 2:00 PM > > > > Currently, it is effectively impossible to offline CPUs. Since, most > > CPUs will have vmbus channels attached to them. So, as made mention of > > in commit d57