Re: [PATCH v9 4/4] vhost: Add a KConfig knob to enable IOCTL VHOST_FORK_FROM_OWNER

2025-04-20 Thread Jason Wang
On Mon, Apr 21, 2025 at 11:45 AM Jason Wang wrote: > > On Mon, Apr 21, 2025 at 10:45 AM Cindy Lu wrote: > > > > Introduce a new config knob `CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL`, > > to control the availability of the `VHOST_FORK_FROM_OWNER` ioctl. > > When CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL i

Re: [PATCH v9 4/4] vhost: Add a KConfig knob to enable IOCTL VHOST_FORK_FROM_OWNER

2025-04-20 Thread Jason Wang
On Mon, Apr 21, 2025 at 10:45 AM Cindy Lu wrote: > > Introduce a new config knob `CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL`, > to control the availability of the `VHOST_FORK_FROM_OWNER` ioctl. > When CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL is set to n, the ioctl > is disabled, and any attempt to use it w

Re: [PATCH v9 3/4] vhost: add VHOST_FORK_FROM_OWNER ioctl and validate inherit_owner

2025-04-20 Thread Jason Wang
On Mon, Apr 21, 2025 at 10:45 AM Cindy Lu wrote: > > Add a new UAPI to configure the vhost device to use the kthread mode. > The userspace application can use IOCTL VHOST_FORK_FROM_OWNER > to choose between owner and kthread mode if necessary. > This setting must be applied before VHOST_SET_OWNER,

Re: [PATCH v9 2/4] vhost: Reintroduce kthread mode support in vhost

2025-04-20 Thread Jason Wang
On Mon, Apr 21, 2025 at 10:45 AM Cindy Lu wrote: > > This patch reintroduces kthread mode support in vhost, > It also introduces struct vhost_worker_ops to abstract > worker create/stop/wakeup operations. > > * Bring back the original vhost_worker() implementation, > and renamed to vhost_run_wor

Re: [PATCH v9 1/4] vhost: Add a new parameter in vhost_dev to allow user select kthread

2025-04-20 Thread Jason Wang
On Mon, Apr 21, 2025 at 10:45 AM Cindy Lu wrote: > > The vhost now uses vhost_task and workers as a child of the owner thread. > While this aligns with containerization principles, it confuses some > legacy userspace applications, therefore, we are reintroducing kthread > API support. > > Introduc

Re: [PATCH v3 4/9] vhost: modify vhost_log_write() for broader users

2025-04-20 Thread Jason Wang
On Thu, Apr 3, 2025 at 2:32 PM Dongli Zhang wrote: > > Currently, the only user of vhost_log_write() is vhost-net. The 'len' > argument prevents logging of pages that are not tainted by the RX path. > > Adjustments are needed since more drivers (i.e. vhost-scsi) begin using > vhost_log_write(). So

Re: [PATCH v4 1/4] virtio-net: disable delayed refill when pausing rx

2025-04-20 Thread Jason Wang
On Thu, Apr 17, 2025 at 3:29 PM Bui Quang Minh wrote: > > When pausing rx (e.g. set up xdp, xsk pool, rx resize), we call > napi_disable() on the receive queue's napi. In delayed refill_work, it > also calls napi_disable() on the receive queue's napi. When > napi_disable() is called on an already

[PATCH v9 4/4] vhost: Add a KConfig knob to enable IOCTL VHOST_FORK_FROM_OWNER

2025-04-20 Thread Cindy Lu
Introduce a new config knob `CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL`, to control the availability of the `VHOST_FORK_FROM_OWNER` ioctl. When CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL is set to n, the ioctl is disabled, and any attempt to use it will result in failure. Signed-off-by: Cindy Lu --- driver

[PATCH v9 3/4] vhost: add VHOST_FORK_FROM_OWNER ioctl and validate inherit_owner

2025-04-20 Thread Cindy Lu
Add a new UAPI to configure the vhost device to use the kthread mode. The userspace application can use IOCTL VHOST_FORK_FROM_OWNER to choose between owner and kthread mode if necessary. This setting must be applied before VHOST_SET_OWNER, as the worker will be created in the VHOST_SET_OWNER functi

[PATCH v9 2/4] vhost: Reintroduce kthread mode support in vhost

2025-04-20 Thread Cindy Lu
This patch reintroduces kthread mode support in vhost, It also introduces struct vhost_worker_ops to abstract worker create/stop/wakeup operations. * Bring back the original vhost_worker() implementation, and renamed to vhost_run_work_kthread_list(). * Add cgroup support for the kthread * Intr

[PATCH v9 1/4] vhost: Add a new parameter in vhost_dev to allow user select kthread

2025-04-20 Thread Cindy Lu
The vhost now uses vhost_task and workers as a child of the owner thread. While this aligns with containerization principles, it confuses some legacy userspace applications, therefore, we are reintroducing kthread API support. Introduce a new parameter to enable users to choose between kthread and

[PATCH v9 0/4] vhost: Add support of kthread API

2025-04-20 Thread Cindy Lu
In commit 6e890c5d5021 ("vhost: use vhost_tasks for worker threads"), the vhost now uses vhost_task and operates as a child of the owner thread. This aligns with containerization principles. However, this change has caused confusion for some legacy userspace applications. Therefore, we

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-20 Thread Xu Kuohai
On 4/21/2025 12:02 AM, Alexis Lothoré wrote: Hi Xu, On Thu Apr 17, 2025 at 4:10 PM CEST, Xu Kuohai wrote: On 4/17/2025 3:14 PM, Alexis Lothoré wrote: Hi Andrii, On Wed Apr 16, 2025 at 11:24 PM CEST, Andrii Nakryiko wrote: On Fri, Apr 11, 2025 at 1:32 PM Alexis Lothoré (eBPF Foundation) wrot

[PATCH 2/2] soc: qcom: smp2p: Fix fallback to qcom,ipc parse

2025-04-20 Thread Barnabás Czémán
mbox_request_channel() returning value was changed in case of error. It uses returning value of of_parse_phandle_with_args(). It is returning with -ENOENT instead of -ENODEV when no mboxes property exists. Fixes: 24fdd5074b20 ("mailbox: use error ret code of of_parse_phandle_with_args()") Signed-

[PATCH 1/2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse

2025-04-20 Thread Barnabás Czémán
mbox_request_channel() returning value was changed in case of error. It uses returning value of of_parse_phandle_with_args(). It is returning with -ENOENT instead of -ENODEV when no mboxes property exists. Fixes: 24fdd5074b20 ("mailbox: use error ret code of of_parse_phandle_with_args()") Signed-

[PATCH 0/2] Fix fallback qcom,ipc parse

2025-04-20 Thread Barnabás Czémán
mbox_request_channel() returning value was changed in case of error. It uses returning value of of_parse_phandle_with_args(). It is returning with -ENOENT instead of -ENODEV when no mboxes property exists. ENODEV was checked before fallback to parse qcom,ipc property. Signed-off-by: Barnabás Czém

Re: [PATCH v9 3/5] KVM: selftests: Add core KVM selftests support for LoongArch

2025-04-20 Thread bibo mao
On 2025/4/20 下午3:45, Huacai Chen wrote: Hi, Bibo, On Wed, Apr 16, 2025 at 11:55 AM Bibo Mao wrote: Add core KVM selftests support for LoongArch, it includes exception handler, mmu page table setup and vCPU startup entry support. Signed-off-by: Bibo Mao --- .../selftests/kvm/lib/loongar

Re: [PATCH v9 2/5] KVM: selftests: Add KVM selftests header files for LoongArch

2025-04-20 Thread bibo mao
On 2025/4/20 下午3:38, Huacai Chen wrote: Hi, Bibo, On Wed, Apr 16, 2025 at 11:55 AM Bibo Mao wrote: Add KVM selftests header files for LoongArch, including processor.h and kvm_util_base.h. It mainly contains LoongArch CSR register definition and page table entry definition. Signed-off-by:

Re: [PATCH v7 1/2] selftests: memcg: Allow low event with no memory.low and memory_recursiveprot on

2025-04-20 Thread Waiman Long
On 4/16/25 5:25 AM, Michal Koutný wrote: On Tue, Apr 15, 2025 at 05:04:14PM -0400, Waiman Long wrote: + /* +* Child 2 has memory.low=0, but some low protection is still being +* distributed down from its parent with memory.low=50M if cgroup2 +* memory_recursivep

Re: [v3,1/2] rcutorture: Perform more frequent testing of ->gpwrap

2025-04-20 Thread Paul E. McKenney
On Sun, Apr 20, 2025 at 02:40:20AM -, Joel Fernandes wrote: > Hello, Paul, > > On April 20, 2025, 12:21 a.m. UTC Paul E. McKenney wrote: > > On Wed, Apr 16, 2025 at 11:19:22AM +, Joel Fernandes wrote: > > > > > > > > > > On Apr 15, 2025, at 8:19 PM, Paul E. McKenney > > > > wrote: > >

Re: [PATCH 1/3] ARM: dts: qcom: msm8974-oneplus-bacon: Add alias for mmc0

2025-04-20 Thread Luca Weiss
Hi Bjorn, On 20-04-2025 7:05 p.m., Bjorn Andersson wrote: On Sat, Apr 19, 2025 at 11:03:57AM +0200, Luca Weiss wrote: Add an alias for the internal storage so it always becomes mmcblk0. https://docs.kernel.org/process/submitting-patches.html#describe-your-changes calls for a problem descript

Re: [PATCH 1/3] ARM: dts: qcom: msm8974-oneplus-bacon: Add alias for mmc0

2025-04-20 Thread Bjorn Andersson
On Sat, Apr 19, 2025 at 11:03:57AM +0200, Luca Weiss wrote: > Add an alias for the internal storage so it always becomes mmcblk0. > https://docs.kernel.org/process/submitting-patches.html#describe-your-changes calls for a problem description to start your commit message. Sometimes the problem is

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-20 Thread Alexis Lothoré
Hi Xu, On Thu Apr 17, 2025 at 4:10 PM CEST, Xu Kuohai wrote: > On 4/17/2025 3:14 PM, Alexis Lothoré wrote: >> Hi Andrii, >> >> On Wed Apr 16, 2025 at 11:24 PM CEST, Andrii Nakryiko wrote: >>> On Fri, Apr 11, 2025 at 1:32 PM Alexis Lothoré (eBPF Foundation) >>> wrote: [...] >>> I might be missi

Re: [PATCH net-next v2] vhost/net: Defer TX queue re-enable until after sendmsg

2025-04-20 Thread Jon Kohler
> On Apr 20, 2025, at 3:32 AM, Michael S. Tsirkin wrote: > > !---| > CAUTION: External Email > > |---! > > On Sat, Apr 19, 2025 at 06:05:18PM -0700, Jon Kohler wrot

Re: [PATCH v9 3/5] KVM: selftests: Add core KVM selftests support for LoongArch

2025-04-20 Thread Huacai Chen
Hi, Bibo, On Wed, Apr 16, 2025 at 11:55 AM Bibo Mao wrote: > > Add core KVM selftests support for LoongArch, it includes exception > handler, mmu page table setup and vCPU startup entry support. > > Signed-off-by: Bibo Mao > --- > .../selftests/kvm/lib/loongarch/exception.S | 59 +++ > .../s

Re: [PATCH v9 2/5] KVM: selftests: Add KVM selftests header files for LoongArch

2025-04-20 Thread Huacai Chen
Hi, Bibo, On Wed, Apr 16, 2025 at 11:55 AM Bibo Mao wrote: > > Add KVM selftests header files for LoongArch, including processor.h > and kvm_util_base.h. It mainly contains LoongArch CSR register > definition and page table entry definition. > > Signed-off-by: Bibo Mao > --- > .../testing/selft

Re: [PATCH net-next v2] vhost/net: Defer TX queue re-enable until after sendmsg

2025-04-20 Thread Michael S. Tsirkin
On Sat, Apr 19, 2025 at 06:05:18PM -0700, Jon Kohler wrote: > In handle_tx_copy, TX batching processes packets below ~PAGE_SIZE and > batches up to 64 messages before calling sock->sendmsg. > > Currently, when there are no more messages on the ring to dequeue, > handle_tx_copy re-enables kicks on