Re: [PATCH 0/5] hyper-v: Don't assume cpu_possible_mask is dense

2024-12-10 Thread Wei Liu
On Tue, Dec 10, 2024 at 07:58:34PM +, Michael Kelley wrote: > From: mhkelle...@gmail.com Sent: Wednesday, October 2, > 2024 8:53 PM > > > > Code specific to Hyper-V guests currently assumes the cpu_possible_mask > > is "dense" -- i.e., all bit positions 0 thru (nr_cpu_ids - 1) are set, > > w

RE: [PATCH 0/5] hyper-v: Don't assume cpu_possible_mask is dense

2024-12-10 Thread Michael Kelley
From: mhkelle...@gmail.com Sent: Wednesday, October 2, 2024 8:53 PM > > Code specific to Hyper-V guests currently assumes the cpu_possible_mask > is "dense" -- i.e., all bit positions 0 thru (nr_cpu_ids - 1) are set, > with no "holes". Therefore, num_possible_cpus() is assumed to be equal > to n

Re: kernel: fix hv tools build for arm64 when cross-built

2024-12-10 Thread Wei Liu
On Tue, Dec 10, 2024 at 06:34:28PM +, Wei Liu wrote: > On Mon, Dec 09, 2024 at 07:39:10PM -0800, Saurabh Singh Sengar wrote: > > On Mon, Dec 09, 2024 at 06:46:42PM +, Wei Liu wrote: > > > On Mon, Dec 09, 2024 at 12:30:35AM -0800, Saurabh Singh Sengar wrote: > > > > On Mon, Dec 09, 2024 at 1

Re: kernel: fix hv tools build for arm64 when cross-built

2024-12-10 Thread Wei Liu
On Mon, Dec 09, 2024 at 07:39:10PM -0800, Saurabh Singh Sengar wrote: > On Mon, Dec 09, 2024 at 06:46:42PM +, Wei Liu wrote: > > On Mon, Dec 09, 2024 at 12:30:35AM -0800, Saurabh Singh Sengar wrote: > > > On Mon, Dec 09, 2024 at 12:44:22AM +, Wei Liu wrote: > > > > On Wed, Oct 23, 2024 at 0

Re: [PATCH 1/2] hyperv: Move hv_current_partition_id to arch-generic code

2024-12-10 Thread Nuno Das Neves
On 12/7/2024 7:01 PM, Michael Kelley wrote: > From: Nuno Das Neves Sent: Friday, > December 6, 2024 2:22 PM >> >> Make hv_current_partition_id available in both x86_64 and arm64. >> This feature isn't specific to x86_64 and will be needed by common >> code. >> >> While at it, replace the BUG()s w

Re: [PATCH v2 0/2] MANA: Fix few memory leaks in mana_gd_setup_irqs

2024-12-10 Thread Saurabh Singh Sengar
On Mon, Dec 09, 2024 at 12:57:49PM -0500, Maxim Levitsky wrote: > Fix 2 minor memory leaks in the mana driver, > introduced by commit > > 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") > > Best regards, > Maxim Levitsky > > Maxim Levitsky (2): > net: mana: Fix memory leak

Re: [PATCH v2 2/2] net: mana: Fix irq_contexts memory leak in mana_gd_setup_irqs

2024-12-10 Thread Kalesh Anakkur Purayil
On Mon, Dec 9, 2024 at 11:29 PM Maxim Levitsky wrote: > > gc->irq_contexts is not freeded if one of the later operations > fail. > > Suggested-by: Michael Kelley > Fixes: 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") > Signed-off-by: Maxim Levitsky LGTM Reviewed-by: Kalesh AP

Re: [PATCH v2 1/2] net: mana: Fix memory leak in mana_gd_setup_irqs

2024-12-10 Thread Kalesh Anakkur Purayil
On Mon, Dec 9, 2024 at 11:28 PM Maxim Levitsky wrote: > > Commit 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") > added memory allocation in mana_gd_setup_irqs of 'irqs' but the code > doesn't free this temporary array in the success path. > > This was caught by kmemleak. > > Fixes