Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp932456lqb; Wed, 29 May 2024 15:27:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJNMrnQbevaBqFVECzrQrCBmoa6WyIfOnk5gqwYjOri7loOyYU4ijJWtjzEgxjDLDBRtx033QD75udhqjN9yUnf3dm1yuY4mkLbJFDXQ== X-Google-Smtp-Source: AGHT+IHtwKquiM3tzxO+BB6QTd0fgPzNkHnh1W0WSz7lLokHU7Svos11tkWxIhkJkAybhM9Bp96U X-Received: by 2002:a17:902:db07:b0:1ec:5104:c75a with SMTP id d9443c01a7336-1f6196323f3mr4465265ad.41.1717021629527; Wed, 29 May 2024 15:27:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717021629; cv=pass; d=google.com; s=arc-20160816; b=RiCy8k09Qk8GRBJ9m7B0dcdtv0TvxfcO3nSAoizNn+ZNQ8aRWfETFAnxovsDPkFuGC H1j1oVpwZjCnFD7aqbemXFzIZfdG4IIu1MG6u8t2SJ8tta8mVRcbGTHj/jL2QwW4PqEy qw6MHYLBhPw+TIqctgvSdiUAM4lPiCLgLGF5xg+w2vnLW96kUiMwN/Aqzjs9A28GZDAq ft8EkuJtbozR5GuA2BeZDi8sW8BBcw9ICQdTWVmzGB9A8CQ+CpSVAC/xfk7ztnEhDcuH RNQVJCbBtsGIgm74qOaRDpWEhBv9Jk4Qm3Bq4TVt2uWrcuKX2q14WAmXMUDaAVzPZ0qg a7uQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=80ksSo6mSUkyM2Bp/41caPk6UaONL0Ucenm+2d45iFE=; fh=8KbzDu+CN0PSSfQztbLZkQg5sfir8F7WRN4qw0E3QTQ=; b=0sVhZtAK9H7Z5bTwTgOExZcjFk5RDIuzw0dnXvK9GVTK/B/groEh3FJVFRkzSKkhlx u/mkts6svD+faWn26Jco/1XcTJMH/wStzquo+7sBF5sas2MOzhZbVUiGAL8nPfoEeqN+ AS7y+BAth5t2Mtj1AqK8gmyWl9vx/NQsLc+n9ed1lMwqe1E/AWlGoFFzv0aMXdogksn8 7LINMfpdhOQGtf0vLjZK947nBDbcWxHPNcYToc70S0fpDve3q0sUCfKrqA//c2lev4cG k+LXVQ7KVN1PJCwmqv92lL0iz3BbWLFNMPJyjURx4A1G3SUtfXzEiPGnROzvLEg2jFCT RZaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=DzJyPQRf; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-194737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194737-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f4960c9cbesi64785325ad.164.2024.05.29.15.27.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:27:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=DzJyPQRf; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-194737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194737-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2E5F928593B for ; Wed, 29 May 2024 22:17:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B589016E865; Wed, 29 May 2024 22:17:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="DzJyPQRf" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C72115D5A8 for ; Wed, 29 May 2024 22:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717021019; cv=none; b=uK3/R8YdE1dxhuGhI93AIESeFA9SpymrXGTETWD+jzIJ6z/1drM2bRXywWI7TAHFZEEOwcbp7dGM+IaQHpGJyHeWc4F0RE4TnVsKi658DGRZpOznbe/73S/siSr1TmFPaaEG+VVvzt7BkXsZLmmXf5E1UPkqllBADIx9ahK7WBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717021019; c=relaxed/simple; bh=3ceb4B2s2dAhT+Ha5t1KxT2Yaybyqn2rSazREJDzWsQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z+wIbafpRi9MwaGrQb9rjG99Nz0x5K5M7lX9S0QuWAkVGh2/Yq2DVa48ysd0VshZXoQKecCv3O9LroBds7rWAJYN6VME/91TRO30Hp+bzgJ8vNDFGyWTjp37S8nCPMTnKe6c8JW0grhURfE5Fa6r67Qbjj/B3kRAna6YTMeM2QY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=DzJyPQRf; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-70109d34a16so246383b3a.2 for ; Wed, 29 May 2024 15:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717021017; x=1717625817; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=80ksSo6mSUkyM2Bp/41caPk6UaONL0Ucenm+2d45iFE=; b=DzJyPQRfgsCFxff1YeufgSvHrdKe01vWyepGGguDhnaciLdYntdsF8+3VQ59tr4Xs+ 6vdYbzU74XMSXEiOdH7XCuVb0Q1/kfQWXqRsw0jaq9GyEDp5jqg3ARVvz+fi+c/xEo+1 /k345GxuKts08OI0dCoPWBw/SK5BAHTrIGlLVTfqyxGpLnxpN0k+kRkWJB6xQ0mNxcIX Hig6kkVRiulNicdyl7SF58Ls2nyzOUmkZSZAavEabpc/1xuyDQUNVBAPzavoGba6kSM6 NrfgnOjYa8/XUE5Ih1neXjoCdkPXKSNPtaeOeqMIqR4yenQo37apdJMpmxSlm6V399fF icfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717021017; x=1717625817; h=in-reply-to:content-transfer-encoding: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=80ksSo6mSUkyM2Bp/41caPk6UaONL0Ucenm+2d45iFE=; b=fJ1gvg0iPMYcpKNsutYXjk3uSX2sKRUfw69y0v+/PGRjilPLcteLr+GJ1QzS95aGMK aTOzP0qxW2VoUWEKqyrptnRgArDDtl0YuOni/OJCFKQ75UoZ9FLhAMnkdNQIPb6EIr5t 5Qe4I6mgtsGlfYSmcSLTa1+IF85xGAmkxeIINFIj42WlhzOaVD2mh6yxkwvYyzoZL/dx 0WDR7B60Sk2cMhP1CSqKce8nxKJRXOrrH+5s2940EGxXU1VhG8efMUq9dGEviEIp9qB2 Mbn01NJ0j0N02bB2Fz/bn+0r0/d+5bBODaaXCxOaBcRm66kpd1N0ZjkfUG0GzoOeNb4B WkwA== X-Forwarded-Encrypted: i=1; AJvYcCXcYmcMiZU8mV0/VBZIHkVd1g1BFOyEEciURQuhf0O+6A1s8oe8Rel3BvsIoP5n65h3H7rfH5Ajli8crjSdEfW2Azw7wc26ckxWvzql X-Gm-Message-State: AOJu0Yzh/ZXA95iQN2TW1dxFUre5DU2eu3qtMa7cTg7iGknMw7klnBTj YQhinPrPQqrIyTg4enZFG6pOAxynVmUIvp3boEVufJnsMBlQ93y6g6RHRxKZ5GA= X-Received: by 2002:a05:6a00:410f:b0:6ea:d114:5ea1 with SMTP id d2e1a72fcca58-7023113ef39mr464430b3a.17.1717021016699; Wed, 29 May 2024 15:16:56 -0700 (PDT) Received: from ghost ([2601:647:5700:6860:32f9:8d5b:110a:1952]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fd4d4ebcsm8503826b3a.187.2024.05.29.15.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:16:56 -0700 (PDT) Date: Wed, 29 May 2024 15:16:53 -0700 From: Charlie Jenkins To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Anup Patel , Shuah Khan , Atish Patra , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v5 04/16] RISC-V: KVM: Allow Zimop extension for Guest/VM Message-ID: References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-5-cleger@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240517145302.971019-5-cleger@rivosinc.com> On Fri, May 17, 2024 at 04:52:44PM +0200, Cl?ment L?ger wrote: > Extend the KVM ISA extension ONE_REG interface to allow KVM user space > to detect and enable Zimop extension for Guest/VM. > > Signed-off-by: Cl?ment L?ger > --- > 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 b1c503c2959c..35a12aa1953e 100644 > --- a/arch/riscv/include/uapi/asm/kvm.h > +++ b/arch/riscv/include/uapi/asm/kvm.h > @@ -167,6 +167,7 @@ enum KVM_RISCV_ISA_EXT_ID { > KVM_RISCV_ISA_EXT_ZFA, > KVM_RISCV_ISA_EXT_ZTSO, > KVM_RISCV_ISA_EXT_ZACAS, KVM_RISCV_ISA_EXT_SSCOFPMF got added here in 6.10-rc1 so there is a conflict now unfortunately. Easy to fix at least! - Charlie > + KVM_RISCV_ISA_EXT_ZIMOP, > KVM_RISCV_ISA_EXT_MAX, > }; > > diff --git a/arch/riscv/kvm/vcpu_onereg.c b/arch/riscv/kvm/vcpu_onereg.c > index f4a6124d25c9..c6ee763422f2 100644 > --- a/arch/riscv/kvm/vcpu_onereg.c > +++ b/arch/riscv/kvm/vcpu_onereg.c > @@ -60,6 +60,7 @@ static const unsigned long kvm_isa_ext_arr[] = { > KVM_ISA_EXT_ARR(ZIHINTNTL), > KVM_ISA_EXT_ARR(ZIHINTPAUSE), > KVM_ISA_EXT_ARR(ZIHPM), > + KVM_ISA_EXT_ARR(ZIMOP), > KVM_ISA_EXT_ARR(ZKND), > KVM_ISA_EXT_ARR(ZKNE), > KVM_ISA_EXT_ARR(ZKNH), > @@ -137,6 +138,7 @@ static bool kvm_riscv_vcpu_isa_disable_allowed(unsigned long ext) > case KVM_RISCV_ISA_EXT_ZIHINTNTL: > case KVM_RISCV_ISA_EXT_ZIHINTPAUSE: > case KVM_RISCV_ISA_EXT_ZIHPM: > + case KVM_RISCV_ISA_EXT_ZIMOP: > case KVM_RISCV_ISA_EXT_ZKND: > case KVM_RISCV_ISA_EXT_ZKNE: > case KVM_RISCV_ISA_EXT_ZKNH: > -- > 2.43.0 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv