RE: [PATCH hyperv-next] arch/x86: Provide the CPU number in the wakeup AP callback

2025-04-29 Thread Michael Kelley
From: Roman Kisel Sent: Monday, April 28, 2025 4:00 PM > > When starting APs, confidential guests and paravisor guests > need to know the CPU number, and the pattern of using the linear > search has emerged in several places. With N processors that leads > to the O(N^2) time complexity. > > Pro

RE: [PATCH hyperv-next v3] x86/hyperv: Fix APIC ID and VP index confusion in hv_snp_boot_ap()

2025-04-29 Thread Michael Kelley
From: Roman Kisel Sent: Monday, April 28, 2025 11:27 AM > > To start an application processor in SNP-isolated guest, a hypercall > is used that takes a virtual processor index. The hv_snp_boot_ap() > function uses that START_VP hypercall but passes as VP index to it > what it receives as a wakeu

Re: [PATCH v2 1/3] PCI: Export pci_msix_prepare_desc() for dynamic MSI-X alloc

2025-04-29 Thread Shradha Gupta
On Mon, Apr 28, 2025 at 02:22:57PM +0200, Thomas Gleixner wrote: > On Fri, Apr 25 2025 at 11:37, Bjorn Helgaas wrote: > > Subject prefix wants to be PCI/MSI > > git log --format=oneline path/to/file > > gives you a pretty decent hint > > > > > On Fri, Apr 25, 2025 at 03:53:57AM -0700, Shrad

Re: [PATCH v2 2/3] PCI: hv: Allow dynamic MSI-X vector allocation

2025-04-29 Thread Shradha Gupta
On Mon, Apr 28, 2025 at 01:47:22PM +, Michael Kelley wrote: > From: Shradha Gupta Sent: Friday, April > 25, 2025 3:54 AM > > > > Allow dynamic MSI-X vector allocation for pci_hyperv PCI controller > > by adding support for the flag MSI_FLAG_PCI_MSIX_ALLOC_DYN and using > > pci_msix_prepare_d

Re: [PATCH v2 3/3] net: mana: Allocate MSI-X vectors dynamically as required

2025-04-29 Thread Shradha Gupta
On Mon, Apr 28, 2025 at 09:38:06AM -0400, Yury Norov wrote: > On Fri, Apr 25, 2025 at 03:54:38AM -0700, Shradha Gupta wrote: > > Currently, the MANA driver allocates MSI-X vectors statically based on > > MANA_MAX_NUM_QUEUES and num_online_cpus() values and in some cases ends > > up allocating more