From patchwork Tue Oct 26 17:01:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 12585239 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 929C6C433EF for ; Tue, 26 Oct 2021 17:04:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E06860E08 for ; Tue, 26 Oct 2021 17:04:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E06860E08 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Rn+t4Nj9iw/omzLUH+f6WJ4jx8NswCbGqnfEXDOZj9M=; b=jk01Y95ds/UNzc aQp6a98/Ty0c7Q2aoolA9TaXEQ/8QqQAY2/JBDUYIx26IrU7jeQlVXzG8laijwblSAEUbTW62A9wf S+f8Qg0snqINXdxUR9imD0uUs81/sjmJQB/iPmRkQEwA3fIo5TMWdyn4BWl2FcVI6/wgTUUlNjSTe 2XiP4REkuHqtTnorhy/MVzK+iTvRuyee1huqtPQ/IT2s+H+y6PEi87+VAmfVPo41Db/O8mcMYelvO GwuX/vwynvBPMXQnDjpQUfyP8xcMae62+ryI/l21pR/kGI6JH2pKZ29pnTu1uM8cjzqKbz+KfP5Mf QbL2zoA7CTXw90F0zD5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfPrj-002Z6X-Kb; Tue, 26 Oct 2021 17:03:59 +0000 Received: from esa1.hgst.iphmx.com ([68.232.141.245]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfPrf-002Z3o-Na; Tue, 26 Oct 2021 17:03:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1635267835; x=1666803835; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=UtmGwNLtbSxGJVqCYKK7n4C8ex2dBx4gBgISwW9kXsc=; b=AYFUTSLigsccMB+dK5LOo3m0vowLugdsE2IxQ10kUkThHwEEBKwWDKeM EvwDBGx1X5dKSpilqVFxBZwJC70e/TAwbG/jxzENgRivBCHjkL7oNpZW0 PIbFYLvIAvSWLnFPg68VxS7L5ad54rkBrQRb15lWHFCXMjHh5AOYT6yoC bcT3FBgBR6+US0JuGSHecvtAHPQbi0V2SqVWhK9Isr0QAmwS+lPmzZlwu pqMvzEyyuuDF+Kf4TbOXFguyiKLMs3lJx7IsMbKqvu9MapC6+fq+aYA4A QslT4FhSl/CSII8jSFZ0HhvNnw84XYcIQhqkr7dApVeBvRdzYqRYrhiwQ A==; X-IronPort-AV: E=Sophos;i="5.87,184,1631548800"; d="scan'208";a="295633711" Received: from mail-bn8nam12lp2175.outbound.protection.outlook.com (HELO NAM12-BN8-obe.outbound.protection.outlook.com) ([104.47.55.175]) by ob1.hgst.iphmx.com with ESMTP; 27 Oct 2021 01:03:12 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e3A7pO99nvGotL2h9oIkQuoOSq0mR6NmJGr0ThOygjKbYyA8q8algzkSKHG+phSa1GuKZIkZzm3LYR+AdV/VbS4LfmcWt4/rvt4Wf5nzHxYm9Lus5HWefwabNhw6oBscTXKII9LHEiE6ebvCw/xWm9C8t+KukuSkxIqiRfwvog0HfARS5EjUYUFWS9b/IcNGwxtCuFm6SKbI6wKYq8qJ+TsJrdyOceysvVPlTdy0TjhlUd9Fn1oAFdulZuZLO19ZQfOczXq2zeAzKqlZGV1jGu0JLrM5vi43Aj+uoVvuvybOj00NKC031JG6HkLxuVVWkm6ppA3EChjDcG9pJkxg5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gBbmF0LwI3fUPesiwtJ6p8oEXlLRgJuvrcp8qsnE36M=; b=NM51ckWX5NFCVObhjuneevIxGO4wxhY+N6rpLFaEyVGF+OUMoJ30pDuJ51fCUUzh03oDWa6VLzIdi4Ypdh6Xr7bfSyo0pdwBuxt3RgE5czMidqvQUJLZwTcEs7BqSkA6StAYJDmXYhoxzLDm3q4X+U6CLLumLRTHyfoItntCHvhnrgnZbKoKtZra4gpP1jS53PLZgk/tX10RyUcA6T87BU0VzdFqIBW6znkOG3xk5YNBvFQaB4yGwl7BS/wMdkqZbf3i2CRLLdIxgp7Iw74sfsOmDhEsbv7MrHeJ51vVhbhsTqxecRGDvQckNOTf5dthyyxMQ0vDZxjFXDteYf2FTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gBbmF0LwI3fUPesiwtJ6p8oEXlLRgJuvrcp8qsnE36M=; b=qY2wFPeuton7B6NaH64KwhH60WrAFMdJvRadFyYwA1iftODjekW9InsLszdIhZiGG6/nRkjMo4/v8x9/D7Mm63UBpEc7hFEJmTD+548c/XxqONmnBOpl5D2Oqfr2QYcvKY1FAPFF6R1KcusHk4YWdPWuUEd7V4XzCmat5vH28Uw= Authentication-Results: dabbelt.com; dkim=none (message not signed) header.d=none;dabbelt.com; dmarc=none action=none header.from=wdc.com; Received: from CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) by CO6PR04MB8314.namprd04.prod.outlook.com (2603:10b6:303:135::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.13; Tue, 26 Oct 2021 17:03:03 +0000 Received: from CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::8100:4308:5b21:8d97]) by CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::8100:4308:5b21:8d97%8]) with mapi id 15.20.4649.014; Tue, 26 Oct 2021 17:03:03 +0000 From: Anup Patel To: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Paolo Bonzini , Atish Patra , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH 1/3] RISC-V: Enable KVM in RV64 and RV32 defconfigs as a module Date: Tue, 26 Oct 2021 22:31:34 +0530 Message-Id: <20211026170136.2147619-2-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211026170136.2147619-1-anup.patel@wdc.com> References: <20211026170136.2147619-1-anup.patel@wdc.com> X-ClientProxiedBy: MA1PR0101CA0018.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::28) To CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) MIME-Version: 1.0 Received: from wdc.com (122.162.126.221) by MA1PR0101CA0018.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Tue, 26 Oct 2021 17:02:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ab37cda-854a-45f5-c298-08d998a278f5 X-MS-TrafficTypeDiagnostic: CO6PR04MB8314: X-Microsoft-Antispam-PRVS: WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JVmV8C5xxeLgJom24ov8rkHfBaR+MFJoxfV8vmxxje1jmeDGVIvy1t4YJfy3dLEaeuQFv0+UJk6J6/lgjI/XEsM0b0hBPhGGye4quVKa+1fAHPGjhUgGeHB+2OoWFsqhH3DKQg0YDBsru3YjUPuKDjFFdyAV3KlHAgnvylNRXlo9w9oEOCqpc52QxEU1s8mtd2+pKRtyKDIFDaJDuFmZMUDKZnxeFA3RlzKplTrCLi9ItXZ+m8DkrgiKhV+h3P65XnPaLNMaJtoVpl09Mgj8r8NHiV3cTbMPoLnRgP2EvoVm6+O8GjCqVXUIODQSIu71HzkpFPhabMCK0YJQhREuC6FH7swbnuLipyoUhklQn/plff1CGUrA8SVTJW9Nlahx/j312SnaBI70cUviF8edeTQGqOIct3jP6WrQEmPT3JBAitSJymd2pDU6HvKI+epWx6s7BdbeIc7UVx51THwG6d/Shl7r26WErlfDV/hRZc6mv+yxmv6cDCXeOusDIC5L/2djDqgds0nUa/F+5xc5RH+kY/e/7aDIa7nzaZQYEuA4+eP8BmAGkW77m704r1+HnnfZWTr3TchRsnzbKiBHLi7qqPfZY9c0Qv/8t8uX5aEfCj9OmED4M81JzQTuElyJFApmbd3eC43eHrIRcNcHSvW8RRyMdPrpVbfjlFBdP5+rbVeH2vUHcyr5aQECdtoxeQkiqg3emHyNAJHs3VJEcA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR04MB7812.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6666004)(4326008)(5660300002)(26005)(44832011)(2906002)(956004)(52116002)(2616005)(8886007)(38350700002)(7696005)(55016002)(83380400001)(186003)(38100700002)(82960400001)(54906003)(110136005)(316002)(8676002)(8936002)(7416002)(36756003)(86362001)(66556008)(508600001)(66476007)(66946007)(1076003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HBsiprU+It+ZwPr6DiwOoyy4hJ0mTY0AC5maVHCvbkYtsBLHZoaw7ZGYn02CFPdwBv4iEN4bma1MOKQg/Qe7xonA0GlmtbllmeeqXySr61LlbiTCJfpQ7YiiT4guj2v5si24Tn5b2fcg0kPyoLFIZw+e0Oc6bJiKIWgRG2Lpju8P8qkzkGDXKMyuhzPJbEvVj4uorV2whXakG3QTvNlqtqM1LuaR24DlPdJoIFE+Ok9wAS3CqxpcSH2YAe3VENlNXXhUFSBk08ROAJAFfJbJpRvJo041cu4Urs9IVvmlqsIaRh2kMrudLixgwEVF9EGX91Ze97Krfx8j38KP3n0W0nKd76mZdR6A97xTRjevhj6U2pejB1c8q+FTCwEci+Otp67m4qwZ2UIfnJrH+cR/XtKH6jcw72pb0e569vzem2Qtda4CenjIbhKnPMc/HMmWaJ9WEV+cfWmnDCHluECGq+IdLGy1hjJYQhO9FAgmeHhiWEbTz1RBEIX+Bn1p3svfV9d2VnUfAYwBcJZvFyOhqI9ViKXpjERKOpLEL01N333OHbSp1krqRo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k6Fk= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ab37cda-854a-45f5-c298-08d998a278f5 X-MS-Exchange-CrossTenant-AuthSource: CO6PR04MB7812.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2021 17:03:03.5223 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /CE9QL+NlWktjNIRfZDP3qU8UlDf/SOqdQe08QtUSnWpG7LJLKMeM2rh562Li0DveSSHil4n5oHt+L1Xbw4u0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR04MB8314 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211026_100355_816066_A1727F1D X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Let's enable KVM RISC-V in RV64 and RV32 defconfigs as module so that it always built along with the default kernel image. Signed-off-by: Anup Patel Acked-by: Palmer Dabbelt --- arch/riscv/configs/defconfig | 15 +++++++-------- arch/riscv/configs/rv32_defconfig | 8 ++++---- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 4ebc80315f01..40506dfab5cf 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -2,6 +2,7 @@ CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y @@ -13,12 +14,14 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y -CONFIG_BPF_SYSCALL=y +# CONFIG_SYSFS_SYSCALL is not set +CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y -CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y +CONFIG_VIRTUALIZATION=y +CONFIG_KVM=m CONFIG_JUMP_LABEL=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y @@ -68,14 +71,12 @@ CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y CONFIG_SPI=y CONFIG_SPI_SIFIVE=y +# CONFIG_PTP_1588_CLOCK is not set CONFIG_GPIOLIB=y CONFIG_GPIO_SIFIVE=y -# CONFIG_PTP_1588_CLOCK is not set -CONFIG_POWER_RESET=y CONFIG_DRM=y CONFIG_DRM_RADEON=y CONFIG_DRM_VIRTIO_GPU=y -CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_PLATFORM=y @@ -85,10 +86,10 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD_PLATFORM=y CONFIG_USB_STORAGE=y CONFIG_USB_UAS=y +CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_CADENCE=y -CONFIG_MMC=y CONFIG_MMC_SPI=y CONFIG_RTC_CLASS=y CONFIG_VIRTIO_PCI=y @@ -139,5 +140,3 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -# CONFIG_SYSFS_SYSCALL is not set -CONFIG_EFI=y diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig index 434ef5b64599..44022e048efd 100644 --- a/arch/riscv/configs/rv32_defconfig +++ b/arch/riscv/configs/rv32_defconfig @@ -2,6 +2,7 @@ CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_NO_HZ_IDLE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y @@ -13,12 +14,14 @@ CONFIG_USER_NS=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y -CONFIG_BPF_SYSCALL=y +# CONFIG_SYSFS_SYSCALL is not set CONFIG_SOC_SIFIVE=y CONFIG_SOC_VIRT=y CONFIG_ARCH_RV32I=y CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y +CONFIG_VIRTUALIZATION=y +CONFIG_KVM=m CONFIG_JUMP_LABEL=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y @@ -67,11 +70,9 @@ CONFIG_HW_RANDOM_VIRTIO=y CONFIG_SPI=y CONFIG_SPI_SIFIVE=y # CONFIG_PTP_1588_CLOCK is not set -CONFIG_POWER_RESET=y CONFIG_DRM=y CONFIG_DRM_RADEON=y CONFIG_DRM_VIRTIO_GPU=y -CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_PLATFORM=y @@ -130,4 +131,3 @@ CONFIG_RCU_EQS_DEBUG=y # CONFIG_FTRACE is not set # CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_MEMTEST=y -# CONFIG_SYSFS_SYSCALL is not set