From patchwork Tue Oct 18 14:08:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1691555 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org 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=nYX7rBXI; 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=UoN1IAs8; 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 4MsG2f0dWDz23jx for ; Wed, 19 Oct 2022 01:09:46 +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:References:In-Reply-To: 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: List-Owner; bh=C3QTsfGiY03ngvbzI59NKriyIbtLtRm/mW6l/zFnZus=; b=nYX7rBXIi1i4Uv MthB0/Ebq/tjDwC0OnsGBbKXdX+siPj3VAQBL76uh5uzdWxDHVx8E4B9XSDLchpD1IbSJV/oqRxo6 BDXEDhzbHya/0SajzQpJJLnKO4SJeh4gmzXrPPPnBuazoAUYFZ/V3ULPjDxx767LnntEIlfx+vflP b2O2TQz4P3WNbXVh8bm/DzcvcW/2AZzXyyNYYVA9XeJ8HoPcNUP+R/f0Dn0IPml9U3OQ2RLoB29P9 tPjOmxRbGifT0q8AtmSIMlEcipgGK1BSOzl/uqQ759/9HnRBb6mxmiJltRmbCykDy+fGL/d8shvbL wzJPmPFBGiPoFi+FUFCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oknHq-007Fj8-5v; Tue, 18 Oct 2022 14:09:42 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oknHn-007Fg4-6H for kvm-riscv@lists.infradead.org; Tue, 18 Oct 2022 14:09:40 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 78so13388514pgb.13 for ; Tue, 18 Oct 2022 07:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fQSIDFFVuF+EIt2cEUFNJqH3Rmj/qJAjRYREvcssnEc=; b=UoN1IAs8s/3Fu4+iotE3z0nvVddkbZfV9io2+cQEJ2uRjvmOc42FChGgaW7/2ZArc4 JykfKy8B2cQUacgccfC95J4iDc23qv7j+3R3fqAeat29lA+5vOfGACIAbI115WSFyEH0 Q9m/+w6FZpsdtvfrTdlLpteF9SAMBXzuI49N1uLhuD3QCuMFMoSYWaCQSW/BkSsniE+B zsjUaTtRhVvF1WC7ll/gWzlrAAh5pCdQJeMAefLl3GELEy3oPzu2mO1J9d5ZLfTpITPe DG6yQELJ2F/Z3h2OJJLxVJ6QV95wW7wvlMvX6c4y2JD1Twyb0B+bwmAfWcxaRnYPmMOC payQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fQSIDFFVuF+EIt2cEUFNJqH3Rmj/qJAjRYREvcssnEc=; b=7NdNkVW3Wu4rwA8N5+pk67chaErm5yBlhHnz91wCQRZe/F9Mcggja1DDzAMfMYmjes jRrr03exDWwDE1IGWNhlbJOSn3mCoknumE8LbbQOczrpZ0JBXfZ68HCGd9ep7UcRJ0wL J9E+inCIjXXSWqoRxAz8QvmoCgFLUAI7AJQv984xAYJ43FR1zreOWD1Dktyy2ocCdbhb JN+Wlbvq6U/07hdySoTVdsIG4KQhgAN5G+YR0/0J1AZ+JN3HFMqYx/hqYOURhsZQa2j9 xpHiMdfv2njtBQQkLPkCzoORC3FBtI5yNBF1KkJCFjhwMmd7vcdGM6KZ23rdRULQVxPj gmRA== X-Gm-Message-State: ACrzQf012mn7ZOkTZ444TJM/klCaa0BkAYAcbWysa019kMrCdttIDFxd Al1SthBU9jcqdmq8DLAA+9jrwA== X-Google-Smtp-Source: AMsMyM4QqTc9RDg38FTb9jRNWuxsRXJuswFnY9rJKOUgJhDITlN1G5Ec8NTaf6OwumSzrdOyJpl96Q== X-Received: by 2002:a63:145d:0:b0:44b:f115:f90f with SMTP id 29-20020a63145d000000b0044bf115f90fmr2822412pgu.157.1666102176161; Tue, 18 Oct 2022 07:09:36 -0700 (PDT) Received: from anup-ubuntu64-vm.. ([171.76.86.161]) by smtp.gmail.com with ESMTPSA id z15-20020a17090a170f00b002009db534d1sm8119913pjd.24.2022.10.18.07.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 07:09:35 -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 2/6] riscv: Add Svinval extension support Date: Tue, 18 Oct 2022 19:38:50 +0530 Message-Id: <20221018140854.69846-3-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221018140854.69846-1-apatel@ventanamicro.com> References: <20221018140854.69846-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221018_070939_245843_4366887C X-CRM114-Status: UNSURE ( 9.69 ) 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: Svinval extension allows the guest OS to perform range based TLB maintenance efficiently. Add the Svinval extensiont to the device tree if it is supported by the host. Signed-off-by: Anup Patel --- riscv/fdt.c | 1 + 1 file changed, 1 insertion(+) 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:52d 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 Svinval extension allows the guest OS to perform range based TLB maintenance efficiently. Add the Svinval extensiont to the device tree if it is supported by the host. Signed-off-by: Anup Patel --- riscv/fdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv/fdt.c b/riscv/fdt.c index e3d7717..42bc062 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -19,6 +19,7 @@ struct isa_ext_info { struct isa_ext_info isa_info_arr[] = { {"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT}, {"sstc", KVM_RISCV_ISA_EXT_SSTC}, + {"svinval", KVM_RISCV_ISA_EXT_SVINVAL}, }; static void dump_fdt(const char *dtb_file, void *fdt)