Message ID | 20230419222350.3604274-3-atishp@rivosinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp711129vqo; Wed, 19 Apr 2023 15:48:13 -0700 (PDT) X-Google-Smtp-Source: AKy350a+pKbhjCA2Y8hv8BxSczd7I774XjEqwpBfngc2qYc254CDo8lhmKC19BICNHZENXjM/cs8 X-Received: by 2002:a17:902:e751:b0:1a6:3a2d:e59d with SMTP id p17-20020a170902e75100b001a63a2de59dmr8651123plf.37.1681944493454; Wed, 19 Apr 2023 15:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681944493; cv=none; d=google.com; s=arc-20160816; b=XB/18/TIeQ+sOHV3jwF7xp0IkXI6M39pAgVxIkyPXlA698xZGQUwtCVnSed0P0YTTL UOdbDWBDlokpt7xZzAC15TphjeXtP2EbuwQ6lODakT+YOSllllezQrExwNUtVSNmfFph dnL41y0QEnMoNzrpFZ1Nl0w6SW1AhNOWLsUYJdAJNLqO4gM4n8kSMc0HFUT6WLfpZjXz QfbkcKgSdcMDZYfxhvAvK6oC5AbL9GcvGou9ZJMwnfX1NRLqWRHFdDBri51Tl55Gx0G8 T1+r3MRhhRqAO7y6O5luUzgJi0QaraIu5JkZtigKxwP27iFZYEZO9SQYI0BMT4dODh7V JRVQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a170902ce8a00b001a9256e81ffsi1121060plg.262.2023.04.19.15.48.01; Wed, 19 Apr 2023 15:48:13 -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 S233398AbjDSW10 (ORCPT <rfc822;peter110.wang@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Wed, 19 Apr 2023 15:25:35 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-63b60365f53so485502b3a.0 for <linux-kernel@vger.kernel.org>; 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 <atishp@rivosinc.com> To: linux-kernel@vger.kernel.org Cc: Atish Patra <atishp@rivosinc.com>, Alexandre Ghiti <alex@ghiti.fr>, Andrew Jones <ajones@ventanamicro.com>, Andrew Morton <akpm@linux-foundation.org>, Anup Patel <anup@brainfault.org>, Atish Patra <atishp@atishpatra.org>, Suzuki K Poulose <suzuki.poulose@arm.com>, Will Deacon <will@kernel.org>, Marc Zyngier <maz@kernel.org>, Sean Christopherson <seanjc@google.com>, linux-coco@lists.linux.dev, Dylan Reid <dylan@rivosinc.com>, abrestic@rivosinc.com, Samuel Ortiz <sameo@rivosinc.com>, Jiri Slaby <jirislaby@kernel.org>, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, Palmer Dabbelt <palmer@dabbelt.com>, Paolo Bonzini <pbonzini@redhat.com>, Rajnesh Kanwal <rkanwal@rivosinc.com>, Uladzislau Rezki <urezki@gmail.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763646629250332279?= X-GMAIL-MSGID: =?utf-8?q?1763646629250332279?= |
Series |
RISC-V CoVE support
|
|
Commit Message
Atish Patra
April 19, 2023, 10:23 p.m. UTC
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 <atishp@rivosinc.com>
---
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 */