From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRAq-0000CE-Mv for qemu-devel@nongnu.org; Fri, 29 Mar 2013 00:44:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULRAp-0004fh-PK for qemu-devel@nongnu.org; Fri, 29 Mar 2013 00:44:20 -0400 Received: from mail.linux-iscsi.org ([67.23.28.174]:48500 helo=linux-iscsi.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRAp-0004fW-Jv for qemu-devel@nongnu.org; Fri, 29 Mar 2013 00:44:19 -0400 From: "Nicholas A. Bellinger" Date: Fri, 29 Mar 2013 04:33:09 +0000 Message-Id: <1364531592-8368-1-git-send-email-nab@linux-iscsi.org> Subject: [Qemu-devel] [PATCH 0/3] virtio/vhost: Add checks for uninitialized VQs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: target-devel Cc: kvm-devel , "Michael S. Tsirkin" , qemu-devel , Nicholas Bellinger , lf-virt , Anthony Liguori , Stefan Hajnoczi , Paolo Bonzini , Asias He From: Nicholas Bellinger Hi folks, This series adds a virtio_queue_valid() for use by virtio-pci code in order to prevent opreations upon uninitialized VQs, that is currently expected to occur during seabios setup of virtio-scsi. This also includes a vhost specific check for uninitialized VQs in vhost_verify_ring_mappings() to avoid this same case. Please review. --nab Michael S. Tsirkin (1): virtio: add API to check that ring is setup Nicholas Bellinger (2): virtio-pci: Add virtio_queue_valid checks ahead of virtio_queue_get_num vhost: Check+skip uninitialized VQs in vhost_verify_ring_mappings hw/vhost.c | 3 +++ hw/virtio-pci.c | 27 +++++++++++++++++++++++++++ hw/virtio.c | 5 +++++ hw/virtio.h | 1 + 4 files changed, 36 insertions(+), 0 deletions(-) -- 1.7.2.5