Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1259182rdb; Wed, 20 Sep 2023 04:30:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVFyNUber4pNOvia8vAjWkmdP5fc11jRllpVemmEujhvRHDGTYHY+w14aU3GNUxIu1/keI X-Received: by 2002:a05:6a00:4486:b0:68f:be13:6c16 with SMTP id cu6-20020a056a00448600b0068fbe136c16mr2572710pfb.2.1695209415776; Wed, 20 Sep 2023 04:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695209415; cv=none; d=google.com; s=arc-20160816; b=FvtSPQNRvmQk5vnSCWdhLksYA/RBjj88mBjgu8lvEroN/S1apuM0oYG+ktNZSpZGIk UFVm6IPmXdfKT28nJxulyXShM/zL1g8SLx6c98oEZ9uarKrbELjz1gkSBXGJm7Ig31bP Ofa9VEhPHMzG8XCCk052ji7xIf3644rpgzxP2FBvJCzyAU8Ttj/6U29KGNV0EJKCqRTH pDhaN02BXSVZndpq+DOmDb+h6tbpR3xVkbANB2GrTRz+k3P5X7sdePeV72cwne6gG398 J7BaB1bv68TRUuoHE/Bef3g+aMk7W8GzukAJaO4fCoFmCU2w7I6ucrHb2OvOjbMCiE4I yOeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NCQ64axOzYWQoVJr89JJGEJBkzqcHIgukSDri2Lu2nY=; fh=vy7D0OYcPZh9HXWp2KA8VVDgG1BWaCTF4Kp9ALvlhso=; b=zgLz+tfOYb0uwFTabEW1iV5iX6z9jNh/tTOj5PlkB/uGEtjUw2r/9zwjf0CxycZtUz 3alyGyJFirSGAnWFpbZwfJIe54DsvTkFankYjk41ysJB3ZSbS72OwNdjKq5azucegnZF fvsYAI1WG0Nw9VB9w7hPN/2fCgsU46NY+kZ+5gtZLdwz6dIrL9OdLuhD5D5YAwNXrjYz 5Y8mAi4RXsEn6m1Yt4q/dsnLrhXRAptOONFt3SAcZi1B5lS34jL2UHiksWeUDkQK3a/I yZKEUt0w1jRGIEU9bc03VPrdPZ3M2DVZrWabMb+6ByCQKaw9MsW1v8rfVJapqrYOLRNy V/Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="gyy/EoGY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id o15-20020a056a0015cf00b00690da05391fsi1636032pfu.255.2023.09.20.04.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:30:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="gyy/EoGY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0A19082C400D; Wed, 20 Sep 2023 00:47:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234041AbjITHrC (ORCPT + 99 others); Wed, 20 Sep 2023 03:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234015AbjITHqb (ORCPT ); Wed, 20 Sep 2023 03:46:31 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EEE5138 for ; Wed, 20 Sep 2023 00:46:05 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-404fbfac998so40880815e9.3 for ; Wed, 20 Sep 2023 00:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1695195964; x=1695800764; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NCQ64axOzYWQoVJr89JJGEJBkzqcHIgukSDri2Lu2nY=; b=gyy/EoGYbXfyOyLpfHmDk2WWbOm9L6Zqt4sjxcvHKfTBm6XNcQ8YSz6YjLKJRGyUSJ c91AkGYNN/LlvPGeoNjPduIyomQsXUhY48vcfafjMUSBTZ6A0SLRO0nkPfMTmzdn+DPx apOLtHGVcULHy/b/KcG9CvQ9J7MFWuybFZHJ91cBojYo2OvxoT8gcBispXSV5r8+Df+Z EBITdzHl5MLglRy+VRQkEM5U6hVwfgLOffEFUXZE8ubWnzR8QKA1fjYqMxtSKqgKXrJ8 ay993suO4Qh93QmcU/F9s/Hmm8u1lZWM3Wzh30RzmXuM5YRsU7H7DSH4qeRMdRP5X5Of JQdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695195964; x=1695800764; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NCQ64axOzYWQoVJr89JJGEJBkzqcHIgukSDri2Lu2nY=; b=vs1sibx9TxJ1DWaxBf/DRbh+uRQCTaDR7PJDc9qxoEIh0+KcP1unJR6dKdF02e1m3K bU5dFjCOQM3ShclRqPuaKBpGxSFiF/qeOZHVdgcT6jOawdDLOkjavwfuKN77XafXm4Fm EsDovoejWHLDvBcukFdAUbG0niuPA3XXPvzerKDAlurE1AX9oLptPg/6wSuOHoy71iiP LoCcn8JjiENkRKdiGd54cQapne1l/4wo00y0OiUPF5nbwy6iq18jvMEQ85yO5DDctkAw CPDzhxUB6FocAjHGGYSIuZyPyHs1/zf2JUL89Dai58F/zvnLGcShc6yEJHfzyDR4MFNv sBfQ== X-Gm-Message-State: AOJu0YzmMo6iF15k1yvn8rmxQoYEe0D4fgHRpb2I2GZJPHzVuPUVGdT2 Fb+sAy1A9RQuxo11nVk5mpOtdw== X-Received: by 2002:a7b:cd94:0:b0:401:b204:3b85 with SMTP id y20-20020a7bcd94000000b00401b2043b85mr1635240wmj.36.1695195963742; Wed, 20 Sep 2023 00:46:03 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id j5-20020a5d6045000000b0032008f99216sm10914828wrt.96.2023.09.20.00.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 00:46:03 -0700 (PDT) Date: Wed, 20 Sep 2023 09:46:02 +0200 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Shuah Khan , Mayuresh Chitale , devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 3/7] RISC-V: KVM: Allow XVentanaCondOps extension for Guest/VM Message-ID: <20230920-64bd7206b92e056d76cd9715@orel> References: <20230919035343.1399389-1-apatel@ventanamicro.com> <20230919035343.1399389-4-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919035343.1399389-4-apatel@ventanamicro.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 20 Sep 2023 00:47:19 -0700 (PDT) On Tue, Sep 19, 2023 at 09:23:39AM +0530, Anup Patel wrote: > We extend the KVM ISA extension ONE_REG interface to allow KVM > user space to detect and enable XVentanaCondOps extension for > Guest/VM. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/uapi/asm/kvm.h | 1 + > arch/riscv/kvm/vcpu_onereg.c | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/arch/riscv/include/uapi/asm/kvm.h b/arch/riscv/include/uapi/asm/kvm.h > index b1baf6f096a3..e030c12c7dfc 100644 > --- a/arch/riscv/include/uapi/asm/kvm.h > +++ b/arch/riscv/include/uapi/asm/kvm.h > @@ -138,6 +138,7 @@ enum KVM_RISCV_ISA_EXT_ID { > KVM_RISCV_ISA_EXT_ZIFENCEI, > KVM_RISCV_ISA_EXT_ZIHPM, > KVM_RISCV_ISA_EXT_SMSTATEEN, > + KVM_RISCV_ISA_EXT_XVENTANACONDOPS, > KVM_RISCV_ISA_EXT_MAX, > }; > > diff --git a/arch/riscv/kvm/vcpu_onereg.c b/arch/riscv/kvm/vcpu_onereg.c > index 388599fcf684..17a847a1114b 100644 > --- a/arch/riscv/kvm/vcpu_onereg.c > +++ b/arch/riscv/kvm/vcpu_onereg.c > @@ -40,6 +40,7 @@ static const unsigned long kvm_isa_ext_arr[] = { > KVM_ISA_EXT_ARR(SVINVAL), > KVM_ISA_EXT_ARR(SVNAPOT), > KVM_ISA_EXT_ARR(SVPBMT), > + KVM_ISA_EXT_ARR(XVENTANACONDOPS), > KVM_ISA_EXT_ARR(ZBA), > KVM_ISA_EXT_ARR(ZBB), > KVM_ISA_EXT_ARR(ZBS), > @@ -89,6 +90,7 @@ static bool kvm_riscv_vcpu_isa_disable_allowed(unsigned long ext) > case KVM_RISCV_ISA_EXT_SSTC: > case KVM_RISCV_ISA_EXT_SVINVAL: > case KVM_RISCV_ISA_EXT_SVNAPOT: > + case KVM_RISCV_ISA_EXT_XVENTANACONDOPS: > case KVM_RISCV_ISA_EXT_ZBA: > case KVM_RISCV_ISA_EXT_ZBB: > case KVM_RISCV_ISA_EXT_ZBS: > -- > 2.34.1 > Reviewed-by: Andrew Jones