From patchwork Mon Mar 25 15:31:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1915712 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=WbL1rasO; 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=WWBd+ub6; 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 4V3H4P0d1vz1yXy for ; Tue, 26 Mar 2024 02:32:37 +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=ZWtTIXGmvEEZDOXDHpwL1G6P5YafSBAW7xxcwc/ESRc=; b=WbL1rasOCujcnb OO6V2V0iwn3K1kzTPx/b1/SO+CyKhaEYCBtXgrsW57rNF1ERgUDpPLMQpoh4li5kN141pzcs7WDW9 PLhpyB4e86qbVOWuaYQLqPlE36Aij0WsXWyUwAJD+gUZHBvbgvnDSQpaN3TUBLtEP6S4ZfSIkxi1S 7WORVLCFSLcNtLklFZiKRwMoLV1uC9UJe98IcvroHxhrZ3CuwFg458D0LaNebhXB/s2Rl0LbVklrv JHz35G+RPEpTcOSttlYoEK5TiFCxPQZozg6SIwgt0z5YVOAPE9sM4kK18/Y0hdK1T2tpwCixEQnfd 7uBak1jqbE9IXl9AUbIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1romJP-00000000W2y-3KZ2; Mon, 25 Mar 2024 15:32:35 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1romJN-00000000W18-1RNk for kvm-riscv@lists.infradead.org; Mon, 25 Mar 2024 15:32:34 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6e6082eab17so3366447b3a.1 for ; Mon, 25 Mar 2024 08:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1711380751; x=1711985551; 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=aX0lk9qzFL2Ep07Hy3NQIs6ID/gEGXEzWmEmIs3hZ2Q=; b=WWBd+ub6bTFpAQkEe6+PPoEUGLuD2GvCG3tF8YBYdY4mTz7AuLFqtQq4gEIjW1h1lJ F1pUeHuc4C47vhI+Q7rMICMRzW15vXv/xtTlTVYkcn98FtNOn780sgBi5zh5RiGoCXM2 fwjeGspEEDr7y/+ZlvFG8gw+/82pVliS+noymqeBIRYyqzk/KwfXO4ruMjVwbkmWXESO 19zhX8SRlvcCkDVy4cSiTrzx8jMTq9EKIj9iejhkvIWSMbs++Sc6travNtv8h94kZIzV wt+WeFfY08KNvYFwyOeqPusV7X+C+R2YAWjg/gbUDO/3FBXlFFD+sC0qfTdu5q0gUUp+ aChA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711380751; x=1711985551; 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=aX0lk9qzFL2Ep07Hy3NQIs6ID/gEGXEzWmEmIs3hZ2Q=; b=S8FjEY41XJEVHZSsKhoY1RqHhocuD1V81Vj7RYpv1Rh6hkCcwjFZlx+PVb8j8Isa04 2u4HhAxF7AQpiFoe0h2CA81Ib9Ymy8OORuNU8b8qGnu/jmJlkz3lLyMZRhvArNgDwvCQ pKpCnfRCmmDprNgeYR8BmNZNK8Z68JD+nV+ikC/DM0OlsIjq/+3TdT+6GDcd7mArDNlG pqjwvuC+/nzU8YDxt3reExW756Pr/1tu2ByBrX2mUntObk7pJ2CnpGtwfY0uZJ4Uaz23 k0YHFYJiJoq++U6FjgNagGo5lCk0CAJpKULqtwqm+TS51j3IqRGUfNM8JLnrLq1+B3Kk PWcg== X-Forwarded-Encrypted: i=1; AJvYcCVkJg2+6rTIuk7ubdhITusox5/coSr1dBUUsS2PcD+ZS/l4uYnryEXJ8bru6lJnSYEz/4e+t4gCV00qpJt5npCYQtRkp5NSR9WGR1k/UQ== X-Gm-Message-State: AOJu0YzZurBYbW6nfqanplxt/m3WQ6+Vs1XPP0/MnRBCf0KjdJlS8fy2 Dodh/zkgNYtEjTafNTXomWW4/pFT0kejbbl/Bsm521kxdHx8h8/f3rEYXQhrjtg= X-Google-Smtp-Source: AGHT+IGNnAkuwKt6vn7OKTa0ZSTpr/iGu7EkAF8A2AIVlxqpdmpM6K3l/lqP5wQp39/ghE0UXoK1DA== X-Received: by 2002:a05:6a20:30d6:b0:1a3:63fa:d0e6 with SMTP id 22-20020a056a2030d600b001a363fad0e6mr124456pzo.57.1711380751545; Mon, 25 Mar 2024 08:32:31 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([171.76.87.36]) by smtp.gmail.com with ESMTPSA id u11-20020a170902e80b00b001dd0d090954sm4789044plg.269.2024.03.25.08.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:32: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 v2 10/10] riscv: Allow disabling SBI STA extension for Guest Date: Mon, 25 Mar 2024 21:01:41 +0530 Message-Id: <20240325153141.6816-11-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240325153141.6816-1-apatel@ventanamicro.com> References: <20240325153141.6816-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240325_083233_674659_DE4B34B6 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 3.4 (+++) 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: We add "--disable-sbi-sta" options to allow users disable SBI steal-time extension for the Guest. Signed-off-by: Anup Patel Reviewed-by: Andrew Jones --- riscv/include/kvm/kvm-config-arch.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Content analysis details: (3.4 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:42e listed in] [list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [171.76.87.36 listed in zen.spamhaus.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_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's 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 We add "--disable-sbi-sta" options to allow users disable SBI steal-time extension for the Guest. Signed-off-by: Anup Patel Reviewed-by: Andrew Jones --- riscv/include/kvm/kvm-config-arch.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/riscv/include/kvm/kvm-config-arch.h b/riscv/include/kvm/kvm-config-arch.h index 6415d3d..e562d71 100644 --- a/riscv/include/kvm/kvm-config-arch.h +++ b/riscv/include/kvm/kvm-config-arch.h @@ -186,6 +186,9 @@ struct kvm_config_arch { "Disable SBI Vendor Extensions"), \ OPT_BOOLEAN('\0', "disable-sbi-dbcn", \ &(cfg)->sbi_ext_disabled[KVM_RISCV_SBI_EXT_DBCN], \ - "Disable SBI DBCN Extension"), + "Disable SBI DBCN Extension"), \ + OPT_BOOLEAN('\0', "disable-sbi-sta", \ + &(cfg)->sbi_ext_disabled[KVM_RISCV_SBI_EXT_STA], \ + "Disable SBI STA Extension"), #endif /* KVM__KVM_CONFIG_ARCH_H */