summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2019-05-17 07:29:52 +0300
committerMichael S. Tsirkin <mst@redhat.com>2019-05-27 18:08:23 +0300
commitc1ea02f15ab5efb3e93fc3144d895410bf79fcf2 (patch)
tree5953d50a42d2f086a21d6f9cfe8f97d4f6b6b7e3 /include/drm
parente79b431fb901ba1106670bcc80b9b617b25def7d (diff)
downloadlinux-c1ea02f15ab5efb3e93fc3144d895410bf79fcf2.tar.xz
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: 057cbf49a1f0 ("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>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions