File kvm-qemu-fix-1mb-memory-assert.patch of Package kvm.openSUSE_12.1_Update
diff --git a/hw/pc.c b/hw/pc.c
index c0a88e1..3412bfa 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -978,9 +978,10 @@ void pc_memory_init(const char *kernel_filename,
ram_addr = qemu_ram_alloc(NULL, "pc.ram",
below_4g_mem_size + above_4g_mem_size);
cpu_register_physical_memory(0, 0xa0000, ram_addr);
- cpu_register_physical_memory(0x100000,
- below_4g_mem_size - 0x100000,
- ram_addr + 0x100000);
+ if (below_4g_mem_size > 0x100000) {
+ cpu_register_physical_memory(0x100000, below_4g_mem_size - 0x100000,
+ ram_addr + 0x100000);
+ }
if (above_4g_mem_size > 0) {
cpu_register_physical_memory(0x100000000ULL, above_4g_mem_size,
ram_addr + below_4g_mem_size);