From patchwork Sun Jul 12 16:34:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1327561 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VZzJrQ/M; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B4XSg72QSz9sR4 for ; Mon, 13 Jul 2020 02:35:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2AA3287546; Sun, 12 Jul 2020 16:35:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9E4WMmr9kfI1; Sun, 12 Jul 2020 16:35:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 402FE87514; Sun, 12 Jul 2020 16:35:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7444C1BF8A8 for ; Sun, 12 Jul 2020 16:35:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CAFBF87C98 for ; Sun, 12 Jul 2020 16:34:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OkFL8tmq0-L5 for ; Sun, 12 Jul 2020 16:34:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id EFDDA87BFE for ; Sun, 12 Jul 2020 16:34:30 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id f2so10744431wrp.7 for ; Sun, 12 Jul 2020 09:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q1VckzmdNmk7Lc8tvFp7TNnjOMrd20EPx5z1cJPlJ+k=; b=VZzJrQ/M92Cpa3taM+EeqQYcCHSlyGG8XxYCtCXHNKGu5mLk1cW5zX8kpdxqPSr/Xc RapELcdueW/efdBWSmbjemNgU8Si+4UednYiWC7f3Zczoq3OHhZQu3WUlOSFtvjkBe6u zznxZhz6N6n2p0FVbYl67T8JcbMi0PBbfFm6uepe7m656iMAdSi8UKJplPfklpjuKO6A 9QjEWLrEZdLpYiIr4GSKxmgo/e73mlwqVflwXP92RycT//R9m/JVJe9XMAZ9z46RD2Bj K4zQCvssIU6p+dfY3JBGD+uX65AmyFh5BBKPScogksmPHps5Wn2u11loi4Zg5hKZpBwd f3+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q1VckzmdNmk7Lc8tvFp7TNnjOMrd20EPx5z1cJPlJ+k=; b=koOBNUeivGPTK8ydDZR2jmV+vURiugfHzo3bDLCNQYqLyj0AqqgquKfCU+ftzADFWs WbabPvH2fxE7Q/I3k0pxivPUFmeHNksIQLFWEPJR4dG67VJY1+zscspkX2BYZNDaByNs yO+YkgMUdO87BQKy85aJWvlnwxZ6l/3Wu8hkHJPzt1O4ZWPnnSM1rSoGFutsy+SazUL7 VpveG5nBhzChiYl7OPRrXEg2GdaHU5gp7Z/hqYs/iC7FcnStOGn6TsdU8FULlCQtTELP Nt0hjyrFPufWulUx3eMXXyPKyfnMcb3D7dd9AHjUlZ6loHjax5wgA+jiiF2Va2y6zfhM G56Q== X-Gm-Message-State: AOAM532GoJS69oArUIzdfIk4Fedyl+bS772Rf5549NT+BMCv2nhDoniH zBBLXBi7uG44CRhkg8Ofeq5zjpd7 X-Google-Smtp-Source: ABdhPJy+vLJ0QzNEJ09W/pyQpanfGGDisJpqeaThj63D+PL8nNIDIZjRHewZSlR04hrHrZDvYv+HvA== X-Received: by 2002:adf:81c8:: with SMTP id 66mr76116159wra.348.1594571669318; Sun, 12 Jul 2020 09:34:29 -0700 (PDT) Received: from localhost.localdomain (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id k18sm19963589wrx.34.2020.07.12.09.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 09:34:28 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 12 Jul 2020 18:34:22 +0200 Message-Id: <20200712163422.1162187-4-romain.naour@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200712163422.1162187-1-romain.naour@gmail.com> References: <20200712163422.1162187-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 4/4] board/qemu/aarch64-virt/linux.config: enable memory hotplug X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" To test memory hotplug [1], add -m 1G,slots=3,maxmem=4G to the qemu command line, boot the system and enter the following command in the Qemu monitor to add another 1GB to the guest: (use ctrl+a c to switch from the serial port and Qemu monitor): (qemu) object_add memory-backend-ram,id=mem1,size=1G (qemu) device_add pc-dimm,id=dimm1,memdev=mem1 [1] https://git.qemu.org/?p=qemu.git;a=blob;f=docs/memory-hotplug.txt;h=6aa5e17e26090f619787de7b71888093fb9d0117;hb=fdd76fecdde1ad444ff4deb7f1c4f7e4a1ef97d6#l9 Signed-off-by: Romain Naour --- board/qemu/aarch64-virt/linux.config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/qemu/aarch64-virt/linux.config b/board/qemu/aarch64-virt/linux.config index 657acaf04f..b81d78349b 100644 --- a/board/qemu/aarch64-virt/linux.config +++ b/board/qemu/aarch64-virt/linux.config @@ -10,10 +10,13 @@ CONFIG_COMPAT=y CONFIG_FW_CFG_SYSFS=y CONFIG_FW_CFG_SYSFS_CMDLINE=y CONFIG_ACPI=y +CONFIG_ACPI_HOTPLUG_MEMORY=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_BLK_DEV_BSGLIB=y CONFIG_BINFMT_MISC=y +CONFIG_MEMORY_HOTPLUG=y +CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_NET=y CONFIG_PACKET=y @@ -27,6 +30,8 @@ CONFIG_BRIDGE=m CONFIG_NET_SCHED=y CONFIG_VSOCKETS=y CONFIG_PCI=y +CONFIG_HOTPLUG_PCI=y +CONFIG_HOTPLUG_PCI_ACPI=y CONFIG_PCI_HOST_GENERIC=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y