Skip to content

Add CPU hot-plug to qemu (pc only). v2

Igor Mammedov qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 42 repliesIn review

v2 changes from the cover letter

- small fixes in [1/7], change list in the patch
- got rid of cpu_set command
- converted pc cpu to qdev device, now it's possible to add cpu using monitor command 'device_add'

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Introduce a new bus "ICC" to connect APICMakefile.objs hw/apic.c hw/apic.h +5 more+196 -1212 replies
2/7Convert pc cpu to qdevhw/pc.c target-i386/cpu.h target-i386/helper.c+73 -1623 replies
3/7cleanup: get rid of pc_new_cpuhw/pc.c+12 -180 replies
4/7cleanup: remove redundant pc_cpu_resethw/pc.c target-i386/helper.c+3 -91 reply
5/7Set default 'model' property if it wasn't specified yet.hw/pc.c+8 -01 reply
6/7Prepare ACPI infrastructure for cpu hot-plug in acpi_piix4hw/acpi_piix4.c hw/pc.h+64 -21 reply
7/7Implement cpu hot-add using device_add monitor commandhw/pc.c+11 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/7] Add CPU hot-plug to qemu (pc only). v2

Previous version was titled "Make vcpu hotplug work for qemu"

Why it is needed?
Feature is implemented by many other solutions and seems to be in high demand from users. For example it's possible to do hot-plug with xen tool stack or with kvm using qemu-kvm+some voodoo (i.e. lost patches). But it's not possible to do it with mainline qemu, and this is attempt to start fixing it.

This patch-set lays basic infrastructure for cpu hot-plug and introduces only cpu hot-add for now. This will provide skeleton for cpu hot-unplug patches that are posted against qemu-kvm.

v2 changes:
- small fixes in [1/7], change list in the patch
- got rid of cpu_set command
- converted pc cpu to qdev device, now it's possible to add cpu using monitor command 'device_add'