tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 28 Mar 2013 00:23:41 +0000 (17:23 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 29 Mar 2013 06:42:47 +0000 (23:42 -0700)
commit5dade71050e799d8679698a6145e2ba46cdeac2a
tree305a6afdd30ea073b0ce6fc8ee952405993bff16
parent8f27d487bcc2bd603c2d87e1729abcbc301f15db
tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit

This patch adds a VHOST_SCSI_FEATURES mask minus VIRTIO_RING_F_EVENT_IDX
so that vhost-scsi-pci userspace will strip this feature bit once
GET_FEATURES reports it as being unsupported on the host.

This is to avoid a bug where ->handle_kicks() are missed when EVENT_IDX
is enabled by default in userspace code.

(mst: Rename to VHOST_SCSI_FEATURES + add comment)

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Asias He <asias@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/tcm_vhost.c