summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLinfeng Sun <linfeng.sun.dev@gmail.com>2026-09-03 12:13:33 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-09-04 17:06:04 -0400
commit69d4a65c4e926fd2dfd25051416db88aa5ae3a70 (patch)
tree92d0236639fa497e177d31ec0663c8e3dfdeae4b /scripts/Makefile.thinlto
parent2ecee5774119d769c1ac364b3b441fd97ee1feaa (diff)
downloadlinux-next-69d4a65c4e926fd2dfd25051416db88aa5ae3a70.tar.gz
linux-next-69d4a65c4e926fd2dfd25051416db88aa5ae3a70.zip
vhost: limit outstanding IOTLB misses per virtqueue
vhost allocates a message node whenever address translation misses. If userspace reads these messages without resolving them, repeated virtqueue kicks can grow the pending message list until the host runs out of memory. Virtqueue processing stops at the first translation miss and cannot make progress until userspace installs a mapping. Keep a pointer to that outstanding message in the virtqueue and suppress additional misses until the node is resolved or discarded. The pointer remains set while the message is queued for reading, copied to userspace, or waiting on the pending list. Clear it under the IOTLB lock when the owning node is freed. This bounds outstanding miss messages by the fixed number of virtqueues without introducing an arbitrary queue limit. Signed-off-by: Linfeng Sun <linfeng.sun.dev@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260903-fix-kernel-panic-in-vhost_iotlb_miss_pending_list-v1-1-39b8cd427978@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions