[PATCH hyperv-next v6 05/11] arm64: hyperv: Initialize the Virtual Trust Level field

2025-03-15 Thread Roman Kisel
Various parts of the hyperv code need to know what VTL the kernel runs at, most notably VMBus needs that to establish communication with the host. Initialize the Virtual Trust Level field to enable booting in the Virtual Trust Level. Signed-off-by: Roman Kisel Reviewed-by: Michael Kelley --- a

Re: [PATCH hyperv-next v6 01/11] arm64: kvm, smccc: Introduce and use API for detecting hypervisor presence

2025-03-15 Thread Roman Kisel
On 3/14/2025 5:19 PM, Roman Kisel wrote: The KVM/arm64 uses SMCCC to detect hypervisor presence. That code is private, and it follows the SMCCC specification. Other existing and emerging hypervisor guest implementations can and should use that standard approach as well. Factor out a common in

RE: [PATCH v5 08/10] x86: hyperv: Add mshv_handler irq handler and setup function

2025-03-15 Thread Michael Kelley
From: Nuno Das Neves Sent: Monday, March 10, 2025 2:47 PM > > On 3/7/2025 9:38 AM, Michael Kelley wrote: > > From: Nuno Das Neves Sent: Friday, > > February 28, > 2025 4:38 PM > >> > >> On 2/26/2025 3:43 PM, Stanislav Kinsburskii wrote: > >>> On Wed, Feb 26, 2025 at 03:08:02PM -0800, Nuno Das

Re: [PATCH v5 10/10] Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs

2025-03-15 Thread Nuno Das Neves
On 3/11/2025 11:01 AM, Jeff Johnson wrote: > On 2/26/25 15:08, Nuno Das Neves wrote: > ... >> + >> +MODULE_AUTHOR("Microsoft"); >> +MODULE_LICENSE("GPL"); >> + > > Since commit 1fffe7a34c89 ("script: modpost: emit a warning when the > description is missing"), a module without a MODULE_DESCRIPTION

Re: [PATCH hyperv-next v2 1/1] scsi: storvsc: Don't report the host packet status as the hv status

2025-03-15 Thread Martin K. Petersen
Roman, > The log statement reports the packet status code as the hv status code > which causes confusion when debugging as "hv" might refer to a > hypervisor, and sometimes to the host part of the Hyper-V > virtualization stack. Applied to 6.15/scsi-staging, thanks! -- Martin K. Petersen

[PATCH v6 05/10] acpi: numa: Export node_to_pxm()

2025-03-15 Thread Nuno Das Neves
node_to_pxm() is used by hv_numa_node_to_pxm_info(). That helper will be used by Hyper-V root partition module code when CONFIG_MSHV_ROOT=m. Signed-off-by: Nuno Das Neves Reviewed-by: Stanislav Kinsburskii Reviewed-by: Easwar Hariharan Reviewed-by: Michael Kelley Reviewed-by: Tianyu Lan ---

RE: [Patch v2] uio_hv_generic: Set event for all channels on the device

2025-03-15 Thread Long Li
> -Original Message- > From: Saurabh Singh Sengar > Sent: Monday, March 10, 2025 10:31 AM > To: Long Li > Cc: lon...@linuxonhyperv.com; KY Srinivasan ; Haiyang > Zhang ; Wei Liu ; Dexuan Cui > ; Greg Kroah-Hartman ; > linux-hyperv@vger.kernel.org; linux-ker...@vger.kernel.org > Subject

[PATCH hyperv-next v6 01/11] arm64: kvm, smccc: Introduce and use API for detecting hypervisor presence

2025-03-15 Thread Roman Kisel
The KVM/arm64 uses SMCCC to detect hypervisor presence. That code is private, and it follows the SMCCC specification. Other existing and emerging hypervisor guest implementations can and should use that standard approach as well. Factor out a common infrastructure that the guests can use, update K

RE: [PATCH v5 06/10] Drivers/hv: Export some functions for use by root partition module

2025-03-15 Thread Michael Kelley
From: Nuno Das Neves Sent: Wednesday, February 26, 2025 3:08 PM > Nit: For the patch Subject line, use prefix "Drivers: hv:" instead of with a slash. That's what we usually use and what you have used for other patches in this series. > get_hypervisor_version, hv_call_deposit_pages, hv_call_cr

[PATCH v6 09/10] hyperv: Add definitions for root partition driver to hv headers

2025-03-15 Thread Nuno Das Neves
A few additional definitions are required for the mshv driver code (to follow). Introduce those here and clean up a little bit while at it. Signed-off-by: Nuno Das Neves Reviewed-by: Roman Kisel Reviewed-by: Stanislav Kinsburskii Reviewed-by: Tianyu Lan --- include/hyperv/hvgdk_mini.h | 72 +

Re: [PATCH net] net: mana: Support holes in device list reply msg

2025-03-15 Thread Shradha Gupta
On Wed, Mar 05, 2025 at 01:46:21PM -0800, Haiyang Zhang wrote: > According to GDMA protocol, holes (zeros) are allowed at the beginning > or middle of the gdma_list_devices_resp message. The existing code > cannot properly handle this, and may miss some devices in the list. > > To fix, scan the en

Re: [Patch v2] uio_hv_generic: Set event for all channels on the device

2025-03-15 Thread Saurabh Singh Sengar
On Mon, Mar 10, 2025 at 05:16:15PM +, Long Li wrote: > > Subject: Re: [Patch v2] uio_hv_generic: Set event for all channels on the > > device > > > > On Fri, Feb 28, 2025 at 02:14:14PM -0800, lon...@linuxonhyperv.com wrote: > > > From: Long Li > > > > > > Hyper-V may offer a non latency sens

Re: [PATCH hyperv-next v5 06/11] arm64, x86: hyperv: Report the VTL the system boots in

2025-03-15 Thread Roman Kisel
On 3/9/2025 5:31 PM, Wei Liu wrote: On Fri, Mar 07, 2025 at 02:02:58PM -0800, Roman Kisel wrote: The hyperv guest code might run in various Virtual Trust Levels. Report the level when the kernel boots in the non-default (0) one. Signed-off-by: Roman Kisel --- arch/arm64/hyperv/mshyperv.c

Re: [patch rdma-next v6 1/2] net: mana: Change the function signature of mana_get_primary_netdev_rcu

2025-03-15 Thread Leon Romanovsky
On Wed, 12 Mar 2025 16:15:31 -0700, lon...@linuxonhyperv.com wrote: > Change mana_get_primary_netdev_rcu() to mana_get_primary_netdev(), and > return the ndev with refcount held. The caller is responsible for dropping > the refcount. > > Also drop the check for IFF_SLAVE as it is not necessary i

Re: [patch 06/10] PCI: hv: Switch MSI descriptor locking to guard()

2025-03-15 Thread Wei Liu
On Sun, Mar 09, 2025 at 09:41:51AM +0100, Thomas Gleixner wrote: > Convert the code to use the new guard(msi_descs_lock). > > No functional change intended. > > Signed-off-by: Thomas Gleixner > Cc: Haiyang Zhang > Cc: Wei Liu > Cc: Bjorn Helgaas > Cc: linux-hyperv@vger.kernel.org > Cc: linux-

[PATCH hyperv-next v6 08/11] Drivers: hv: vmbus: Get the IRQ number from DeviceTree

2025-03-15 Thread Roman Kisel
The VMBus driver uses ACPI for interrupt assignment on arm64 hence it won't function in the VTL mode where only DeviceTree can be used. Update the VMBus driver to discover interrupt configuration from DT. Signed-off-by: Roman Kisel Reviewed-by: Michael Kelley --- drivers/hv/vmbus_drv.c | 30 ++

Re: [PATCH net-next 3/7] net: netsec: Add metadata support for xdp mode

2025-03-15 Thread Ilias Apalodimas
On Tue, 11 Mar 2025 at 14:19, Lorenzo Bianconi wrote: > > Set metadata size building the skb from xdp_buff in netsec driver > > Signed-off-by: Lorenzo Bianconi > --- > drivers/net/ethernet/socionext/netsec.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/

[PATCH hyperv-next v6 02/11] arm64: hyperv: Use SMCCC to detect hypervisor presence

2025-03-15 Thread Roman Kisel
The arm64 Hyper-V startup path relies on ACPI to detect running under a Hyper-V compatible hypervisor. That doesn't work on non-ACPI systems. Hoist the ACPI detection logic into a separate function. Then use the vendor-specific hypervisor service call (implemented recently in Hyper-V) via SMCCC in

Re: [patch 00/10] genirq/msi: Spring cleaning

2025-03-15 Thread Bjorn Helgaas
On Sun, Mar 09, 2025 at 09:41:40AM +0100, Thomas Gleixner wrote: > While converting the MSI descriptor locking to a lock guard() I stumbled > over various abuse of MSI descriptors (again). > > The following series cleans up the offending code and converts the MSI > descriptor locking over to lock

Re: [PATCH hyperv-next v6 01/11] arm64: kvm, smccc: Introduce and use API for detecting hypervisor presence

2025-03-15 Thread Arnd Bergmann
On Sat, Mar 15, 2025, at 01:27, Roman Kisel wrote: > On 3/14/2025 5:19 PM, Roman Kisel wrote: > > While the change is Acked, here is the caveat maybe. > > This patch produces warnings wtih sparse and CHECK_ENDING. > That said, the kernel build produces a whole lot more other warnings > from buildin

[PATCH hyperv-next v6 06/11] arm64, x86: hyperv: Report the VTL the system boots in

2025-03-15 Thread Roman Kisel
The hyperv guest code might run in various Virtual Trust Levels. Report the level when the kernel boots in the non-default (0) one. Signed-off-by: Roman Kisel --- arch/arm64/hyperv/mshyperv.c | 2 ++ arch/x86/hyperv/hv_vtl.c | 7 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff

[PATCH v6 07/10] Drivers: hv: Introduce per-cpu event ring tail

2025-03-15 Thread Nuno Das Neves
Add a pointer hv_synic_eventring_tail to track the tail pointer for the SynIC event ring buffer for each SINT. This will be used by the mshv driver, but must be tracked independently since the driver module could be removed and re-inserted. Signed-off-by: Nuno Das Neves Reviewed-by: Wei Liu Rev

Re: [PATCH hyperv-next v5 09/11] Drivers: hv: vmbus: Introduce hv_get_vmbus_root_device()

2025-03-15 Thread Roman Kisel
On 3/10/2025 6:41 AM, Tianyu Lan wrote: On Sat, Mar 8, 2025 at 6:05 AM Roman Kisel wrote: The ARM64 PCI code for hyperv needs to know the VMBus root device, and it is private. Provide a function that returns it. Rename it from "hv_dev" as "hv_dev" as a symbol is very overloaded. No functio

Re: [PATCH hyperv-next v6 11/11] PCI: hv: Get vPCI MSI IRQ domain from DeviceTree

2025-03-15 Thread Bjorn Helgaas
On Fri, Mar 14, 2025 at 05:19:31PM -0700, Roman Kisel wrote: > The hyperv-pci driver uses ACPI for MSI IRQ domain configuration on > arm64. It won't be able to do that in the VTL mode where only DeviceTree > can be used. > > Update the hyperv-pci driver to get vPCI MSI IRQ domain in the DeviceTree

[PATCH hyperv-next v6 11/11] PCI: hv: Get vPCI MSI IRQ domain from DeviceTree

2025-03-15 Thread Roman Kisel
The hyperv-pci driver uses ACPI for MSI IRQ domain configuration on arm64. It won't be able to do that in the VTL mode where only DeviceTree can be used. Update the hyperv-pci driver to get vPCI MSI IRQ domain in the DeviceTree case, too. Signed-off-by: Roman Kisel --- drivers/pci/controller/pc

RE: [EXTERNAL] Re: [patch rdma-next v5 2/2] RDMA/mana_ib: Handle net event for pointing to the current netdev

2025-03-15 Thread Long Li
> Subject: RE: [EXTERNAL] Re: [patch rdma-next v5 2/2] RDMA/mana_ib: > Handle net event for pointing to the current netdev > > > Subject: [EXTERNAL] Re: [patch rdma-next v5 2/2] RDMA/mana_ib: Handle > > net event for pointing to the current netdev > > > > On Thu, Mar 06, 2025 at 11:24:39AM -0800,

Re: [patch 04/10] NTB/msi: Switch MSI descriptor locking to lock guard()

2025-03-15 Thread Dave Jiang
On 3/9/25 1:41 AM, Thomas Gleixner wrote: > Convert the code to use the new guard(msi_descs_lock). > > No functional change intended. > > Signed-off-by: Thomas Gleixner > Cc: Jon Mason > Cc: Dave Jiang > Cc: Allen Hubbe > Cc: n...@lists.linux.dev Acked-by: Dave Jiang > --- > drivers/nt

[PATCH v6 02/10] x86/mshyperv: Add support for extended Hyper-V features

2025-03-15 Thread Nuno Das Neves
From: Stanislav Kinsburskii Extend the "ms_hyperv_info" structure to include a new field, "ext_features", for capturing extended Hyper-V features. Update the "ms_hyperv_init_platform" function to retrieve these features using the cpuid instruction and include them in the informational output. Si