aboutsummaryrefslogtreecommitdiff
path: root/src/disk.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-02-27 17:22:23 +0100
committerKevin O'Connor <kevin@koconnor.net>2012-03-06 07:25:16 -0500
commitc5c488f46b406b9bbd83a4a7aa28ec89d5a6cbcd (patch)
tree4564306081db09200a8c37d3a584c96a6585c88f /src/disk.c
parentcb721714570520c02ae48efc26d3c04b8548d973 (diff)
downloadseabios-hppa-c5c488f46b406b9bbd83a4a7aa28ec89d5a6cbcd.zip
seabios-hppa-c5c488f46b406b9bbd83a4a7aa28ec89d5a6cbcd.tar.gz
seabios-hppa-c5c488f46b406b9bbd83a4a7aa28ec89d5a6cbcd.tar.bz2
add virtio-scsi driver
virtio-scsi is a simple HBA that talks to the host via a single vring. The implementation looks like a hybrid of usb-msc and virtio-blk. Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/disk.c b/src/disk.c
index 29714d6..7a58af4 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -551,7 +551,8 @@ disk_1348(struct bregs *regs, struct drive_s *drive_g)
SET_INT13DPT(regs, blksize, blksize);
if (size < 30 ||
- (type != DTYPE_ATA && type != DTYPE_ATAPI && type != DTYPE_VIRTIO_BLK)) {
+ (type != DTYPE_ATA && type != DTYPE_ATAPI &&
+ type != DTYPE_VIRTIO_BLK && type != DTYPE_VIRTIO_SCSI)) {
disk_ret(regs, DISK_RET_SUCCESS);
return;
}