Message ID | 20240910150842.156949-1-jamestiotio@gmail.com |
---|---|
Headers | show
Return-Path: <kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=uT1nMWO/; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=YuM7YdLh; 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 4X36Ym5PdRz1y1s for <incoming@patchwork.ozlabs.org>; Wed, 11 Sep 2024 01:09:32 +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=5jfcMGFf4u0kVwO/7ttzQ8RDGJMb+vjANf+kSiGMzRw=; b=uT1nMWO/voxSgP wm5A1FljuNioTy6p21cVYeHF3Y8tEdlUuRgFryiwIUdwXBFX4uFQfO5WrgnZcpLBMsc5rQzd2Go9K 8Hxe/DpfB3/RsJmYtJiub6SeofTcXhvg8uYL9eZMr0w4XLlZ6BBzFidhgvfzgAUX4/hD7VO411zwy mcjIk6ZvGXRSUvTgVBaEHJehk4OMyJm+ITCHe6eaOBzWiG8YgYrrjgLuGuds69wAgxo96zXBFo/TL mZErFyWaoPvyxRygMuZZUAFqsLZsabK+Qwx6/3Bby8H974wDlNtjHJBPWyWGz5oQ9NJgfyar7VNCF pSXyO8WbiB4HADAmL6Pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1so2Uk-0000000608d-3NJO; Tue, 10 Sep 2024 15:09:30 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1so2UD-0000000602d-3ngH for kvm-riscv@lists.infradead.org; Tue, 10 Sep 2024 15:08:59 +0000 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-6c5bcb8e8edso4396173a12.2 for <kvm-riscv@lists.infradead.org>; Tue, 10 Sep 2024 08:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725980936; x=1726585736; 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=dKkukmFzFJFkn3rVsStvRJ2uYdXcPgH+kgvBIoj+O80=; b=YuM7YdLhAV9KfXFQGRy3E2J1f5vVqbMsyBZVRQ72p3raeHoYZUNXmYoC922OehJllU PrWkuUU7TNeauG05VpRwv5BgTVR5Z2TEN9uRX9s7f48haUnhnbWQAwrNPOJPWtr854ok V1L0reAGEMsXK34MqtJll8CM8P6GiHZpVhkwVdm9RUJLM2Ve0kby5oZb6qr9e5mNiIPK /typdtALP6zl2nRvrwOgMpSeKkpBhii+XNNYZ5SO+KtyBnz5QQOcsVp9icigm8mOosDN fsn7iNprfOhKyfOiT9Uds3h+j590zoH1+Zekjh6yCgfZr3An2JlxMqO/ZSpjsqUZVVYy GQtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725980936; x=1726585736; 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=dKkukmFzFJFkn3rVsStvRJ2uYdXcPgH+kgvBIoj+O80=; b=mEKIEpWNPp4wr5XB1368uAD5deH3azvZ/hNkt5VRpCXjI3ZgAdnp4HLwbcJpOpVGKj ixehmNJyTujh3Rt3i7edYVZ+NPDSMOGOd42FB8pB5NvVfucZeza/lnGIHfMqbmKL3XfP oANRlQbX7X2xhbT0r9W8NEkyQVwlUmY4924EIjv/VgvqCIjyjFzRzARaSTrmtxhVDOTc miENGO0dhcp1GcBQnVUax1IepfnVbxDy2M5QsguAwPkfrtBOqYON+co3meuHJHGt8Spq OLgcJYskK3IXFpkk1qeRm9rhg96WmAdpIFFPN/bHv007/O1eFiNrwVx1QZxIrVC3gK7X l0+w== X-Forwarded-Encrypted: i=1; AJvYcCUWVWetCpLnfbZoMK76VXw9nDXE0Zuw0/9d55pIE+bo78UGBmuqny8EpiKsSqAtRZrF5zPCPe1hUcg=@lists.infradead.org X-Gm-Message-State: AOJu0YwhRDC/TLlp62aKCnmTZOFIYU8DuBx/UjwfLx2R/rmLcDqSh/p/ j5+DZ9RLsvaCq/EvVkjpQxIqMBNTwh5LVp1gnsMD4bOLXlhl2nZj X-Google-Smtp-Source: AGHT+IEGZcXTcz2h4CbaEl/cleH4vN1BKO6qlw1FxnHuERF2zHUnX9hQ464X7raS4vTAERDNjZDpkQ== X-Received: by 2002:a17:90b:1084:b0:2cf:cc0d:96cc with SMTP id 98e67ed59e1d1-2dad4ef0be1mr15259932a91.9.1725980935761; Tue, 10 Sep 2024 08:08:55 -0700 (PDT) Received: from JRT-PC.. ([202.166.44.78]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2db041a02c7sm6615120a91.19.2024.09.10.08.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 08:08:55 -0700 (PDT) From: James Raphael Tiovalen <jamestiotio@gmail.com> To: kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Cc: andrew.jones@linux.dev, atishp@rivosinc.com, cade.richard@berkeley.edu, James Raphael Tiovalen <jamestiotio@gmail.com> Subject: [kvm-unit-tests PATCH 0/2] riscv: sbi: Clean up multiple report prefix popping Date: Tue, 10 Sep 2024 23:08:40 +0800 Message-ID: <20240910150842.156949-1-jamestiotio@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240910_080857_964154_7BD74688 X-CRM114-Status: UNSURE ( 6.65 ) 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: The first patch of this series adds a helper method to clear multiple prefixes at once. The second patch then uses this new helper method to tidy up the report prefix pops in the RISC-V SBI tests. James Raphael Tiovalen (2): lib/report: Add helper method to clear multiple prefixes riscv: sbi: Tidy up report prefix pops 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:535 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -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 -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 -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [jamestiotio(at)gmail.com] X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <kvm-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/kvm-riscv/> List-Post: <mailto:kvm-riscv@lists.infradead.org> List-Help: <mailto:kvm-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" <kvm-riscv-bounces@lists.infradead.org> Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
riscv: sbi: Clean up multiple report prefix popping
|
expand
|
On Tue, Sep 10, 2024 at 11:08:40PM GMT, James Raphael Tiovalen wrote: > The first patch of this series adds a helper method to clear multiple > prefixes at once. The second patch then uses this new helper method to > tidy up the report prefix pops in the RISC-V SBI tests. > > James Raphael Tiovalen (2): > lib/report: Add helper method to clear multiple prefixes > riscv: sbi: Tidy up report prefix pops > > lib/libcflat.h | 1 + > lib/report.c | 21 +++++++++++++++------ > riscv/sbi.c | 17 +++++------------ > 3 files changed, 21 insertions(+), 18 deletions(-) > > -- > 2.43.0 > Looks good to me. There are no longer any double pops in riscv. Out of curiosity, I checked the other architectures. arm and ppc both had one instance of double pop, x86 didn't have any, but s390x had several. We can leave the adoption of popn to the respective maintainer's preferences though. Applied to riscv/sbi, https://gitlab.com/jones-drew/kvm-unit-tests/-/commits/riscv/sbi Thanks, drew