[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/7] s390x: fix -initrd in virtio machine
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH 1/7] s390x: fix -initrd in virtio machine |
Date: |
Mon, 29 Oct 2012 19:40:18 +0100 |
When using -initrd in the virtio machine, we need to indicate the initrd
start and size inside the kernel image. These parameters need to be stored
in native endianness.
Signed-off-by: Alexander Graf <address@hidden>
Acked-by: Richard Henderson <address@hidden>
Acked-by: Christian Borntraeger <address@hidden>
---
hw/s390-virtio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index 85bd13e..52fad37 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -285,8 +285,8 @@ static void s390_init(QEMUMachineInitArgs *args)
}
/* we have to overwrite values in the kernel image, which are "rom" */
- memcpy(rom_ptr(INITRD_PARM_START), &initrd_offset, 8);
- memcpy(rom_ptr(INITRD_PARM_SIZE), &initrd_size, 8);
+ stq_p(rom_ptr(INITRD_PARM_START), initrd_offset);
+ stq_p(rom_ptr(INITRD_PARM_SIZE), initrd_size);
}
if (rom_ptr(KERN_PARM_AREA)) {
--
1.6.0.2
- [Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29, Alexander Graf, 2012/10/29
- [Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29, Alexander Graf, 2012/10/29
- [Qemu-devel] [PATCH 1/7] s390x: fix -initrd in virtio machine,
Alexander Graf <=
- [Qemu-devel] [PATCH 2/7] s390/kvm_stat: correct sys_perf_event_open syscall number, Alexander Graf, 2012/10/29
- [Qemu-devel] [PATCH 3/7] s390: use sync regs for register transfer, Alexander Graf, 2012/10/29
- [Qemu-devel] [PATCH 6/7] s390: sclp signal quiesce support, Alexander Graf, 2012/10/29
- [Qemu-devel] [PATCH 7/7] s390: sclp ascii console support, Alexander Graf, 2012/10/29
- [Qemu-devel] [PATCH 4/7] s390: sclp base support, Alexander Graf, 2012/10/29
- [Qemu-devel] [PATCH 5/7] s390: sclp event support, Alexander Graf, 2012/10/29
- Re: [Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29, Aurelien Jarno, 2012/10/29