Re: [PATCH v2 1/7] vhost: Add a new modparam to allow userspace select vhost_task

2024-10-13 Thread Cindy Lu
On Wed, 9 Oct 2024 at 16:20, Jason Wang wrote: > > On Wed, Oct 9, 2024 at 4:10 PM Stefano Garzarella wrote: > > > > On Wed, Oct 09, 2024 at 03:28:19PM GMT, Jason Wang wrote: > > >On Mon, Oct 7, 2024 at 9:31 PM Stefano Garzarella > > >wrote: > > >> > > >> On Fri, Oct 04, 2024 at 09:58:15AM GMT,

Re: [PATCH v2 1/7] vhost: Add a new modparam to allow userspace select vhost_task

2024-10-13 Thread Cindy Lu
On Mon, 7 Oct 2024 at 21:31, Stefano Garzarella wrote: > > On Fri, Oct 04, 2024 at 09:58:15AM GMT, Cindy Lu wrote: > >The vhost is now using vhost_task and working as a child of the owner thread. > >While this makes sense from containerization POV, some old userspace is > >confused, as previously

[PATCH] remoteproc: elf_loader: redundant check remove

2024-10-13 Thread anish kumar
offset will always be positive number and adding and comparing to the same variable 'size' will always result in check being false always. Remove this superfluous check. Signed-off-by: anish kumar --- drivers/remoteproc/remoteproc_elf_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH net-next v1 2/3] connector/cn_proc: Kunit tests for threads hash table

2024-10-13 Thread Anjali Kulkarni
Kunit tests to test hash table add, delete, duplicate add and delete. Add following configs and compile kernel code: CONFIG_CONNECTOR=y CONFIG_PROC_EVENTS=y CONFIG_NET=y CONFIG_KUNIT=m CONFIG_CN_HASH_KUNIT_TEST=m To run kunit tests: sudo modprobe cn_hash_test Output of kunit tests and hash table

[PATCH net-next v1 1/3] connector/cn_proc: Add hash table for threads

2024-10-13 Thread Anjali Kulkarni
Add a new type PROC_CN_MCAST_NOTIFY to proc connector API, which allows a thread to notify the kernel that is going to exit with a non-zero exit code and specify the exit code in it. When thread exits in the kernel, it will send this exit code as a proc filter notification to any listening process.

[PATCH net-next v1 3/3] connector/cn_proc: Selftest for threads

2024-10-13 Thread Anjali Kulkarni
Test to check if setting PROC_CN_MCAST_NOTIFY in proc connector API, allows a thread's non-zero exit status to be returned to proc_filter. The threads.c program creates 2 child threads. 1st thread handles signal SIGSEGV, and 2nd thread needs to indicate some error condition (value 1) to the kernel

[PATCH net-next v1 0/3] Threads support in proc connector

2024-10-13 Thread Anjali Kulkarni
Recently we committed a fix to allow processes to receive notifications for non-zero exits via the process connector module. Commit is a4c9a56e6a2c. However, for threads, when it does a pthread_exit(&exit_status) call, the kernel is not aware of the exit status with which pthread_exit is called. I

Re: [PATCH V12 11/14] perf tools: Add missing_features for aux_start_paused, aux_pause, aux_resume

2024-10-13 Thread Leo Yan
On Thu, Oct 10, 2024 at 05:31:48PM +0300, Adrian Hunter wrote: > Display "feature is not supported" error message if aux_start_paused, > aux_pause or aux_resume result in a perf_event_open() error. > > Signed-off-by: Adrian Hunter > Acked-by: Ian Rogers > Reviewed-by: Andi Kleen This patch loo

[PATCH net-next v04 3/3] selftests: net/psock_fanout: unbound socket fanout

2024-10-13 Thread Gur Stavi
Add a test that validates that an unbound packet socket cannot create/join a fanout group. Signed-off-by: Gur Stavi --- tools/testing/selftests/net/psock_fanout.c | 36 ++ 1 file changed, 36 insertions(+) diff --git a/tools/testing/selftests/net/psock_fanout.c b/tools/testi

[PATCH net-next v04 2/3] selftests: net/psock_fanout: socket joins fanout when link is down

2024-10-13 Thread Gur Stavi
Modify test_control_group to have toggle parameter. When toggle is non-zero, loopback device will be set down for the initialization of fd[1] which is still expected to successfully join the fanout. Signed-off-by: Gur Stavi --- tools/testing/selftests/net/psock_fanout.c | 42

[PATCH net-next v04 1/3] af_packet: allow fanout_add when socket is not RUNNING

2024-10-13 Thread Gur Stavi
PACKET socket can retain its fanout membership through link down and up and leave a fanout while closed regardless of link state. However, socket was forbidden from joining a fanout while it was not RUNNING. This patch allows PACKET socket to join fanout while not RUNNING. Socket can be RUNNING i

[PATCH net-next v04 0/3] net: af_packet: allow joining a fanout when link is down

2024-10-13 Thread Gur Stavi
PACKET socket can retain its fanout membership through link down and up and leave a fanout while closed regardless of link state. However, socket was forbidden from joining a fanout while it was not RUNNING. This scenario was identified while studying DPDK pmd_af_packet_drv. Since sockets are only