Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp919392rwr; Wed, 19 Apr 2023 15:28:21 -0700 (PDT) X-Google-Smtp-Source: AKy350aQO+p19d2h+ycwNoD0qes71lt/6PPDn1qtDJpG6SUlURNS98PKhhABD8wO+znsvNtuijNX X-Received: by 2002:a17:90a:a883:b0:247:9faa:92 with SMTP id h3-20020a17090aa88300b002479faa0092mr4128645pjq.42.1681943301195; Wed, 19 Apr 2023 15:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681943301; cv=none; d=google.com; s=arc-20160816; b=WaXaGcRh4rY6X/rj8WiOC6lvO0YWikS0OWDvHfcGNwgQ2pv6PV6TinvEq58ohn7h1S vTdgbKY1nnYBqPYzGI33qLs8W1UbKh2I/sFb3nUvBf4V8hzY5qNMmOVgp6LlH4PCMWEY WgJC+CicuRui6R+Va9UR5imkG0f3iHJmEJAFtHmrHqeyhxetyuR6tE586BjABtiI5uOm 51e8jMp5FUpLoNy4zH8o+O5zXxUvTmSNBsuRJBsJzZyvyrrhfbevgRuPxyDEwfYrO2Xt VD6h35RxR45B/0b+aYogQQA+2uiD3GC301scFkphiqzF0GSNzeDR/2u+2maogZIGWJPG SuXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nDYPek2GW62ZjpMwmsxfE9d0xDPaKHdBMm+cEZKc8s8=; b=oGIB6Xxc1EmUGTxO0QsIJYcG5CldZzzEK1SBrzSImYZhNclUe8pqoChuxLs1znRYp7 57zXVSyW25bH48vmxSIyQHnNfL5+wXaDMKvZ+5Z2PvM0tdMG2hl1V0hCSY0yFnNH83OB TvdAlVeoP/5Yh0sklrZWn4xza9SOqsnsAcAzIx7vNoV1hRQEnFANXkSGjrKlC4xSL3FO aLfcUJPX7TJR3Fw2e4rGbVFZNIZPRAc/ceH3jmvf6YkN42PO1eI+mWD98a/93IrIhHB9 j/A7n4smJ96nFbuRNmPrgYQs+fRmT2Kbr9yTCdW5Rap4Cy3rmxDG4x0OYBldp6ZlpU60 ptag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=gbm655ZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020a17090a4e8e00b002474702c929si2524273pjh.175.2023.04.19.15.27.55; Wed, 19 Apr 2023 15:28:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=gbm655ZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233346AbjDSW10 (ORCPT + 99 others); Wed, 19 Apr 2023 18:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233644AbjDSW1C (ORCPT ); Wed, 19 Apr 2023 18:27:02 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAC2DC166 for ; Wed, 19 Apr 2023 15:25:35 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-63b60365f53so485502b3a.0 for ; Wed, 19 Apr 2023 15:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1681943046; x=1684535046; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nDYPek2GW62ZjpMwmsxfE9d0xDPaKHdBMm+cEZKc8s8=; b=gbm655ZKGYsSplRJThxaUIliJsDtxxCNHAd8Jsh9rquTj5wgjudHgZwJA550iZsQk9 VB0SQu2x2QDE7zie14SgvIe7dnOfITMaMnMjD/onrUT0al1gT1sDadgULueeivhnEmTD JNLdLb2hMXSDd97f9GLtgcoOoiKtiFWFueifxdMTSbyKE0Z6Gv5tcQoRd/Nk8sLhR8hd DGNAlG+7Czxou3KoS1S39Pu0wydKlsp73goQ0cZbb90x0/1svTeMdjxcJ4JUnBS4z1ue xceJZmumlSVFCncTt6FuOgv+xYSVDvprfYgxAUggRJ/YOlKDghslSrOk6KKM64ujkV1m 0exg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681943046; x=1684535046; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nDYPek2GW62ZjpMwmsxfE9d0xDPaKHdBMm+cEZKc8s8=; b=UqlPQJJPA476YpPIaWiRiDAas3RfbK/8BVpd1wjONd8sI0PsmSyZ6O3THZHNBhHREf ZbjjLIdCCcSt8XKYSxtKBmZzOd6lW6bA0BK0HKeDD3d9dOsHCybqRPLxgznnoDrXcyw6 F6pGc8z8NBx79/9ImEy83oXVyYLFKoX/5abLkvSuVDW5yJKOHh8FxW4+WXW9JJ9tqIX9 F1QX3wH8to5ArkbFo9Eev67IhINU7iY4dig6WHnRdhQd+pBoNlIsjYdvS8EzqkT4qK0v x634p72iJKmBfxlKEe2SJoC9SbUDl4zyCF/UUMZCS6dDiuM2/EMJHLyvkDDorlM65Miy ChBA== X-Gm-Message-State: AAQBX9dGZydXxHV4/A7ylBib6pW07s+NgsPk/OM5siJReC3O4cIZypyQ 149vWrqftm+yYfj1/GvjjIr3CKihjEe/up2+RE0= X-Received: by 2002:a17:903:120e:b0:1a6:c12d:9020 with SMTP id l14-20020a170903120e00b001a6c12d9020mr7842484plh.24.1681943046020; Wed, 19 Apr 2023 15:24:06 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id e4-20020a170902744400b001a681fb3e77sm11867810plt.44.2023.04.19.15.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 15:24:05 -0700 (PDT) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Alexandre Ghiti , Andrew Jones , Andrew Morton , Anup Patel , Atish Patra , Suzuki K Poulose , Will Deacon , Marc Zyngier , Sean Christopherson , linux-coco@lists.linux.dev, Dylan Reid , abrestic@rivosinc.com, Samuel Ortiz , Jiri Slaby , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, Palmer Dabbelt , Paolo Bonzini , Rajnesh Kanwal , Uladzislau Rezki Subject: [RFC kvmtool 02/10] riscv: Define a command line option for CoVE VM Date: Wed, 19 Apr 2023 15:23:42 -0700 Message-Id: <20230419222350.3604274-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230419222350.3604274-1-atishp@rivosinc.com> References: <20230419222350.3604274-1-atishp@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The user should be able configure the VMM to instantiate a CoVE VM via a command line. Add the new option cove-vm. Signed-off-by: Atish Patra --- riscv/include/kvm/kvm-config-arch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/riscv/include/kvm/kvm-config-arch.h b/riscv/include/kvm/kvm-config-arch.h index aed4fbf..01276ea 100644 --- a/riscv/include/kvm/kvm-config-arch.h +++ b/riscv/include/kvm/kvm-config-arch.h @@ -10,6 +10,7 @@ struct kvm_config_arch { u64 custom_mimpid; bool ext_disabled[KVM_RISCV_ISA_EXT_MAX]; bool sbi_ext_disabled[KVM_RISCV_SBI_EXT_MAX]; + bool cove_vm; }; #define OPT_ARCH_RUN(pfx, cfg) \ @@ -66,6 +67,7 @@ struct kvm_config_arch { "Disable SBI Experimental Extensions"), \ OPT_BOOLEAN('\0', "disable-sbi-vendor", \ &(cfg)->sbi_ext_disabled[KVM_RISCV_SBI_EXT_VENDOR], \ - "Disable SBI Vendor Extensions"), + "Disable SBI Vendor Extensions"), \ + OPT_BOOLEAN('\0', "cove-vm", &(cfg)->cove_vm, "CoVE VM"), #endif /* KVM__KVM_CONFIG_ARCH_H */ -- 2.25.1