]> Git Repo - qemu.git/commit
vhost-user-blk: prevent using uninitialized vqs
authorRaphael Norwitz <[email protected]>
Thu, 22 Aug 2019 18:34:24 +0000 (11:34 -0700)
committerMichael S. Tsirkin <[email protected]>
Mon, 16 Sep 2019 10:27:35 +0000 (06:27 -0400)
commitd8438bd24a3f2b6fd6d0e788c18483ca9e239b36
treea9604e8b34c0e4e840ad4a3e1eae7248c9f0e2e0
parentd8b92bd41822c053daa4dbf88cf36b14241a0279
vhost-user-blk: prevent using uninitialized vqs

Same rational as: e6cc11d64fc998c11a4dfcde8fda3fc33a74d844

Of the 3 virtqueues, seabios only sets cmd, leaving ctrl
and event without a physical address. This can cause
vhost_verify_ring_part_mapping to return ENOMEM, causing
the following logs:

qemu-system-x86_64: Unable to map available ring for ring 0
qemu-system-x86_64: Verify ring failure on region 0

This has already been fixed for vhost scsi devices and was
recently vhost-user scsi devices. This commit fixes it for
vhost-user-blk devices.

Suggested-by: Phillippe Mathieu-Daude <[email protected]>
Signed-off-by: Raphael Norwitz <[email protected]>
Message-Id: <1566498865[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
hw/block/vhost-user-blk.c
This page took 0.022319 seconds and 4 git commands to generate.