All of lore.kernel.org
 help / color / mirror / Atom feed
From: wei.guo.simon@linux.alibaba.com
To: qemu-devel@nongnu.org
Cc: Chao Peng <chao.p.peng@linux.intel.com>
Subject: [Qemu-devel] [PATCH] hw/i386: add legacy cpu hotplug for pc-lite
Date: Tue,  2 Oct 2018 09:20:53 +0800	[thread overview]
Message-ID: <1538443253-6480-1-git-send-email-wei.guo.simon@linux.alibaba.com> (raw)

From: Simon Guo <wei.guo.simon@linux.alibaba.com>

Currently pc-lite cpu hot plug will leads to error like:
"acpi: device plug request for not supported device type: host-x86_64-cpu"

. However pc_lite_machine_options() didn't setup flag legacy_cpu_hotplug
correctly, which will leads to a later mess state, and causes the error
above.

This patch corrects this by initialize legacy_cpu_hotplug flag
correctly at pc_lite_machine_options().

Signed-off-by: Simon Guo <wei.guo.simon@linux.alibaba.com>
---
 hw/i386/pc_lite.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/i386/pc_lite.c b/hw/i386/pc_lite.c
index 707f2fd..5fd05b1 100644
--- a/hw/i386/pc_lite.c
+++ b/hw/i386/pc_lite.c
@@ -196,6 +196,7 @@ static void pc_lite_machine_options(MachineClass *m)
     m->units_per_default_bus = 1;
     m->no_floppy = 1;
     pcmc->type = PC_MACHINE_TYPE_LITE;
+	pcmc->legacy_cpu_hotplug = true;
 }
 
 static void pc_lite_2_7_machine_options(MachineClass *m)
-- 
1.8.3.1

                 reply	other threads:[~2018-10-02 12:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1538443253-6480-1-git-send-email-wei.guo.simon@linux.alibaba.com \
    --to=wei.guo.simon@linux.alibaba.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.