diff options
Diffstat (limited to 'hw/s390x/s390-virtio.c')
-rw-r--r-- | hw/s390x/s390-virtio.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c index 46aec999a6..30d1118cdc 100644 --- a/hw/s390x/s390-virtio.c +++ b/hw/s390x/s390-virtio.c @@ -49,6 +49,7 @@ #endif #define MAX_BLK_DEVS 10 +#define ZIPL_FILENAME "s390-zipl.rom" static VirtIOS390Bus *s390_bus; static S390CPU **ipi_states; @@ -158,7 +159,8 @@ unsigned s390_del_running_cpu(S390CPU *cpu) void s390_init_ipl_dev(const char *kernel_filename, const char *kernel_cmdline, - const char *initrd_filename) + const char *initrd_filename, + const char *firmware) { DeviceState *dev; @@ -170,6 +172,7 @@ void s390_init_ipl_dev(const char *kernel_filename, qdev_prop_set_string(dev, "initrd", initrd_filename); } qdev_prop_set_string(dev, "cmdline", kernel_cmdline); + qdev_prop_set_string(dev, "firmware", firmware); qdev_init_nofail(dev); } @@ -247,7 +250,7 @@ static void s390_init(QEMUMachineInitArgs *args) s390_bus = s390_virtio_bus_init(&my_ram_size); s390_sclp_init(); s390_init_ipl_dev(args->kernel_filename, args->kernel_cmdline, - args->initrd_filename); + args->initrd_filename, ZIPL_FILENAME); /* register hypercalls */ s390_virtio_register_hcalls(); |