linux_dsm_epyc7002/drivers/vhost
Jason Wang c1ea02f15a vhost: scsi: add weight support
This patch will check the weight and exit the loop if we exceeds the
weight. This is useful for preventing scsi kthread from hogging cpu
which is guest triggerable.

This addresses CVE-2019-3900.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Fixes: 057cbf49a1 ("tcm_vhost: Initial merge for vhost level target fabric driver")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
2019-05-27 11:08:23 -04:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Kconfig.vringh treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
net.c vhost_net: fix possible infinite loop 2019-05-27 11:08:22 -04:00
scsi.c vhost: scsi: add weight support 2019-05-27 11:08:23 -04:00
test.c
test.h
vhost.c vhost: introduce vhost_exceeds_weight() 2019-05-27 11:08:22 -04:00
vhost.h vhost: introduce vhost_exceeds_weight() 2019-05-27 11:08:22 -04:00
vringh.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
vsock.c vhost: vsock: add weight support 2019-05-27 11:08:23 -04:00