Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp474026rdb; Tue, 19 Sep 2023 00:32:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFF9rMV4NNiGNX+6i3BDXjDL3ufQSdMIaN7gzcaoFeZGxWrBY1HvfgaqGlLlndTa9nlqW+Q X-Received: by 2002:a17:902:e749:b0:1c3:cdf5:d891 with SMTP id p9-20020a170902e74900b001c3cdf5d891mr10914906plf.46.1695108752916; Tue, 19 Sep 2023 00:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695108752; cv=none; d=google.com; s=arc-20160816; b=BFpqpvaafWv+L9c4XtGz9ZH0jl6eIsM7KhCI3t6Sj/nx6dSe65Pdd0Fd97xQt938nM OpL5dayXx62b776WzxUKNwt43oGP8WN7j6iY3eiZmcWuytmriLvaBa8w257gw7fdsWK+ bY8xDieiniCgTtgZfrKwn+wGHO3hp8HbfrGjgESv32Q6MlAYszk6cy7zeCZNVaUC9Nau +3X/C1L2EX4vbsFel2paUDuz7hLMru/5E1zsSQkb1rwsShuoiMJMNw2o3hxRgkFBkD7A iY0trYCvyLVKNlR77UmJKA9kTe8nXTSvJF+ZvrZK+eSo63hJUBgA/o7HANytw1LG/ltK aYPA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Rvg3SR+EIFOsYy/qoodlQ+dG3JVvlqb84MODfhL50Kc=; fh=Nnw/Dw3prVIT5KLOVQO3DcS15zu3mo0yAEjXPL5Uo9Q=; b=p9IxsWsF9nmAxdmb3h0G433wqcWdPZ5Sp5yJ+c6MHQOVK+2S5MFj3N+nojd3BkVEfS 1nxW0QklII2UbGRRyoWLXk27a4IkVhTcCKVOrrGajyTRF15Yh7M+RoLkvUsQz0twIBYY kJ1HWWbauW6XNnW9b95M27y+RQyZ8pi0rJmts/qsbOi0g62WYX0T+Fw13s1fl0jBmpNV rNkdFLd9u7MWWIXb6a6FKP3y/MY6ikeD1RPpimx/39qG59jG/J2T9xsmWiIn61Ul6Gdx a1CcqRxwmleEEQpTomOuEz3wIzI+ZBxH8FJpTNDaD2ZQvl2DBe+VeTeFQSq7/PKxVadT jkgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=JbPJU5nn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u2-20020a170902714200b001befd0512e8si8932834plm.303.2023.09.19.00.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 00:32:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=JbPJU5nn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 6ED8A821577B; Mon, 18 Sep 2023 20:54:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231135AbjISDyD (ORCPT + 99 others); Mon, 18 Sep 2023 23:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231190AbjISDyB (ORCPT ); Mon, 18 Sep 2023 23:54:01 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C62FD for ; Mon, 18 Sep 2023 20:53:56 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3ab3aceaf2aso3643938b6e.2 for ; Mon, 18 Sep 2023 20:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1695095635; x=1695700435; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Rvg3SR+EIFOsYy/qoodlQ+dG3JVvlqb84MODfhL50Kc=; b=JbPJU5nnSbZaYZRt/oSridjA3Sc5nGiFWsmhl2f4b9Scu0J0+1j+n46ahtGANrMbf9 3430+ft1eqOnzQdd5Y016/Co+b35IwhN9oyoxmw6Uy8y/EEH+vnxFWBwRk3fL+QkXxCS OAFpeE83shtFUk6E2B8Mz2dji+brCY8PUJBEtCtrxZbUnoJUh1eqe6Js7w1gB7+M6S/A RL4knlAjhS4knF40tpkS+AMYTw4nZL51u/JoHGFfhid3JSrvTlV+7OCNACimSRs1f278 jl/fsewlsqJ6Rf4591gOqOSwmAh4ce2ZtGSdqReZomoft1xZJ7GG/FIG8ConRuL2VLKe ipbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695095635; x=1695700435; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Rvg3SR+EIFOsYy/qoodlQ+dG3JVvlqb84MODfhL50Kc=; b=mTyB9x+lu/4FKCZwGhRx8RaS42bXRifsuetPdLcn7BHfI2LdjUVpqI+XaIXhbsoTj7 wmHeJ8pDTPRoMz+mqIvOcXMgEUNWR6nXqx5Q7fUFf60zoSzwIoyG8y1zNRHoDqBYuxI/ RDn8its7Vcbz9yVliUxg3q75o9Q3zAhDmpUaWofI8R/jDbBHBK8XI8fh9RAF/ddFw/OR /RfeRSyy1CzUy30rs03JnDOh07TH2Murw7dOjOmCqWL+xzaIehMOrusp+1ikJvkFtRWa 8xjvY67lHBtMjuPAfajclYXXiUQGAQxkaX1QBlgh42fgj0PeOzpPmqlOf2S/6oJjyxZ1 qrvA== X-Gm-Message-State: AOJu0YxLzU170lfAfn7rO7yw2iq8wxjIi3KntjcTxebbNL7afXHL85uU Jr2v9pe5vK396KnFOr335Oyeyg== X-Received: by 2002:a05:6808:b0c:b0:3a9:c25d:176a with SMTP id s12-20020a0568080b0c00b003a9c25d176amr12387561oij.36.1695095635453; Mon, 18 Sep 2023 20:53:55 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id 3-20020a17090a034300b00273fc850342sm4000802pjf.20.2023.09.18.20.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 20:53:54 -0700 (PDT) From: Anup Patel To: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Shuah Khan Cc: Andrew Jones , 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, Anup Patel Subject: [PATCH 0/7] KVM RISC-V Conditional Operations Date: Tue, 19 Sep 2023 09:23:36 +0530 Message-Id: <20230919035343.1399389-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 20:54:07 -0700 (PDT) This series extends KVM RISC-V to allow Guest/VM discover and use conditional operations related ISA extensions (namely XVentanaCondOps and Zicond). To try these patches, use KVMTOOL from riscv_zbx_zicntr_smstateen_condops_v1 branch at: https://github.com/avpatel/kvmtool.git These patches are based upon the latest riscv_kvm_queue and can also be found in the riscv_kvm_condops_v1 branch at: https://github.com/avpatel/linux.git Anup Patel (7): RISC-V: Detect XVentanaCondOps from ISA string RISC-V: Detect Zicond from ISA string RISC-V: KVM: Allow XVentanaCondOps extension for Guest/VM RISC-V: KVM: Allow Zicond extension for Guest/VM KVM: riscv: selftests: Add senvcfg register to get-reg-list test KVM: riscv: selftests: Add smstateen registers to get-reg-list test KVM: riscv: selftests: Add condops extensions to get-reg-list test .../devicetree/bindings/riscv/extensions.yaml | 13 ++++++ arch/riscv/include/asm/hwcap.h | 2 + arch/riscv/include/uapi/asm/kvm.h | 2 + arch/riscv/kernel/cpufeature.c | 2 + arch/riscv/kvm/vcpu_onereg.c | 4 ++ .../selftests/kvm/riscv/get-reg-list.c | 41 +++++++++++++++++++ 6 files changed, 64 insertions(+) -- 2.34.1