aboutsummaryrefslogtreecommitdiff
path: root/src/disk.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-11-16 13:02:55 +0100
committerKevin O'Connor <kevin@koconnor.net>2011-11-17 21:21:02 -0500
commit0e7fb5fdad211ab608a7a4e1b0cc32426fc617a0 (patch)
treecb39c0c3af5e01a28d9cefe90fba612ace3cf9c2 /src/disk.c
parent000e084893985208513864a65695e8fbcbd1162f (diff)
downloadseabios-hppa-0e7fb5fdad211ab608a7a4e1b0cc32426fc617a0.zip
seabios-hppa-0e7fb5fdad211ab608a7a4e1b0cc32426fc617a0.tar.gz
seabios-hppa-0e7fb5fdad211ab608a7a4e1b0cc32426fc617a0.tar.bz2
always specify virtio-blk rather than virtio
Avoid ambiguity when virtio-scsi will be introduced. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disk.c b/src/disk.c
index 8f7c61f..f2c6621 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -546,7 +546,7 @@ 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)) {
+ (type != DTYPE_ATA && type != DTYPE_ATAPI && type != DTYPE_VIRTIO_BLK)) {
disk_ret(regs, DISK_RET_SUCCESS);
return;
}
@@ -651,7 +651,7 @@ disk_1348(struct bregs *regs, struct drive_s *drive_g)
SET_INT13DPT(regs, iface_path, iobase1);
}
- if (type != DTYPE_VIRTIO) {
+ if (type != DTYPE_VIRTIO_BLK) {
SET_INT13DPT(regs, iface_type[0], 'A');
SET_INT13DPT(regs, iface_type[1], 'T');
SET_INT13DPT(regs, iface_type[2], 'A');