From patchwork Sat Aug 31 11:27:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1979296 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=0U8+VFY2; 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=DXHcqBFD; 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 4Wwt7T2TBCz1yXY for ; Sat, 31 Aug 2024 21:28:37 +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: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=I09UPG0rF801w0mZg65fKHZZQuFFxxKS0GN9ctqTDgk=; b=0U8+VFY2Ij5J0S HfIJUdeiSwkhB38YTfDJtgnYUrn/Py66L2v9wChi/inzgtU4dQ31HApGjmc1Mp/pNED0o++dvwJ2v 58CoG9ZrbaDK4O4ts7fAQESG/GMS8FQ6sadi3cK617ooEQx08BacbtLNLKQxwouk5eM/I7Av+54PM FVm8zuBeCCLnSNNwgE0hGIyKPoejNkJ+yt4UamHNZ93vSqXd7Av5q1Vucq+CEUu8n0/xudaUDiKDV OK2jbozw5oziuFa0k5BHiN3U3NnZeTZHAHexLttCF3W8v/pE0hK4jOzv/SdgrZ5NGUOtUb6s0QTiD 6Bh3/3zeBSker161vI8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skMHU-00000009Ecx-0ZY3; Sat, 31 Aug 2024 11:28:36 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skMHR-00000009EbP-1let for kvm-riscv@lists.infradead.org; Sat, 31 Aug 2024 11:28:34 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-2020b730049so23621095ad.3 for ; Sat, 31 Aug 2024 04:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1725103712; x=1725708512; darn=lists.infradead.org; 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=G9W/PvPhY4YAzclM2JSelJpHbbRGL1br7E3OrpY+DrE=; b=DXHcqBFDX7dZndIJaU6GvdblWYmXf6YAFEn3chrGzFo8oSdqi5Mc6LFZScIPvOM+7u +99DnShMfHcmP4skHn4Se6jW2Tby+N8uBM8P6RGop31ILUQndsg+WT5IGxXrPwAGskq1 aKd1zJXou+eddi9XDXpF+sT7J9QNIt12ny3C7QdESgeFkH2w1JOjL16jTKhSsToIrtT3 3gwbcAp+AzLnaxgbshkX+iagrti9wO1//eqEBL6Lbp/SIMbCB6BQ1WnGuTqyFa4JCjgo 2rhY++jGC2glhUR8X9kAmQevJa3t6O3t2R8rJvGJiU+yWuU/XQCefMXRF0b0V3d4bb4z P1Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725103712; x=1725708512; 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=G9W/PvPhY4YAzclM2JSelJpHbbRGL1br7E3OrpY+DrE=; b=qMFLT+I18DbMI4/fwSWfr+/pS0wGFdx4pjMjdyZHyTRJBpaxVT6YrabmC4DxNh1/LO dgKfaVm3BHomyKfLYmLTDgLspW5zV/3uAcrdZWj1GRAwVk7WPtpOvUY9TFL9EiQZ0J3Q 33JFeZcnEMFO4f6N4KWDATh0ASocnY7MoHlKqyjTmKHxS9qtb3E7zfDIiyRO9trikg8U H0X+52HwKUXRQ+Y0oyvbYBS4PUwFN43qu9AzbT0i0NmWwrECm2vyidKegOYN26mWI3Ux GTwTlBW2KppBkhmleMEo+axc64TnR89G7fzKl6ZrP6u2srJn6+yyJz6oz3/80GQBqkog rjbQ== X-Forwarded-Encrypted: i=1; AJvYcCUCn2Xjpn4RdimEj6mdjCvgK3ns0YQ5E3+YR8wQfRzLJkXgHKR2gd4jHc07A7XWYtx71i5SmkTrbOo=@lists.infradead.org X-Gm-Message-State: AOJu0YzhpEgm4m+yOvwaL/PAJpRtklqk8PA6D9Pro6pW8qIwJ1fRCZNp XufnOEJlfk0Tf9tmz48fZWRU/V09m82of18tJTuglqWwbuvywTHwgM0nbbk0fQE= X-Google-Smtp-Source: AGHT+IFrEDhaUx0SUuyIxblepXLqKc+yV2RqLyxEoF9AakA78LY3iMIC9EnV+9+yK3tprr3uVNI74g== X-Received: by 2002:a17:903:1109:b0:203:a0c5:fcfd with SMTP id d9443c01a7336-2050c215d63mr88151465ad.3.1725103712253; Sat, 31 Aug 2024 04:28:32 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20542d5d1b2sm11934415ad.36.2024.08.31.04.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Aug 2024 04:28:31 -0700 (PDT) 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 8/8] riscv: Add Zimop extension support Date: Sat, 31 Aug 2024 16:57:43 +0530 Message-ID: <20240831112743.379709-9-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240831112743.379709-1-apatel@ventanamicro.com> References: <20240831112743.379709-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240831_042833_479743_FB73265F X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) 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: When the Zimop extension is available expose it to the guest via device tree so that guest can use it. Signed-off-by: Anup Patel Anup Patel --- riscv/fdt.c | 1 + riscv/include/kvm/kvm-config-arch.h | 3 +++ 2 files changed, 4 insertions(+) Content analysis details: (-2.1 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:634 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 Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 T_SCC_BODY_TEXT_LINE No description available. 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 When the Zimop extension is available expose it to the guest via device tree so that guest can use it. Signed-off-by: Anup Patel Anup Patel --- riscv/fdt.c | 1 + riscv/include/kvm/kvm-config-arch.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/riscv/fdt.c b/riscv/fdt.c index 768ee1f..8189601 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -49,6 +49,7 @@ struct isa_ext_info isa_info_arr[] = { {"zihintntl", KVM_RISCV_ISA_EXT_ZIHINTNTL}, {"zihintpause", KVM_RISCV_ISA_EXT_ZIHINTPAUSE}, {"zihpm", KVM_RISCV_ISA_EXT_ZIHPM}, + {"zimop", KVM_RISCV_ISA_EXT_ZIMOP}, {"zknd", KVM_RISCV_ISA_EXT_ZKND}, {"zkne", KVM_RISCV_ISA_EXT_ZKNE}, {"zknh", KVM_RISCV_ISA_EXT_ZKNH}, diff --git a/riscv/include/kvm/kvm-config-arch.h b/riscv/include/kvm/kvm-config-arch.h index 5d655cf..7a9ca60 100644 --- a/riscv/include/kvm/kvm-config-arch.h +++ b/riscv/include/kvm/kvm-config-arch.h @@ -124,6 +124,9 @@ struct kvm_config_arch { OPT_BOOLEAN('\0', "disable-zihpm", \ &(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_ZIHPM], \ "Disable Zihpm Extension"), \ + OPT_BOOLEAN('\0', "disable-zimop", \ + &(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_ZIMOP], \ + "Disable Zimop Extension"), \ OPT_BOOLEAN('\0', "disable-zknd", \ &(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_ZKND], \ "Disable Zknd Extension"), \