Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1413959rdh; Mon, 25 Sep 2023 12:01:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3jgS/2EwCgI0AoDm4N40IF8aOkeDyEUcdUwQ4vROiTxdpZVzBbVhS6lpn4xQnlGCkl1tk X-Received: by 2002:a17:902:e74c:b0:1c5:a7b7:291c with SMTP id p12-20020a170902e74c00b001c5a7b7291cmr9860696plf.12.1695668490181; Mon, 25 Sep 2023 12:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695668490; cv=none; d=google.com; s=arc-20160816; b=PUAG6+mmTZbg96t8vEx/Wc3Q7mz2L9Nknen5/c3xrJM9xNro1zr1anxWUV2tg0+E/G G1apQUl4fDxzYvMAtjdl1jXjiPYTM65roeBjZTxytNrnEhABFnU6IMqCcOCbmB9tOZte zZWkGjAjEXcQH2CliZBbGupLBKOdI7whv5bpiILOOfIK6R7VU55miB1y7u+GP3kLS9lm dKPKLUWAtSW4UpA/Z1jlhl/9oCnlvWVsk9Xt34ccHx4U7yqeA5YLTeXtYQMouqID5NlQ wl5CY1jDtB/xKuf0cBOoWeomK7Nbxw5/YgDk178LtNe7voii/TbfJWUN+h6bsPaXsbug YTeQ== 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=eKlzTcjLE8dmyYbSp67mSfFAcCqOvfM8wch2jpInsyI=; fh=Nnw/Dw3prVIT5KLOVQO3DcS15zu3mo0yAEjXPL5Uo9Q=; b=V1tEnrAMXM81EWspQD4sZnz4F9CmkEU3iJtVxnDMQPlO09H6m/aVgTXd1D0zUyVqEG m4h53wiOYMerND21QpFATa8B9UkQJChKsxTT9Q9XJ3DRxsMAohE6GTxu4wpyfuN+0+Ju wb82r6LyA0TLEhvesgdHOEcF6NQ9q/dv+61TwAynx4+Cp7+wOfMzqoqiLqDSO9NjMRbU T+g7NZ5sfLwa3X8EXXCB7JaqXK1GAQg9SwxBbXYq6pEoDXXpHLrh1OuivhzlPifeHlmG SQltLGleBPmZIy/2j/T/V5WkOD9LRV8M835kjUheURKN0UeHNdmf13Ln47OA2qM26XpM as1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=IwlgH3Ja; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y14-20020a17090322ce00b001c4155c310csi11939587plg.94.2023.09.25.12.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 12:01:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=IwlgH3Ja; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id F39BA81E0FED; Mon, 25 Sep 2023 06:39:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231430AbjIYNjX (ORCPT + 99 others); Mon, 25 Sep 2023 09:39:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbjIYNjV (ORCPT ); Mon, 25 Sep 2023 09:39:21 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB28107 for ; Mon, 25 Sep 2023 06:39:15 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1c5bbb205e3so58370665ad.0 for ; Mon, 25 Sep 2023 06:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1695649155; x=1696253955; 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=eKlzTcjLE8dmyYbSp67mSfFAcCqOvfM8wch2jpInsyI=; b=IwlgH3JaVqRgAfe5QvA4D82+ZQ+nIPNE0MP8Q/Rirgaup/3e0cwODR80PQem3A57/u R4m5kbxmkB3js5vwIpuPPMbhVKc6ZZIYCDcz+VfYwNLnUaMYekV1e9mQ4qWuabHTB4JA Dpv6vsWCPffnq6BhhtFTf7DUy3uX6eqO9I6j8qpS7aRkfrOaZ5TNWH9AOcIobTyzCxxG PuqFXhO5tf/8X9Ncbxe4xgf2/ZPsV68W84ZgR9m6nJFibdaQKrDb6zv9G+Izm++Yl1XL t3XN4UAY6nDajWDVZNacq6XtmZg6VlX2uR7QEE0wR97+r1FwNpPLcQr6u/1GMsTwEK9S lRmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695649155; x=1696253955; 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=eKlzTcjLE8dmyYbSp67mSfFAcCqOvfM8wch2jpInsyI=; b=l4YhWrBwVRsstP3+MiGs7ps9/sqSltu2qJwOHrYc3l+14bY8MC41QUzEJ1CXDoiv2w teWD8BGJDsmQl8efGyNqGVVbYJufVo/n9WtljbrL5jv2itHdNfIZMVQ40HwwsIwrFhV9 5zqlkL/u65uIrZWBgC/PoFYqsgS8Tk8/phYeszdt4MXkKwQJdHEXBNV5gNdb7udhzAZQ qmOEF9wRvpFyBZ8LHVCZxrixNF/3cUpCRDD9qD+qQBR3xiVcADnT1EUirUGhhZeOkP+m WablvOG90YrqsTLpDzteJMbbLt5QYtPaawSIIbDbmd86x8Yjr0UIfpdKZ7SuxaRjKHev j7WQ== X-Gm-Message-State: AOJu0YyueUaO7EAwY4UR+mpXCgQ4rfVNK5cJ+KxASCYpxrPJNYfgf7QQ Fk1WeArTbpZKh/FNfS26AaA2fA== X-Received: by 2002:a17:902:c950:b0:1c5:db4e:bb2c with SMTP id i16-20020a170902c95000b001c5db4ebb2cmr9270815pla.64.1695649154596; Mon, 25 Sep 2023 06:39:14 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id p11-20020a170902eacb00b001c625d6ffccsm969433pld.129.2023.09.25.06.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 06:39:14 -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 v2 0/9] KVM RISC-V Conditional Operations Date: Mon, 25 Sep 2023 19:08:50 +0530 Message-Id: <20230925133859.1735879-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 06:39:26 -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_v2 branch at: https://github.com/avpatel/linux.git Changes since v1: - Rebased the series on riscv_kvm_queue - Split PATCH1 and PATCH2 of v1 series into two patches - Added separate test configs for XVentanaCondOps and Zicond in PATCH7 of v1 series. Anup Patel (9): dt-bindings: riscv: Add XVentanaCondOps extension entry RISC-V: Detect XVentanaCondOps from ISA string dt-bindings: riscv: Add Zicond extension entry 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 | 71 +++++++++++++++++++ 6 files changed, 94 insertions(+) -- 2.34.1