qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist?
@ 2023-10-18 15:16 Salil Mehta
  2023-10-18 15:41 ` Alex Bennée
  0 siblings, 1 reply; 12+ messages in thread
From: Salil Mehta @ 2023-10-18 15:16 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: mst@redhat.com, imammedo@redhat.com >> Igor Mammedov,
	philmd@linaro.org, david@redhat.com >> David Hildenbrand,
	Jonathan Cameron, Salil Mehta

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
     [...]

     /* 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-10-27 10:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-18 15:16 [Question] x86/microvm: why has_hotpluggable_cpus = false but hot(ub)plug APIs exist? Salil Mehta
2023-10-18 15:41 ` Alex Bennée
2023-10-18 16:48   ` Salil Mehta
2023-10-24  8:05     ` Igor Mammedov
2023-10-25  9:16       ` Salil Mehta via
2023-10-25  9:16         ` Salil Mehta
2023-10-25  9:31         ` David Hildenbrand
2023-10-25  9:54           ` Salil Mehta via
2023-10-25  9:54             ` Salil Mehta
2023-10-26 12:09             ` Igor Mammedov
2023-10-27 10:15               ` Salil Mehta via
2023-10-27 10:15                 ` Salil Mehta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).