qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] qemu will core dump with "-smp 254, sockets=2, cor


From: lijun
Subject: [Qemu-devel] [PATCH] qemu will core dump with "-smp 254, sockets=2, cores=3, threads=2"
Date: Fri, 13 Dec 2013 02:10:20 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

Hi all,

when set "-smp" more than 160, qemu will give the following warning:
Warning: Number of SMP cpus requested (161) exceeds the recommended cpus supported by KVM (160) As the above warning, when set "-smp 160,sockets=2,cores=3,threads=2", but find that apic_id(hw/i386/acpi-build.c) is 259 not 159 and id(hw/acpi/piix4.c) is 259 not 159.

As the above warning, when set "-smp 254,sockets=2,cores=3,threads=2", but find that apic_id(hw/i386/acpi-build.c) is 513 not 253 and id(hw/acpi/piix4.c) is 513 not 253.

Based on above reasons, we have two methods to fix this issue.
1, Delete "assert(apic_id <= MAX_CPUMASK_BITS)" in file "hw/i386/acpi-build.c" and delete "g_assert((id / 8) < PIIX4_PROC_LEN)" in file "hw/acpi/piix4.c". 2, Detect the values of "sockets,cores,threads" when get them from command line. And modify smp_parse function in file vl.c to do some restrictions on these parameters when boot qemu.

I will submit the code patch later.

Best Regards,
Jun Li



reply via email to

[Prev in Thread] Current Thread [Next in Thread]