[PATCH] um: vector: Fix NAPI budget handling

2024-07-05 Thread anton . ivanov
From: Anton Ivanov Fix the handling of NAPI budget. Signed-off-by: Anton Ivanov --- arch/um/drivers/vector_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c index 53e825bcc6fa..18fb167e7bd8 100644 --- a/arch

[PATCH v3] um: vector: Replace locks guarding queue depth with atomics

2024-07-05 Thread anton . ivanov
From: Anton Ivanov UML vector drivers use ring buffer structures which map preallocated skbs onto mmsg vectors for use with sendmmsg and recvmmsg. They are designed around a single consumer, single producer pattern allowing simultaneous enqueue and dequeue. Lock debugging with preemption showed

[PATCH 2/2] virtio: fix vq # when vq skipped

2024-07-05 Thread Michael S. Tsirkin
virtio balloon communicates to the core that in some configurations vq #s are non-contiguous by setting name pointer to NULL. Unfortunately, core then turned around and just made them contiguous again. Result is that driver is out of spec. Implement what the API was supposed to do in the 1st plac