[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/3] s390: Fix empty kernel command line
From: |
Jens Freimann |
Subject: |
[Qemu-devel] [PATCH 1/3] s390: Fix empty kernel command line |
Date: |
Fri, 7 Dec 2012 14:55:29 +0100 |
From: Christian Borntraeger <address@hidden>
Since commit 967c0da73a7b0da186baba6632301d83644a570c
vl.c: Avoid segfault when started with no arguments
the user can specify a kernel without a command line. Lets not
overwrite the default command line with \0 in that case.
Signed-off-by: Christian Borntraeger <address@hidden>
Signed-off-by: Jens Freimann <address@hidden>
---
hw/s390-virtio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index ca1bb09..d77871a 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -290,7 +290,7 @@ static void s390_init(QEMUMachineInitArgs *args)
stq_p(rom_ptr(INITRD_PARM_SIZE), initrd_size);
}
- if (rom_ptr(KERN_PARM_AREA)) {
+ if (rom_ptr(KERN_PARM_AREA) && strlen(kernel_cmdline)) {
/* we have to overwrite values in the kernel image, which are "rom" */
memcpy(rom_ptr(KERN_PARM_AREA), kernel_cmdline,
strlen(kernel_cmdline) + 1);
--
1.7.1
[Qemu-devel] [PATCH 2/3] s390: Move IPL code into a separate device, Jens Freimann, 2012/12/07