Re: [patch 02/10] genirq/msi: Use lock guards for MSI descriptor locking

2025-03-12 Thread Jonathan Cameron
On Tue, 11 Mar 2025 22:26:52 +0100 Thomas Gleixner wrote: > On Tue, Mar 11 2025 at 18:00, Jonathan Cameron wrote: > > On Sun, 9 Mar 2025 09:41:44 +0100 (CET) > > Thomas Gleixner wrote: > > >> > >> @@ -1037,25 +1032,23 @@ bool msi_create_device_irq_domain(struct > >>if (msi_setup_device

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

2025-03-12 Thread Jonathan Cameron
On Tue, 11 Mar 2025 22:45:44 +0100 Thomas Gleixner wrote: > On Tue, Mar 11 2025 at 18:10, Jonathan Cameron wrote: > > On Sun, 9 Mar 2025 09:41:49 +0100 (CET) > > Thomas Gleixner wrote: > > > > This one runs into some of the stuff that the docs say > > to not do. I don't there there are bugs in

Re: [PATCH hyperv-next v5 03/11] Drivers: hv: Enable VTL mode for arm64

2025-03-12 Thread Arnd Bergmann
On Wed, Mar 12, 2025, at 19:33, Roman Kisel wrote: > On 3/10/2025 3:18 PM, Michael Kelley wrote: > > That's a minimal extension, its surprise factor is very low. It has not > been seen to cause issues. If no one has strong opinions against that, > I'd send that in V6. > Works for me. Thanks for yo

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

2025-03-12 Thread Long Li
> > Hi, > > > > If we don't want to use a tracker, can we take the v4 version of the patch > > set? > > > > Otherwise, please take v5 (this patch) if a tracker is required. > > Let's use v5 version as it is more complete variant, however the series needs > to > be rebased as it doesn't apply a

Re: [RFC 1/5] meminfo: add a per node counter for balloon drivers

2025-03-12 Thread David Hildenbrand
On 12.03.25 01:06, Nico Pache wrote: Add NR_BALLOON_PAGES counter to track memory used by balloon drivers and expose it through /proc/meminfo and other memory reporting interfaces. In balloon_page_enqueue_one(), we perform a __count_vm_event(BALLOON_INFLATE) and in balloon_page_list_dequeue

Re: [PATCH hyperv-next v5 03/11] Drivers: hv: Enable VTL mode for arm64

2025-03-12 Thread Roman Kisel
On 3/10/2025 3:18 PM, Michael Kelley wrote: From: Arnd Bergmann Sent: Monday, March 10, 2025 2:21 PM On Mon, Mar 10, 2025, at 22:01, Michael Kelley wrote: From: Arnd Bergmann Sent: Saturday, March 8, 2025 1:05 PM config HYPERV_VTL_MODE bool "Enable Linux to boot in VTL context"

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

2025-03-12 Thread Nuno Das Neves
On 3/10/2025 6:01 AM, Tianyu Lan wrote: > On Thu, Feb 27, 2025 at 7:09 AM Nuno Das Neves > wrote: >> >> 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 >>

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

2025-03-12 Thread Leon Romanovsky
On Mon, Mar 10, 2025 at 09:46:08PM +, Long Li wrote: > > 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 th

Re: [patch 03/10] soc: ti: ti_sci_inta_msi: Switch MSI descriptor locking to guard()

2025-03-12 Thread Nishanth Menon
On 09:41-20250309, Thomas Gleixner wrote: > Convert the code to use the new guard(msi_descs_lock). > > No functional change intended. > > Signed-off-by: Thomas Gleixner > Cc: Nishanth Menon > Cc: Tero Kristo > Cc: Santosh Shilimkar > --- > drivers/soc/ti/ti_sci_inta_msi.c | 10 +++--- >

Re: [RFC 4/5] vmx_balloon: update the NR_BALLOON_PAGES state

2025-03-12 Thread Nico Pache
On Wed, Mar 12, 2025 at 12:57 AM Michael S. Tsirkin wrote: > > On Tue, Mar 11, 2025 at 06:06:59PM -0600, Nico Pache wrote: > > Update the NR_BALLOON_PAGES counter when pages are added to or > > removed from the VMware balloon. > > > > Signed-off-by: Nico Pache > > --- > > drivers/misc/vmw_balloo

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

2025-03-12 Thread Nuno Das Neves
On 3/10/2025 5:40 AM, Tianyu Lan wrote: > On Thu, Feb 27, 2025 at 7:11 AM Nuno Das Neves > wrote: >> >> 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 >> --- > >

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

2025-03-12 Thread Nuno Das Neves
On 3/6/2025 10:30 AM, Michael Kelley wrote: > From: Nuno Das Neves Sent: Wednesday, > February 26, 2025 3:08 PM >> >> 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_hype

Re: [PATCH hyperv-next v5 03/11] Drivers: hv: Enable VTL mode for arm64

2025-03-12 Thread Wei Liu
On Wed, Mar 12, 2025 at 11:33:11AM -0700, Roman Kisel wrote: > > > On 3/10/2025 3:18 PM, Michael Kelley wrote: > > From: Arnd Bergmann Sent: Monday, March 10, 2025 2:21 PM > > > > > > On Mon, Mar 10, 2025, at 22:01, Michael Kelley wrote: > > > > From: Arnd Bergmann Sent: Saturday, March 8, 202

Re: [RFC 1/5] meminfo: add a per node counter for balloon drivers

2025-03-12 Thread Nico Pache
On Tue, Mar 11, 2025 at 10:21 PM Shakeel Butt wrote: > > On Tue, Mar 11, 2025 at 06:06:56PM -0600, Nico Pache wrote: > > Add NR_BALLOON_PAGES counter to track memory used by balloon drivers and > > expose it through /proc/meminfo and other memory reporting interfaces. > > > > Signed-off-by: Nico P

[PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-03-12 Thread Bobby Eshleman
pback.c | 4 +- 10 files changed, 180 insertions(+), 43 deletions(-) --- base-commit: 0ea09cbf8350b70ad44d67a1dcb379008a356034 change-id: 20250312-vsock-netns-45da9424f726 Best regards, -- Bobby Eshleman

[PATCH v2 2/3] vsock/virtio_transport_common: handle netns of received packets

2025-03-12 Thread Bobby Eshleman
From: Stefano Garzarella This patch allows transports that use virtio_transport_common to specify the network namespace where a received packet is to be delivered. virtio_transport and vhost_transport, for now, still do not use this capability and preserve old behavior. Signed-off-by: Stefano G

Re: [RFC 4/5] vmx_balloon: update the NR_BALLOON_PAGES state

2025-03-12 Thread Michael S. Tsirkin
On Wed, Mar 12, 2025 at 02:11:09PM -0600, Nico Pache wrote: > On Wed, Mar 12, 2025 at 12:57 AM Michael S. Tsirkin wrote: > > > > On Tue, Mar 11, 2025 at 06:06:59PM -0600, Nico Pache wrote: > > > Update the NR_BALLOON_PAGES counter when pages are added to or > > > removed from the VMware balloon. >

[PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-12 Thread Bobby Eshleman
From: Stefano Garzarella This patch assigns the network namespace of the process that opened vhost-vsock-netns device (e.g. VMM) to the packets coming from the guest, allowing only host sockets in the same network namespace to communicate with the guest. This patch also allows having different V

[PATCH v2 1/3] vsock: add network namespace support

2025-03-12 Thread Bobby Eshleman
From: Stefano Garzarella This patch adds a check of the "net" assigned to a socket during the vsock_find_bound_socket() and vsock_find_connected_socket() to support network namespace, allowing to share the same address (cid, port) across different network namespaces. This patch preserves old beh

[PATCH v2 0/6] hyperv: Introduce new way to manage hypercall args

2025-03-12 Thread mhkelley58
From: Michael Kelley This patch set introduces a new way to manage the use of the per-cpu memory that is usually the input and output arguments to Hyper-V hypercalls. Current code allocates the "hyperv_pcpu_input_arg", and in some configurations, the "hyperv_pcpu_output_arg". Each is a 4 KiB page

[PATCH v2 1/6] Drivers: hv: Introduce hv_hvcall_*() functions for hypercall arguments

2025-03-12 Thread mhkelley58
From: Michael Kelley Current code allocates the "hyperv_pcpu_input_arg", and in some configurations, the "hyperv_pcpu_output_arg". Each is a 4 KiB page of memory allocated per-vCPU. A hypercall call site disables interrupts, then uses this memory to set up the input parameters for the hypercall,

[PATCH v2 2/6] x86/hyperv: Use hv_hvcall_*() to set up hypercall arguments -- part 1

2025-03-12 Thread mhkelley58
From: Michael Kelley Update hypercall call sites to use the new hv_hvcall_*() functions to set up hypercall arguments. Since these functions zero the fixed portion of input memory, remove now redundant calls to memset() and explicit zero'ing of input fields. Signed-off-by: Michael Kelley --- N

[PATCH v2 4/6] Drivers: hv: Use hv_hvcall_*() to set up hypercall arguments

2025-03-12 Thread mhkelley58
From: Michael Kelley Update hypercall call sites to use the new hv_hvcall_*() functions to set up hypercall arguments. Since these functions zero the fixed portion of input memory, remove now redundant zero'ing of input fields. hv_post_message() requires additional updates. The payload area is t

[PATCH v2 5/6] PCI: hv: Use hv_hvcall_*() to set up hypercall arguments

2025-03-12 Thread mhkelley58
From: Michael Kelley Update hypercall call sites to use the new hv_hvcall_*() functions to set up hypercall arguments. Since these functions zero the fixed portion of input memory, remove now redundant calls to memset(). Signed-off-by: Michael Kelley Acked-by: Bjorn Helgaas --- Notes: Cha

[PATCH v2 6/6] Drivers: hv: Replace hyperv_pcpu_input/output_arg with hyperv_pcpu_arg

2025-03-12 Thread mhkelley58
From: Michael Kelley All open coded uses of hyperv_pcpu_input_arg and hyperv_pcpu_ouput_arg have been replaced by hv_hvcall_*() functions. So combine hyperv_pcpu_input_arg and hyperv_pcpu_output_arg in a single hyperv_pcpu_arg. Remove logic for managing a separate output arg. Fixup comment refere

[PATCH v2 3/6] x86/hyperv: Use hv_hvcall_*() to set up hypercall arguments -- part 2

2025-03-12 Thread mhkelley58
From: Michael Kelley Update hypercall call sites to use the new hv_hvcall_*() functions to set up hypercall arguments. Since these functions zero the fixed portion of input memory, remove now redundant calls to memset() and explicit zero'ing of input fields. For hv_mark_gpa_visibility(), use the

RE: [PATCH hyperv-next v5 03/11] Drivers: hv: Enable VTL mode for arm64

2025-03-12 Thread Michael Kelley
From: Roman Kisel Sent: Wednesday, March 12, 2025 2:21 PM > > On 3/12/2025 1:25 PM, Arnd Bergmann wrote: > > On Wed, Mar 12, 2025, at 19:33, Roman Kisel wrote: > >> > >> That's a minimal extension, its surprise factor is very low. It has not > >> been seen to cause issues. If no one has strong o

Re: [PATCH net-next 0/3] vsock: support network namespace

2025-03-12 Thread Bobby Eshleman
On Tue, Mar 11, 2025 at 08:59:44AM +0800, Jason Wang wrote: > On Tue, Mar 11, 2025 at 4:14 AM Bobby Eshleman > wrote: > > > > On Wed, Mar 05, 2025 at 01:46:54PM +0800, Jason Wang wrote: > > > On Wed, Mar 5, 2025 at 8:39 AM Bobby Eshleman > > > wrote: > > > > > > > > On Tue, Apr 28, 2020 at 06:0

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

2025-03-12 Thread longli
From: Long Li 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 if the upper device is present. Signed-off-by: Long Li --- Chan

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

2025-03-12 Thread longli
From: Long Li When running under Hyper-V, the master device to the RDMA device is always bonded to this RDMA device. This is not user-configurable. The master device can be unbind/bind from the kernel. During those events, the RDMA device should set to the current netdev to reflect the change of

Re: [PATCH hyperv-next v5 03/11] Drivers: hv: Enable VTL mode for arm64

2025-03-12 Thread Roman Kisel
On 3/12/2025 1:25 PM, Arnd Bergmann wrote: On Wed, Mar 12, 2025, at 19:33, Roman Kisel wrote: On 3/10/2025 3:18 PM, Michael Kelley wrote: That's a minimal extension, its surprise factor is very low. It has not been seen to cause issues. If no one has strong opinions against that, I'd send th

Re: [RFC 4/5] vmx_balloon: update the NR_BALLOON_PAGES state

2025-03-12 Thread David Hildenbrand
On 12.03.25 21:11, Nico Pache wrote: On Wed, Mar 12, 2025 at 12:57 AM Michael S. Tsirkin wrote: On Tue, Mar 11, 2025 at 06:06:59PM -0600, Nico Pache wrote: Update the NR_BALLOON_PAGES counter when pages are added to or removed from the VMware balloon. Signed-off-by: Nico Pache --- drivers

Re: [RFC 1/5] meminfo: add a per node counter for balloon drivers

2025-03-12 Thread Nico Pache
On Wed, Mar 12, 2025 at 4:19 PM David Hildenbrand wrote: > > On 12.03.25 01:06, Nico Pache wrote: > > Add NR_BALLOON_PAGES counter to track memory used by balloon drivers and > > expose it through /proc/meminfo and other memory reporting interfaces. > > In balloon_page_enqueue_one(), we perform a

Re: [PATCH hyperv-next v5 03/11] Drivers: hv: Enable VTL mode for arm64

2025-03-12 Thread Roman Kisel
On 3/12/2025 1:31 PM, Wei Liu wrote: On Wed, Mar 12, 2025 at 11:33:11AM -0700, Roman Kisel wrote: On 3/10/2025 3:18 PM, Michael Kelley wrote: From: Arnd Bergmann Sent: Monday, March 10, 2025 2:21 PM On Mon, Mar 10, 2025, at 22:01, Michael Kelley wrote: From: Arnd Bergmann Sent: Saturd

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-03-12 Thread Bobby Eshleman
| 1 + > include/linux/virtio_vsock.h| 2 + > include/net/af_vsock.h | 10 ++-- > net/vmw_vsock/af_vsock.c | 85 +++-- > net/vmw_vsock/hyperv_transport.c| 2 +- > net/vmw_vsock/virtio_transport.c| 5 +- > net/vmw_vsock/virtio_transport_common.c | 14 - > net/vmw_vsock/vmci_transport.c | 4 +- > net/vmw_vsock/vsock_loopback.c | 4 +- > 10 files changed, 180 insertions(+), 43 deletions(-) > --- > base-commit: 0ea09cbf8350b70ad44d67a1dcb379008a356034 > change-id: 20250312-vsock-netns-45da9424f726 > > Best regards, > -- > Bobby Eshleman >