[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] S390: BIOS check for file
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH 1/6] S390: BIOS check for file |
Date: |
Mon, 6 May 2013 17:30:19 +0200 |
From: Dominik Dingel <address@hidden>
Add a check if the BIOS blob exists before trying to load.
Signed-off-by: Dominik Dingel <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
hw/s390x/ipl.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
index ace5ff5..cc3cd23 100644
--- a/hw/s390x/ipl.c
+++ b/hw/s390x/ipl.c
@@ -82,6 +82,10 @@ static int s390_ipl_init(SysBusDevice *dev)
}
bios_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);
+ if (bios_filename == NULL) {
+ hw_error("could not find stage1 bootloader\n");
+ }
+
bios_size = load_elf(bios_filename, NULL, NULL, &ipl->start_addr, NULL,
NULL, 1, ELF_MACHINE, 0);
if (bios_size == -1UL) {
--
1.6.0.2
- [Qemu-devel] [PULL 1.5 0/6] s390 patch queue 2013-05-06, Alexander Graf, 2013/05/06
- [Qemu-devel] [PATCH 1/6] S390: BIOS check for file,
Alexander Graf <=
- [Qemu-devel] [PATCH 3/6] S390: Merging s390_ipl_cpu and s390_ipl_reset, Alexander Graf, 2013/05/06
- [Qemu-devel] [PATCH 4/6] S390: Add virtio-blk boot, Alexander Graf, 2013/05/06
- [Qemu-devel] [PATCH 5/6] S390: BIOS boot from given device, Alexander Graf, 2013/05/06
- [Qemu-devel] [PATCH 2/6] S390: BIOS create link to src folder for .img file, Alexander Graf, 2013/05/06
- [Qemu-devel] [PATCH 6/6] s390: update s390-ccw.img, Alexander Graf, 2013/05/06
- Re: [Qemu-devel] [PULL 1.5 0/6] s390 patch queue 2013-05-06, Aurelien Jarno, 2013/05/06