diff options
author | Jason Wang <jasowang@redhat.com> | 2019-05-17 00:29:51 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-05-27 11:08:23 -0400 |
commit | e79b431fb901ba1106670bcc80b9b617b25def7d (patch) | |
tree | e23a1637f25ac3f5c980cf225baaee363fb2d23c /drivers/tty/sysrq.c | |
parent | e2412c07f8f3040593dfb88207865a3cd58680c0 (diff) |
vhost: vsock: add weight support
This patch will check the weight and exit the loop if we exceeds the
weight. This is useful for preventing vsock kthread from hogging cpu
which is guest triggerable. The weight can help to avoid starving the
request from on direction while another direction is being processed.
The value of weight is picked from vhost-net.
This addresses CVE-2019-3900.
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Fixes: 433fc58e6bf2 ("VSOCK: Introduce vhost_vsock.ko")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/tty/sysrq.c')
0 files changed, 0 insertions, 0 deletions