[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub
|
From: |
Alex Bennée |
|
Subject: |
Re: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist? |
|
Date: |
Wed, 18 Oct 2023 16:41:09 +0100 |
|
User-agent: |
mu4e 1.11.22; emacs 29.1.50 |
Salil Mehta <salil.mehta@opnsrc.net> writes:
> Hello,
>
> Came across below code excerpt in x86/microvm code and wanted to know
> why 'has_hotpluggable_cpus' flag has been set to 'false' while various
> hot(un)plug APIs have been defined?
>
> static void microvm_class_init(ObjectClass *oc, void *data)
> {
> X86MachineClass *x86mc = X86_MACHINE_CLASS(oc);
> MachineClass *mc = MACHINE_CLASS(oc);
> HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc);
>
> mc->init = microvm_machine_state_init;
>
> mc->family = "microvm_i386";
> [...]
> mc->max_cpus = 288;
> mc->has_hotpluggable_cpus = false; --------> This one
> [...]
>From the original commit that added it:
It's a minimalist machine type without PCI nor ACPI support, designed
for short-lived guests. microvm also establishes a baseline for
benchmarking and optimizing both QEMU and guest operating systems,
since it is optimized for both boot time and footprint.
Generally hotplug requires a dance between the VMM and the firmware to
properly shutdown and restart hotplug devices. The principle
communication mechanism for this is ACPI.
>
> /* hotplug (for cpu coldplug) */
> mc->get_hotplug_handler = microvm_get_hotplug_handler;
> hc->pre_plug = microvm_device_pre_plug_cb;
> hc->plug = microvm_device_plug_cb;
> hc->unplug_request = microvm_device_unplug_request_cb;
> hc->unplug = microvm_device_unplug_cb;
> [...]
> }
>
>
> Best regards
> Salil
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, Salil Mehta, 2023/10/18
- Re: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?,
Alex Bennée <=
- Re: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, Salil Mehta, 2023/10/18
- Re: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, Igor Mammedov, 2023/10/24
- RE: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, Salil Mehta, 2023/10/25
- Re: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, David Hildenbrand, 2023/10/25
- RE: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, Salil Mehta, 2023/10/25
- Re: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, Igor Mammedov, 2023/10/26
- RE: [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?, Salil Mehta, 2023/10/27