fix two issues with virtio-blk
authorGleb Natapov <gleb@redhat.com>
Mon, 17 May 2010 13:27:27 +0000 (16:27 +0300)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 17 May 2010 23:14:48 +0000 (19:14 -0400)
commit4030db0d2c5a79de2a1b5c31514503e4ff2a3cd1
tree19585cedc982324f30501e1503d07f2d3743351e
parentea8ac63a06bf621408d65fbfc17d77fa4a19be6f
fix two issues with virtio-blk

1. Check if blk_size is valid in virtio_blk config.
2. Disable interrupt otherwise interrupt may stuck
   with some guests.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
ChangeLog:
 v1->v2:
  - Treat sector size not equal to 512 bytes as error.
src/virtio-blk.c
src/virtio-blk.h
src/virtio-ring.h