[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] Tell BIOS about the number of CPUs (v2)
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 5/6] Tell BIOS about the number of CPUs (v2) |
Date: |
Fri, 1 Feb 2008 16:12:00 -0600 |
Previously, the BIOS would probe the CPUs for SMP guests. This tends to be
very unreliably because of startup timing issues. By passing the number of
CPUs in the CMOS, the BIOS can detect the number of CPUs much more reliably.
Since v1, I've incorporated Fabrice's feedback so this is now a 1-liner.
Index: qemu/hw/pc.c
===================================================================
--- qemu.orig/hw/pc.c 2008-02-01 11:53:47.000000000 -0600
+++ qemu/hw/pc.c 2008-02-01 11:53:52.000000000 -0600
@@ -210,6 +210,7 @@
rtc_set_memory(s, 0x5c, (unsigned int)above_4g_mem_size >> 24);
rtc_set_memory(s, 0x5d, (uint64_t)above_4g_mem_size >> 32);
}
+ rtc_set_memory(s, 0x5f, smp_cpus - 1);
if (ram_size > (16 * 1024 * 1024))
val = (ram_size / 65536) - ((16 * 1024 * 1024) / 65536);
- [Qemu-devel] [PATCH 2/6] Use correct types to enable > 2G support (v2), (continued)
- [Qemu-devel] [PATCH 2/6] Use correct types to enable > 2G support (v2), Anthony Liguori, 2008/02/01
- [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Anthony Liguori, 2008/02/03
- [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Izik Eidus, 2008/02/04
- [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Anthony Liguori, 2008/02/04
- [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Avi Kivity, 2008/02/10
- Re: [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Paul Brook, 2008/02/10
- Re: [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Avi Kivity, 2008/02/10
- Re: [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Paul Brook, 2008/02/10
- Re: [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2), Avi Kivity, 2008/02/10
[Qemu-devel] [PATCH 4/6] Fix daemonize options (v2), Anthony Liguori, 2008/02/01
[Qemu-devel] [PATCH 5/6] Tell BIOS about the number of CPUs (v2),
Anthony Liguori <=
[Qemu-devel] [PATCH 6/6] QEMU support for the Kernel Virtual Machine interface (v2), Anthony Liguori, 2008/02/01