diff options
author | Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com> | 2015-10-26 16:55:16 +0100 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2016-03-23 16:13:38 +0100 |
commit | a1102cebbfa0c9b3f66641ab97cf2c602c98d220 (patch) | |
tree | 9e4dfbd679b81a926325f074502709699049fc1c /pc-bios/s390-ccw/main.c | |
parent | 69429682c6887bfe7911b26766bedcf3bcabb281 (diff) |
pc-bios/s390-ccw: make provisions for different backends
Add dispatching code to make room for non virtio-blk boot devices.
Signed-off-by: Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'pc-bios/s390-ccw/main.c')
-rw-r--r-- | pc-bios/s390-ccw/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c index 6bf44a7fa0..69a02feb87 100644 --- a/pc-bios/s390-ccw/main.c +++ b/pc-bios/s390-ccw/main.c @@ -50,7 +50,7 @@ static bool find_dev(Schib *schib, int dev_no) if (!schib->pmcw.dnv) { continue; } - if (!virtio_is_blk(blk_schid)) { + if (!virtio_is_supported(blk_schid)) { continue; } if ((dev_no < 0) || (schib->pmcw.dev == dev_no)) { @@ -95,7 +95,7 @@ static void virtio_setup(uint64_t dev_info) panic("No virtio-blk device found!\n"); } - virtio_setup_block(blk_schid); + virtio_setup_device(blk_schid); if (!virtio_ipl_disk_is_valid()) { panic("No valid hard disk detected.\n"); |