qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 37/36] machine: introduce MachineInitPhase


From: Paolo Bonzini
Subject: Re: [PATCH 37/36] machine: introduce MachineInitPhase
Date: Fri, 27 Nov 2020 16:29:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

On 27/11/20 14:29, Igor Mammedov wrote:
  void qmp_set_numa_node(NumaOptions *cmd, Error **errp)
  {
-    if (qdev_hotplug) {
-         error_setg(errp, "The command is permitted only before the machine has 
been created");
-         return;
+    if (phase_check(PHASE_MACHINE_READY)) {
that's what I was afraid of in 26/36,
it should be PHASE_MACHINE_INITIALIZED

Indeed it should, and the same goes for qmp_x_exit_preconfig. Also, it's probably best to add a comment to qemu_init_board, like

+    /* From here on we enter MACHINE_PHASE_INITIALIZED.  */
     machine_run_board_init(current_machine);

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]