[Qemu-devel] [PATCH 4/4] Support more than 255 cpus: runtime check

2014-05-13 Thread Li, Zhen-Hua
From: "Li, ZhenHua" There is some runtime check for max cpu count. Make them support 4096 cpus. Signed-off-by: Li, ZhenHua --- hw/i386/acpi-build.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index c98df88..5c3bf10 100

[Qemu-devel] [PATCH 2/4] Support more than 255 cpus: max_cpus to 4096

2014-05-13 Thread Li, Zhen-Hua
From: "Li, ZhenHua" max_cpus from 255 to 4096. So the machine types can support up to 4096 cpus. Signed-off-by: Li, ZhenHua --- include/hw/i386/pc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 9010246..8183141 100644 ---

[Qemu-devel] [PATCH 1/4] Support more than 255 cpus: ACPI and APIC defines

2014-05-13 Thread Li, Zhen-Hua
From: "Li, ZhenHua" Change ACPI_CPU_HOTPLUG_ID_LIMIT from 256 to 4096; Change MAX_APICS from 256 to 4096; Signed-off-by: Li, ZhenHua --- include/hw/acpi/cpu_hotplug_defs.h | 4 ++-- include/hw/i386/apic_internal.h| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includ

[Qemu-devel] [PATCH 3/4] Support more than 255 cpus: max cpumask bit to 4096

2014-05-13 Thread Li, Zhen-Hua
From: "Li, ZhenHua" Change MAX_CPUMASK_BITS from 255 to 4096. Signed-off-by: Li, ZhenHua --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index ba5c7f8..97961a6 100644 --- a/include/sysemu/sysemu.h

[Qemu-devel] [PATCH 0/4] Support more than 255 cpus

2014-05-13 Thread Li, Zhen-Hua
From: "Li, ZhenHua" These series patches are trying to make Qemu support more than 255 CPUs. The max cpu number changed to 4096. Support more than 255 cpus: ACPI and APIC defines Support more than 255 cpus: max_cpus to 4096 Support more than 255 cpus: max cpumask bit to 4096 Support more th

[Qemu-devel] [PATCH 1/1] virtio-blk: Use a req pool instead of malloc/free

2014-03-25 Thread Li, Zhen-Hua
From: "Li, ZhenHua" In virtio-blk module, when there is new request, new req structure will be created by malloc. Use a req pool instead of this, will increase performance; Increacement: about 5% to 10%. Signed-off-by: Li, ZhenHua --- hw/block/virtio-blk.c | 87

[Qemu-devel] [PATCH 1/1] virtio-blk: Use a req pool instead of malloc/free

2014-03-25 Thread Li, Zhen-Hua
From: "Li, ZhenHua" In virtio-blk module, when there is new request, new req structure will be created by malloc. Use a req pool instead of this, will increase performance; Increacement: about 5% to 10%. Signed-off-by: Li, ZhenHua --- hw/block/virtio-blk.c | 87