hw/loongarch/virt: Enable cpu hotplug feature on virt machine
authorBibo Mao <maobibo@loongson.cn>
Mon, 10 Feb 2025 09:03:29 +0000 (17:03 +0800)
committerBibo Mao <maobibo@loongson.cn>
Wed, 5 Mar 2025 01:39:18 +0000 (09:39 +0800)
commita97cceb1d7ed05070dc52e7850112f906d7e3512
treedc8f40fbdeebbd80be2461c25dfcbd0809f39519
parent25cdac981fd012d9b96d8db9a809841c7e521154
hw/loongarch/virt: Enable cpu hotplug feature on virt machine

On virt machine, enable CPU hotplug feature has_hotpluggable_cpus. For
hot-added CPUs, there is socket-id/core-id/thread-id property set,
arch_id can be caculated from these properties. So that cpu slot can be
searched from its arch_id.

Co-developed-by: Xianglai Li <lixianglai@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
hw/loongarch/virt.c