From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2171ECC6B19 for ; Tue, 13 Oct 2026 16:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=F+/ZDEDq2v4UapW/sVoql+iVMeoDKlqbiZcgWZocZIc=; b=fGaxVIGm/mJXY5 /cJkQqH+VQuk8UZQH9jKoMTXkWn8T/icBoGJj6TdQwZEzDkhfcnrSnPWXCAjYuSoIC7Uz+YppNk56 iMy+pPOPDAPWqJHt0wKN/rU01Lu1YHU0MNhhFJ00h+NkjdmwwymdX92L0SR7Ej4y/+tpiNN0iWOal B/gsN3P4n/iE46S6K3TLERZK08tSZi0yrCzp7zUZY2DlvpgauKoyqdGDJcMcqY7VyEx25qTkMnMaS tpGmKedsy///5nDEEWCx8p0QR8iwQpntEMkA6pdlyXvfG23AXMoRz45KZSQqjU3q/L+e+BoCe7Cf7 T9kBOvn2UOXhEQmUozLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xGfpS-0000000Dc23-077I; Tue, 13 Oct 2026 16:58:18 +0000 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xGfpP-0000000Dc0R-13rg for linux-riscv@lists.infradead.org; Tue, 13 Oct 2026 16:58:17 +0000 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-8b05bf699easo23896627b3.2 for ; Tue, 13 Oct 2026 09:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1791910694; x=1792515494; darn=lists.infradead.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=laIYJl8lTaP86mKuKV52j9MpiQPLusAyIN1HdFdU1iY=; b=CGq85Tv7lsqV0kB6rowTaQb0QDg/3C58+Xf6GPQ8oqbDHDruHYiWSOP+ucCNweJouU 7nx4FJLFRhEt6VQTSMnHUyeWAPTfRZvYYeeRaY0FfW1BIurxhDyiUTTUr2WP8sjfX2Ie KoT46sjsOk4M8JfOGQFCfYkZcj4lJiu2PgjZQMRReZHgfUoukTw7aQ4YsNOLGm9mYKnH 4HucxuP5ezlONvR7TwR5BlwXrhH4dUCO7OmkrI/5vTk5WlRLuVPDOm2/Y6FHEDQ0kYb9 mn2Byf8u/mOMlpI9f5D3ar9iINW4/SpOJU85dujPtD2gBaZgvPizCsBRpPbjbePBg3GM lT5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791910694; x=1792515494; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=laIYJl8lTaP86mKuKV52j9MpiQPLusAyIN1HdFdU1iY=; b=pvesFPPlqUZsiAk8pbOqbpyRSdQhrxY+G6jtImXKfEoboqDG911fms2a9T5DZpQa7Q 2IeCrIsNxGqGHgeYBtcWULytiIWZAHEZyWAXHeAl/ES1pBXthQUngc4RYiw3n9B1/shE 3BzJQQABp6MAmQqTFbvV/cfUsYwO3RKxy4xywcVs1A8TXYKM55I0GbrNzpEtirhkrash XzxaAesyA0nLBcI5NeGTGprrzDLhEMV6o5AinXGvKy1UuH7n2L7kPOFSg4isQH3sUiDB vMB9mt+pCCuc10kLl57vys7jAH1czivSNZ1+bhzTraM3IrhOTdXXhdj6eFnjFScep6OM xqTQ== X-Forwarded-Encrypted: i=1; AKwUvBzJ2QaO2Z007HAuhJA2AKdkKlbUF/i7MWK7xkUFnzBhPU5VtGENvLzxJwEtBF18i07OcvkgttKmgsqMdw==@lists.infradead.org X-Gm-Message-State: AFq9FYKOLjEIyK4UW2qd9hX2i/ZIebDHYo9shiJ9K/mHodEM1fuu7yeV t1VxbRcHwsjzwn29nloh8R+2pmx8L7w8K4XAdc57V8T8fxmOrDC3nvzSigpyhltcUZ4= X-Gm-Gg: AYBFou3VaOHZSCkJ6Wr+YxYnwX6huGV6NcYu+KymgUWnqkhWyFPpljuXFsfh+CCerAi VeWIDPXEgLSwmy2WNht2aUZZESgwfY9pvO3z02BtS4fTBP8cbOhGuWdeud9esbKWXRp8OODx/gU hB2lYYzPxnLLlexHxjQM40nE2UBvQf7COgmTb+9/WUg5+JMPRgj2rNJjKbn3TSdmuQUrsJCjpcM TaLyODKGadOfjQOzwqwcAG5GCYj1R91RGvsHsT//4qK6kHvXS8vlm02KCiVUM2h90znrXamHTzh htYkZjB4wNMSH+imqk7M3KgoqjoyQ+WbQIALvzZfJiiTRRuqXxOsVpeC6DHFZpzl2sV7JFPC5UT OESaXwLZgL+VXB1fQ8z8WaxPOmVf7Spfd+s8woJVeqM5rreFcoehxHNbGj9vDLfO/KrFtn7S4Cf Un+FMvFuFaGttZ8E1eIFENSDthDx8blmE/HQxnnRyWlFMB55qIU2dhJp2uMxhPrD5WXEBG6nLlv t7TDE80vKqtCg2bSZ8JjUeKPQ3ifVE= X-Received: by 2002:a05:690c:a707:b0:8a8:8d90:a6c8 with SMTP id 00721157ae682-8b07ebf63demr28292507b3.6.1791910693578; Tue, 13 Oct 2026 09:58:13 -0700 (PDT) Received: from localhost ([2600:1700:220:5c80:d01e:ebe9:3ad:261f]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8b0c1d50766sm2626537b3.49.2026.10.13.09.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2026 09:58:13 -0700 (PDT) Date: Tue, 13 Oct 2026 11:58:12 -0500 From: Andy Chiu To: Samuel Holland Cc: Paul Walmsley , Anup Patel , Atish Patra , Palmer Dabbelt , linux-kernel@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 3/3] RISC-V: KVM: Decouple vector prctl state from VM ISA Message-ID: References: <20261007085126.222688-1-samuel.holland@sifive.com> <20261007085126.222688-4-samuel.holland@sifive.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261007085126.222688-4-samuel.holland@sifive.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261013_095815_291919_6DBE74A6 X-CRM114-Status: GOOD ( 17.27 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, Oct 07, 2026 at 01:51:18AM -0700, Samuel Holland wrote: > The ability to prevent userspace from executing vector instructions was > provided as a escape hatch for software that was broken by adding vector > state to the signal context. This was hooked up to KVM so a process that > could not use V in userspace also could not create a KVM VM with V in > the ISA. > > Remove this connection as it does not really help with any compatibility > concerns. A VMM that does not understand V will not include it in the > virtual machine's ISA. > > Signed-off-by: Samuel Holland Reviewed-by: Andy Chiu > --- > > arch/riscv/kvm/isa.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/arch/riscv/kvm/isa.c b/arch/riscv/kvm/isa.c > index 971f44655100a..447c778bf850e 100644 > --- a/arch/riscv/kvm/isa.c > +++ b/arch/riscv/kvm/isa.c > @@ -9,7 +9,6 @@ > #include > #include > #include > -#include > > #define KVM_ISA_EXT_ARR(ext) \ > [KVM_RISCV_ISA_EXT_##ext] = RISCV_ISA_EXT_##ext > @@ -159,8 +158,6 @@ bool kvm_riscv_isa_enable_allowed(unsigned long ext) > * Guest OS can use Svadu only when host OS enable Svadu. > */ > return arch_has_hw_pte_young(); > - case KVM_RISCV_ISA_EXT_V: > - return riscv_v_vstate_ctrl_user_allowed(); > default: > break; > } > -- > 2.52.0 > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv