vmm: virtio-blk: Add sanity check
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 5 Oct 2017 18:26:46 +0000 (14:26 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 5 Oct 2017 21:06:41 +0000 (17:06 -0400)
commit090a3a3970f3c78b418e3fc7d5403f501a9a8bd2
tree2411d8bdb663556d22f223a1eed4a6faea53f598
parentb8e742cf5aaea7c33c146ed8bef33de8beeee4ce
vmm: virtio-blk: Add sanity check

The comments says there must be three IOVs; let's assert it to avoid any
problems.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/vmm/virtio_blk.c