[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/16] s390: fix short kernel command lines
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH 11/16] s390: fix short kernel command lines |
Date: |
Fri, 11 Nov 2011 18:49:18 +0100 |
From: Christian Borntraeger <address@hidden>
The default kernel command line for s390 is
"root=/dev/ram0 ro"
When overriding this line, we have to ensure to also copy the \0 to
avoid false lines, for example, -append "root=/dev/vda" will result in
"root=/dev/vda0 ro" with the current code.
Signed-off-by: Christian Borntraeger <address@hidden>
Signed-off-by: Alexander Graf <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 003d5ab..ee850f0 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -230,7 +230,7 @@ static void s390_init(ram_addr_t my_ram_size,
if (kernel_cmdline) {
cpu_physical_memory_write(KERN_PARM_AREA, kernel_cmdline,
- strlen(kernel_cmdline));
+ strlen(kernel_cmdline) + 1);
}
/* Create VirtIO network adapters */
--
1.6.0.2
- [Qemu-devel] [PATCH 07/16] s390x: update R and C bits in storage key, (continued)
- [Qemu-devel] [PATCH 07/16] s390x: update R and C bits in storage key, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 14/16] tcg: Standardize on TCGReg as the enum for hard registers, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 09/16] s390x: implement SIGP restart and shutdown, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 03/16] Add generic drive hotplugging, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 10/16] s390: fix reset hypercall to reset the status, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 16/16] s390x: initialize virtio dev region, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 12/16] s390: Fix cpu shutdown for KVM, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 01/16] [S390] Add hotplug support, Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 11/16] s390: fix short kernel command lines,
Alexander Graf <=
- [Qemu-devel] [PATCH 15/16] tcg: Use TCGReg for standard tcg-target entry points., Alexander Graf, 2011/11/11
- [Qemu-devel] [PATCH 08/16] s390x: implement rrbe instruction properly, Alexander Graf, 2011/11/11
- Re: [Qemu-devel] [PULL 00/16] s390 patch queue 2011-11-11 for 1.0, Blue Swirl, 2011/11/13