From patchwork Tue Oct 2 01:20:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wei.guo.simon@linux.alibaba.com X-Patchwork-Id: 10623609 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA042174A for ; Tue, 2 Oct 2018 12:59:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A40002882F for ; Tue, 2 Oct 2018 12:59:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 986342884A; Tue, 2 Oct 2018 12:59:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DATE_IN_PAST_06_12, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 99D9C2882F for ; Tue, 2 Oct 2018 12:59:13 +0000 (UTC) Received: from localhost ([::1]:43619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7KGd-0004aV-1w for patchwork-qemu-devel@patchwork.kernel.org; Tue, 02 Oct 2018 08:59:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7KG1-0004Hn-Il for qemu-devel@nongnu.org; Tue, 02 Oct 2018 08:58:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7KFy-0005OW-CJ for qemu-devel@nongnu.org; Tue, 02 Oct 2018 08:58:33 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:26999) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g7KFw-0005Kc-Gf for qemu-devel@nongnu.org; Tue, 02 Oct 2018 08:58:30 -0400 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R991e4; CH=green; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e07487; MF=wei.guo.simon@linux.alibaba.com; NM=1; PH=DS; RN=2; SR=0; TI=SMTPD_---0T9rnzGe_1538484750; Received: from localhost(mailfrom:wei.guo.simon@linux.alibaba.com fp:SMTPD_---0T9rnzGe_1538484750) by smtp.aliyun-inc.com(127.0.0.1); Tue, 02 Oct 2018 20:52:30 +0800 From: wei.guo.simon@linux.alibaba.com To: qemu-devel@nongnu.org Date: Tue, 2 Oct 2018 09:20:53 +0800 Message-Id: <1538443253-6480-1-git-send-email-wei.guo.simon@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 47.88.44.36 Subject: [Qemu-devel] [PATCH] hw/i386: add legacy cpu hotplug for pc-lite X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chao Peng Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Simon Guo 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 --- 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)