Thread (3 messages) 3 messages, 3 authors, 2025-11-04

Re: [PATCH v2] vhost: add a new ioctl VHOST_GET_VRING_WORKER_INFO and use in net.c

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-10-28 21:14:35
Also in: kvm, lkml, virtualization

On Tue, Oct 28, 2025 at 03:28:54PM +0000, Nick Hudson wrote:
The vhost_net (and vhost_sock) drivers create worker tasks to handle
the virtual queues. Provide a new ioctl VHOST_GET_VRING_WORKER_INFO that
can be used to determine the PID of these tasks so that, for example,
they can be pinned to specific CPU(s).
Could you add something about the lifetime of the PID. How do you know
the PID still belongs to the worker by the time you come to use it?

	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help