From patchwork Mon Aug 15 10:13:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1666397 Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=CJpHhtAE; 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=Bj7GtZHx; dkim-atps=neutral Received: from legolas.ozlabs.org (legolas.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee2:8c49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4M5qxm6lXMz9s07 for ; Mon, 15 Aug 2022 20:18:52 +1000 (AEST) Received: by legolas.ozlabs.org (Postfix) id 4M5qxm2BsNz1ygN; Mon, 15 Aug 2022 20:18:52 +1000 (AEST) Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=) 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=CJpHhtAE; 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=Bj7GtZHx; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M5qxl68Qtz1yfq for ; Mon, 15 Aug 2022 20:18:51 +1000 (AEST) 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=LQdwXhlZAc/MNPSjT7jMTtmTkil7ybCoCjXNHflF8IY=; b=CJpHhtAE852Jof +W5DW8aFhL8Utzj2WNK7VhC21qPh7nug5tpKyQ4w3lEqB+CZFMUdyMP0B/NcLfiuQQq1rxcfg3BOk ZxgzY4yTShstchNAaTB94GL+rJJdJxm3RWgQP6mGP0jBJ2ebGLMomyxtWPlwP5sLyX8aWplASWnlr 9krUcdk2M+7oUWyk4Lnxy25gQmbX/A1qEEllmPZyt79//bWGX3+yzb0ZwtTYIdAY1VBXiYMwPVCk0 y6POVIVvomJgLpG0mZNHlg4ZPVNdAVBrsDNf36C2uyWg9WUAD6GpNVBDhDTP4sJ+/HCAnsKW2UIa8 hv/9tNSL8NvpwbKKK9iA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNXBH-00Ed7U-Cf; Mon, 15 Aug 2022 10:18:47 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNX6H-00EXyF-Id for kvm-riscv@lists.infradead.org; Mon, 15 Aug 2022 10:13:39 +0000 Received: by mail-pj1-x102b.google.com with SMTP id a8so6554318pjg.5 for ; Mon, 15 Aug 2022 03:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=jTYWp0STDqccCVecom1xyjouuUhupg0vLX0fgOim7yE=; b=Bj7GtZHx2IIFaiZESQaX+v8pGK3uPxre7HXpCjMzDshaH/4ZR+EVrhCJPM7waiIJKY n6/wiWdN3cKz8Icm03TGDcAuIofZ0Q6wq15aazoa4Z62a2nZdhOXB9NoKCOVnlX2ymV8 tXL9QbotOG+In2Ew0WS2UV7BWjT5krFmbSKzkSYWdV+rppfPxFyBsdMTejWkxIXRoNqq r0hIgIZo0h/ebSw8+yvF1PZWxT0r8XMnaSRdQuz6/3FLbvyiFcVHvEh4IZW3xrOhuEBn RwhKiMyYcSc8znsxK0GwHtxvRHuRWyHWM7fRHwxx/WCgsz3Gf4wxgjYHIQ7gy3jmWsB/ mbDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=jTYWp0STDqccCVecom1xyjouuUhupg0vLX0fgOim7yE=; b=lTIPfxS1xjzjD+ULlufVzeXphTWhJ+HiLtXx8zGuUhijXroYQb5WfMUE8zbOerZHY8 B6J+uTOnweJmgyVXKVjX33K1D1c+s1LybbRxglC+OvrJtSf4f49yl7NQAaqA1YW0QSjf NU1eWAvzAAppCmdYaTaw3+AKpWaf11ACyojv61V8CJljA0lQrnn5B0dLemIkmHXCme8F Lh9Xmx0aIzq5MC0WAhjYZ8xL8r6OZbV+OfJeV8bJnG19UelUcHBkMn/TgztUbYZC52Lm 1ra8sciZUQALrnBJ2l9J48ejJa+OJASUB0DUm/nHZr554Dz2IqF9juRmj2Km2TNYIJYC Cc8g== X-Gm-Message-State: ACgBeo36KEo3jow6SAM5IIR2iMMv1nKEbxGxgUp5m6Ho7aaHom6SikQB LM3aKxuGsdEd0+GAvQA5g5HV/vGh12E+QA== X-Google-Smtp-Source: AA6agR5tQYX3b4bE0cTfPyGbwqBXSWLbT4LiwJWFjBLzIPzUCho2Oe6FfvCJ7cyCM2MHK0MTnm7vvQ== X-Received: by 2002:a17:902:e5cf:b0:170:d0c9:2e6e with SMTP id u15-20020a170902e5cf00b00170d0c92e6emr16068158plf.64.1660558415683; Mon, 15 Aug 2022 03:13:35 -0700 (PDT) Received: from anup-ubuntu64-vm.. ([171.76.84.46]) by smtp.gmail.com with ESMTPSA id i190-20020a6254c7000000b0052d4f2e2f6asm6267437pfb.119.2022.08.15.03.13.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 03:13:34 -0700 (PDT) From: Anup Patel To: Will Deacon , julien.thierry.kdev@gmail.com, maz@kernel.org Cc: Paolo Bonzini , Atish Patra , Alistair Francis , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, Anup Patel Subject: [PATCH kvmtool 0/5] KVMTOOL RISC-V Svpbmt and Sstc Support Date: Mon, 15 Aug 2022 15:43:20 +0530 Message-Id: <20220815101325.477694-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-20220815_031337_714222_9FB1CAC7 X-CRM114-Status: UNSURE ( 8.12 ) 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: The latest Linux-6.0-rc1 has support for Svpbmt and Sstc extensions in KVM RISC-V. This series adds corresponding changes in KVMTOOL to allow Guest/VM use these new RISC-V extensions. The PATCH5 is an unrelated fix which was discovered while developing this series. 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:102b 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 The latest Linux-6.0-rc1 has support for Svpbmt and Sstc extensions in KVM RISC-V. This series adds corresponding changes in KVMTOOL to allow Guest/VM use these new RISC-V extensions. The PATCH5 is an unrelated fix which was discovered while developing this series. These patches can also be found in the riscv_svpbmt_sstc_v1 branch at: https://github.com/avpatel/kvmtool.git Anup Patel (3): Update UAPI headers based on Linux-6.0-rc1 riscv: Add Svpbmt extension support riscv: Fix serial0 alias path Atish Patra (2): riscv: Append ISA extensions to the device tree riscv: Add Sstc extension support arm/aarch64/include/asm/kvm.h | 36 ++++++ include/linux/kvm.h | 181 +++++++++++++++++++++++++++++-- include/linux/virtio_9p.h | 2 +- include/linux/virtio_config.h | 7 +- include/linux/virtio_ids.h | 14 +-- include/linux/virtio_net.h | 34 +++++- include/linux/virtio_pci.h | 2 + riscv/fdt.c | 44 +++++++- riscv/include/asm/kvm.h | 22 ++++ riscv/include/kvm/kvm-cpu-arch.h | 11 ++ riscv/kvm-cpu.c | 11 -- x86/include/asm/kvm.h | 33 +++--- 12 files changed, 352 insertions(+), 45 deletions(-)