From patchwork Tue Nov 28 14:56:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1869353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=b7jNDE8+; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=LdvFES0m; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SflsS4TLgz1yRW for ; Wed, 29 Nov 2023 01:56:44 +1100 (AEDT) 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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=RKep1s7Gf04xee+zANNfQTPJ2MZDz86B/DUzaCEtnQ0=; b=b7jNDE8+m9NnoN t/GYOKgXgL/xo2T7KhZ61jNhzYMEGV/J9iGs1vRktndp1eJL7V5ZW0l9H58CCtttWTL6mnfrJsziw quxyT47urhE3iITXnscuOoBPkjwjKKTg0vnZO18dR317i/+SkKjhQS7HIPjnrwonKwXyojN/7GjwW bEOZ9QV3sI0Jf9NYvCIgTG3Uiodq+OExTn1C/QCLCewx+XI+/mWDxh+ww5r1hZa1R4AubIZYny25W byfK0HZB7DOS2bJG0Z2MqzZiUu5vZfSUGkmWe4l4KNV0zIbGddJF4ppzC1Ob5xv7pTga41UIY1xEv xmqVNTXQTUijHoBu5R5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7zVx-005azy-2K; Tue, 28 Nov 2023 14:56:41 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7zVu-005ayQ-20 for kvm-riscv@lists.infradead.org; Tue, 28 Nov 2023 14:56:40 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1cfb2176150so26416585ad.3 for ; Tue, 28 Nov 2023 06:56:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1701183397; x=1701788197; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qApon/WYFGnryV9MyIIHISCC8QpWn0HWfbXOQ5ylTxU=; b=LdvFES0mUQxL89qEZEn509n3NmMJobVCLokqy8hJwz1tEdLhf0Keyz9mRHWFrC14gI kkrSem+v3eYMyzkCYICa1Q35iH/rftJKLXIzvBfj0ncOkEzX250QDPUnKWoXcnra2dTq Ofswrg9uVSU8oTEXfPUQS144AFgNhLluSfKl1hFSiD6KG+9Jm31fhTg2e+FtJaaPd9AN x/lMP4PiClqQKasbw6nbMt/jmes4qxCQU7BX8ywF79Z/FbchKxCj6oNYahCuypb3Al7k W+CV+ZYUx9SEDILaNuyNwkDERapvhIWjO/+g0CsBjIugdcIE5b10zorjsGOpmELEc0SN wLrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701183397; x=1701788197; 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=qApon/WYFGnryV9MyIIHISCC8QpWn0HWfbXOQ5ylTxU=; b=GU9TQeZZRpQmUjIa9fQr4vIkKh79Ct7XWYOTGCIhZaCv/F11FAlqQqEYT7d0qZCUO/ FJgk0rvTa9l3KvsYrkFYoOl5xYnGFZCj9b8keU1mFeo6mOUnHrjySkDH6RDYMlZ3sQvT xTmIwOswlfVn9PZH247MPUFbH8mL4pqpLSRdj77Vo3rkjO+Ze5krPDSgRdn+qizklgGI g2rlxdeEAIKq9XOhUvXeRd2k+Q87z/o/F8uFBjIdgzRpZe0iET3nKCQFaGMcZJ1Ruf6+ U7ULh1AkhkrErWIR8TuJ8PyMtYF25UV3h9wg76fQZ80seJ5fNGxFYPSMdHFwxTHDGSh+ qIDA== X-Gm-Message-State: AOJu0Yz3crqkroKG5TmjfzMjl5W7mM1/xLBMVRh0N61ljU4FKJXrW6NM UynySLNg7vqka6Kkbjg44OYkqg== X-Google-Smtp-Source: AGHT+IFeX/wWXXnRpNou05oVLFzgPUXOys5/zlIGODZT76xLUuo+UO9+hGXi1iq+++RQaHPlbdu/9A== X-Received: by 2002:a17:902:d301:b0:1cf:f3c7:e078 with SMTP id b1-20020a170902d30100b001cff3c7e078mr2876633plc.64.1701183397109; Tue, 28 Nov 2023 06:56:37 -0800 (PST) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id j1-20020a170902c08100b001ab39cd875csm9023580pld.133.2023.11.28.06.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 06:56:36 -0800 (PST) From: Anup Patel To: Will Deacon , julien.thierry.kdev@gmail.com, maz@kernel.org Cc: Paolo Bonzini , Atish Patra , Andrew Jones , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, Anup Patel Subject: [kvmtool PATCH 00/10] SBI debug console and few ISA extensions Date: Tue, 28 Nov 2023 20:26:18 +0530 Message-Id: <20231128145628.413414-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231128_065638_657609_6CBE2476 X-CRM114-Status: UNSURE ( 6.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This series adds support for: 1) ISA extensions: Zba, Zbs, Zicntr, Zihpm, Zicsr, Zifencei, Zicond, and Smstateen 2) SBI debug console (DBCN) extension These patches can also be found in the riscv_zbx_zicntr_smstateen_condops_v1 branch at: https://github.com/avpatel/kvmtool.git Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This series adds support for: 1) ISA extensions: Zba, Zbs, Zicntr, Zihpm, Zicsr, Zifencei, Zicond, and Smstateen 2) SBI debug console (DBCN) extension These patches can also be found in the riscv_zbx_zicntr_smstateen_condops_v1 branch at: https://github.com/avpatel/kvmtool.git Anup Patel (10): Sync-up header with Linux-6.7-rc3 for KVM RISC-V riscv: Improve warning in generate_cpu_nodes() riscv: Make CPU_ISA_MAX_LEN depend upon isa_info_arr array size riscv: Add Zba and Zbs extension support riscv: Add Zicntr and Zihpm extension support riscv: Add Zicsr and Zifencei extension support riscv: Add Smstateen extension support riscv: Add Zicond extension support riscv: Set mmu-type DT property based on satp_mode ONE_REG interface riscv: Handle SBI DBCN calls from Guest/VM arm/aarch64/include/asm/kvm.h | 32 ++++++++++++++++ include/linux/kvm.h | 11 ++++++ include/linux/virtio_config.h | 5 +++ include/linux/virtio_pci.h | 11 ++++++ riscv/fdt.c | 57 ++++++++++++++++++++++++----- riscv/include/asm/kvm.h | 12 ++++++ riscv/include/kvm/kvm-config-arch.h | 29 ++++++++++++++- riscv/include/kvm/sbi.h | 14 ++++++- riscv/kvm-cpu.c | 57 +++++++++++++++++++++++++++++ 9 files changed, 216 insertions(+), 12 deletions(-)