qemu/qemu-roms-more-room-fix-vga-align.patch
Mark McLoughlin 35aa5183e5 - Update to 0.10.4
- Fix yet more qcow2 corruption (#498405)
- AIO cancellation fixes (#497170)
- Fix VPC image size overflow (#491981)
- Fix oops with 2.6.25 virtio guest (#470386)
- Enable pulseaudio driver (#495964, #496627)
- Fix cpuid initialization
- Fix HPET emulation
- Fix storage hotplug error handling
- Migration fixes
- Block range checking fixes
- Make PCI config status register read-only
- Handle newer Xorg keymap names
- Don't leak memory on NIC hot-unplug
- Hook up keypad keys for qemu console emulation
- Correctly run on kernels lacking mmu notifiers
- Support DDIM option ROMs
- Fix PCI NIC error handling
- Fix in-kernel LAPIC initialization
- Fix broken e1000 PCI config space
- Drop some patches which have been upstreamed
- Drop the make-release script; we have an official tarball now
2009-05-13 08:35:55 +00:00

34 lines
1.2 KiB
Diff

From: Glauber Costa <glommer@redhat.com>
Subject: [PATCH] align vga rom to 4k boundary.
Instead of aligning to 2k boundary, as required by the bios,
align to 4k boundary, as required by kvm memory functions. Without
this patch, starting kvm with -vga std option fails with:
create_userspace_phys_mem: Invalid argument
kvm_cpu_register_physical_memory: failed
as described by: https://bugzilla.redhat.com/494376
It does not fail with cirrus vga, because it is naturally aligned.
This problem does not seem to affect upstream qemu.
Signed-off-by: Glauber Costa <glommer@redhat.com>
---
qemu/hw/pc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff -urp qemu-kvm-0.10.4.orig/hw/pc.c qemu-kvm-0.10.4/hw/pc.c
--- qemu-kvm-0.10.4.orig/hw/pc.c 2009-05-12 22:48:08.000000000 +0100
+++ qemu-kvm-0.10.4/hw/pc.c 2009-05-12 22:48:46.000000000 +0100
@@ -927,7 +927,7 @@ vga_bios_error:
exit(1);
}
/* Round up vga bios size to the next 2k boundary */
- vga_bios_size = (vga_bios_size + 2047) & ~2047;
+ vga_bios_size = (vga_bios_size + 4095) & ~4095;
option_rom_start = 0xc0000 + vga_bios_size;
/* setup basic memory access */
Only in qemu-kvm-0.10.4/hw: pc.c.orig