Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5986282rwb; Wed, 21 Sep 2022 15:46:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Z73Ln9szgvXkuVApBIl4uaCNC2uydD82lNhPUAItM4PeWN+6h+3C+82K0xJgZCougKFVk X-Received: by 2002:a17:907:805:b0:782:1a0d:337f with SMTP id wv5-20020a170907080500b007821a0d337fmr396087ejb.475.1663800375140; Wed, 21 Sep 2022 15:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663800375; cv=none; d=google.com; s=arc-20160816; b=wcLjI/haXeCATWoGshwPQdZDqMRHYI2PETGF+9tQ8OCk0andwrh6zQ2nm5eA4O0Tek WCRAKQRng5Fwdx3ssZrnGdQpqSrFS1lPpH7RE1ZCALCOlf1g02zkEnMfQfWQAFPgOarB a48ZjmpmWIkTT4MTcxqRTGl/kjJ4r4WDWzdze6ttVlFYf52xF+DTvfpk0jqCMS6P+Trv s9r5d2ZKRg18MQEetbconuWgHTWSI3XMcka1R2V0AZA+jyQD5vikJrSwpiLCC8qnT079 AXalXpARbOy/L+ZUczh0VFv3XYvAXlmNYyXk8d8eGVvyguCH1L+ebrwCPU8IGdLJYQYv o/fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=ktAQp/cqUNax6F89ciMk5io9XS6O+IoDU1II6HgARlk=; b=BWorYIX+b8IUwcO9kzx+sEDDtPhJqEr7NA8B0HCwAYcMYCkB5SOhDjxaUfn5H76ibj XBTDav0jlr4yJTb35bcAkJ+D+7JzuoQqAF7B+APG9kQwtrlKzaaQB1hUzyh3WbmQ622z NaPt5U0BIEuP0GipRs7pf3iI8O1B4sjrSHsUgu61sXYIQ9LbQR/G18JrMIOthuVnGQZ1 rvhhCu9g3MFr55zu1t1K8PQOm8OtFf5Y8j6jFLBTQQuO2dlvJjQFWwBBnXmGxNr0ZBPW MaNMF8WDajw/PiUq72a//0h9k4OGNBCILcohw9k4u/qUk/3kY7bgdu6BWWnqp7SbPzXx GjoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=SQEMJdZA; 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 hv11-20020a17090760cb00b007309350f2f9si4001751ejc.555.2022.09.21.15.45.49; Wed, 21 Sep 2022 15:46:15 -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=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=SQEMJdZA; 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 S229669AbiIUVzR (ORCPT + 99 others); Wed, 21 Sep 2022 17:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbiIUVzC (ORCPT ); Wed, 21 Sep 2022 17:55:02 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0EF92F78 for ; Wed, 21 Sep 2022 14:54:56 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id g1-20020a17090a708100b00203c1c66ae3so180625pjk.2 for ; Wed, 21 Sep 2022 14:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ktAQp/cqUNax6F89ciMk5io9XS6O+IoDU1II6HgARlk=; b=SQEMJdZAxGZLgr10LuMDwKTK6WnB/iHH0F/XbZBnLhtsk4J9RkRaDB/8S59fu2bvkW T+GTfp5V+hhi71zNXY6WbofK00rZEfqdtw8pA4P0Wzr9Try2jGDApm2BQrjuu8euMhBk yZoFHMNBtPF7gP870Pz67atYHfqGG79eDhd04MoUTO+mYew6PrPR6NNI0+REGOUQJlAN PCNWJlfaruV0NIL6eAnQjufQJw4ddzljKoBygMsvenog8DVFmgMY2sn2d5Ui3Mqfxf/D EJWveRPWpqS8XThMM/pepjqjRGb6ZvWRi5MTpio7GEks4HIuQzVxCzIrjzh2R2YfJqS0 r/Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=ktAQp/cqUNax6F89ciMk5io9XS6O+IoDU1II6HgARlk=; b=8BFKKnsKZIRVb3+UE8mW/d+LYyc4pIM5ZyY13AtW/q7JZs78Pa26s+qndrdLWfeQbq u7MwPaESnLBN6bmkktrN1a1va30aawSfUTjiIS7BFvWc0EplgPPHOkABHYNUt9aOMRh7 6Eju6T7olckESkVJaesTSG2w5k1kCH0Akpi5mifnjMPWoMVPipwys8QjyZjMYqyCvqQ8 WY/Xm1dV8jz2F6+1nGB0mpapztrYhlo3vemQDH93ci1Zd48zSogIUOZVHKvMuTVxSZtL 6t+ohvHWU7Z//JfdlDQBdKNknCeF2CSSiMKy2Q4ryyIk1OeoB0Xu5++tCwE1f1ZrF/Tz DtXQ== X-Gm-Message-State: ACrzQf3KE3UPn/fAMUm8uvMEqJp+KRS+RqjIq9TFFbIhW7qG2jv6h7dq ALlPSBGz9eBv9dXLjpMdTl8Rwg== X-Received: by 2002:a17:902:d512:b0:178:6946:a2aa with SMTP id b18-20020a170902d51200b001786946a2aamr139075plg.116.1663797295533; Wed, 21 Sep 2022 14:54:55 -0700 (PDT) Received: from stillson.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id k7-20020aa79727000000b005484d133127sm2634536pfg.129.2022.09.21.14.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 14:54:55 -0700 (PDT) From: Chris Stillson Cc: Vincent Chen , Greentime Hu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Eric Biederman , Kees Cook , Anup Patel , Atish Patra , Oleg Nesterov , Heinrich Schuchardt , Guo Ren , Conor Dooley , Arnaud Pouliquen , Chris Stillson , Paolo Bonzini , Qinglin Pan , Alexandre Ghiti , Arnd Bergmann , Heiko Stuebner , Jisheng Zhang , Dao Lu , Sunil V L , Nick Knight , Han-Kuan Chen , Changbin Du , Li Zhengyu , Ard Biesheuvel , Tsukasa OI , Yury Norov , Frederic Weisbecker , Mark Rutland , Vitaly Wool , Myrtle Shah , Catalin Marinas , Will Deacon , Mark Brown , Janosch Frank , Huacai Chen , Alexey Dobriyan , Christian Brauner , Vincenzo Frascino , Eugene Syromiatnikov , Colin Cross , Peter Collingbourne , Andrew Morton , Barret Rhoden , Suren Baghdasaryan , Davidlohr Bueso , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: [PATCH v12 15/17] riscv: Add V extension to KVM ISA allow list Date: Wed, 21 Sep 2022 14:43:57 -0700 Message-Id: <20220921214439.1491510-15-stillson@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220921214439.1491510-1-stillson@rivosinc.com> References: <20220921214439.1491510-1-stillson@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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincent Chen Add V extension to KVM_RISCV_ISA_ALLOWED list to enable VCPU to support V extension. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/riscv/include/asm/hwcap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index 6f59ec64175e..b242ed155262 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -35,6 +35,7 @@ extern unsigned long elf_hwcap; #define RISCV_ISA_EXT_m ('m' - 'a') #define RISCV_ISA_EXT_s ('s' - 'a') #define RISCV_ISA_EXT_u ('u' - 'a') +#define RISCV_ISA_EXT_v ('v' - 'a') /* * Increse this to higher value as kernel support more ISA extensions. -- 2.25.1