From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1EA3C5DF97 for ; Wed, 26 Aug 2026 23:05:52 +0000 (UTC) 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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID :References:Mime-Version:In-Reply-To:Date:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2aESZL4iLsaqZwsF7zh6YgRz5VXF/VDI2GutWDvdKKw=; b=xyg3sDPvlnfjZ1 1ow6S0iAVE77JfEfq3Qa/Q+p8f3zQcZoCprbrE3mSyBpXTa9IHUpkUYoh+Fn47sVjMmpCUQXmFEMh zNtvsEJeBI+FMYHcGCL8Xxh2oQMIZSnwH+BtTgnK203xRriIbbslPc6w+kK2+VDgVpEK8tGCxv9xX LdPfNkhXOmjycikNAA8YKyFeSpEsA9jryewO0jw1QMEH0uwk5PBJq2kbeHyfgzbjVcW7T80ywPhMm 7HxLCSEEUkRdMtdGLizfuiDWuq40iAw4gp8CAXH4JhIHkctj3BxRzB8ONrkVKgfcdIgflwmHR1Ndf Qu/xk5kLKJk7BInWfUaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wzMgq-000000036nE-0yRG; Wed, 26 Aug 2026 23:05:52 +0000 Received: from mail-pl1-x646.google.com ([2607:f8b0:4864:20::646]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wzMgR-000000036D5-01VX for kvm-riscv@lists.infradead.org; Wed, 26 Aug 2026 23:05:29 +0000 Received: by mail-pl1-x646.google.com with SMTP id d9443c01a7336-2d7151120d6so1673505ad.3 for ; Wed, 26 Aug 2026 16:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787785526; x=1788390326; darn=lists.infradead.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:reply-to:from:to:cc:subject:date:message-id :reply-to:content-type; bh=nkGDVNWv+E37i1qgZxGANcWGk8EcR4uX9VZBG0WIwSA=; b=LEXa28338ZYb8xUZiUlUTKQnVz2oymalPRW1AxNlcvZTLDZEd0cLbGCJQiltH887Mz KINMhUpV6xKmzu79XDfk4q/QFfAeY04H5DFTG4bvpR1CKvI6otxoHI+qA02biotU7jiE zpKflUHJJRZFz110fTVZITWS97qWrFBUPKdachZZ+wmoOjq+GpzYZ+AsvLQ54qiAzlZ0 pGHAn92+CAo0lrrxgoB+uI4bj5EuZBv1U4fn0gmUNoZ4MLu/rCJZCe+YbBpcg/5jaTyj +QtZULKCiBZSxjWnvQ2CC5JHW4nlt08t670G4G9qCLvoMc9Fr9NA5XcbycHva5DL1zFn Ex5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787785526; x=1788390326; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:reply-to:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=nkGDVNWv+E37i1qgZxGANcWGk8EcR4uX9VZBG0WIwSA=; b=a+FGBTS9JNp2u1Cb56+oB/2vWxk2ih/PQ2SAfqJCydWcauvrFpArLCualbY692P4Xl 0JMLUF0nqi8svb8NFvXqXH3r0AjyvJKIIOVCKJdfFpoOF1maCyNpEjCiZSi+Lt2WH/4b tuQ9p2amgfYvGPXEFw7Hmc13T0eBfLq6a2FhcAsBKixR8WeBJX3ghdbCelhyk0+raOWh vNXlQie1QEQMPtrSKbShJmcPJlo7/2FpbdIeP1n2i4XqaD5rGl/rovPhSOFKTDAmF/x5 k7zB+WGE0PGAmsZzn5uZ8E6zO5wLugQc29X+/ZWKpi/gFIq4IefXT3nxaN4AH13ajLXA Vb3w== X-Forwarded-Encrypted: i=1; AHgh+Rok6xd/DRNI33B1JFBluwXhtYKSyHcEQhz5yuww4W/++11tIdKNjLVqAMcIe1FXyFBkl3xDOIaLpQU=@lists.infradead.org X-Gm-Message-State: AFuF++m5H4AHKkec2safjm2q+5BvNcX5FDC5tEUh71HlEWyiwHYvgN+3 Ys8ShMm6nHXZGg4l+7PZMD2zN3ZbQ5l8/qNuqjAAUCw/GkFICcOlNC8lV1z5qxXZq2Xk86qT1SH +uGTIJQ== X-Received: from plblc14.prod.google.com ([2002:a17:902:fa8e:b0:2d5:62cd:db79]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:19ed:b0:2d7:107c:917b with SMTP id d9443c01a7336-2d7107c934fmr164734915ad.0.1787785525359; Wed, 26 Aug 2026 16:05:25 -0700 (PDT) Date: Wed, 26 Aug 2026 16:04:59 -0700 In-Reply-To: <20260826230511.972824-1-seanjc@google.com> Mime-Version: 1.0 References: <20260826230511.972824-1-seanjc@google.com> X-Mailer: git-send-email 2.55.0.887.g758fc8c411-goog Message-ID: <20260826230511.972824-9-seanjc@google.com> Subject: [PATCH 08/20] KVM: selftests: Use the innermost page allocator API in the memslot perf test From: Sean Christopherson To: Marc Zyngier , Oliver Upton , Sean Christopherson , Paolo Bonzini , Tianrui Zhao , Bibo Mao , Huacai Chen , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Atish Patra , Alexandre Ghiti , David Hildenbrand , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, loongarch@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Nicholas Piggin , Ritesh Harjani X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260826_160528_132342_3C04CDFF X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. 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: , Reply-To: Sean Christopherson Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+kvm-riscv=archiver.kernel.org@lists.infradead.org Use the quad-underscores physical page allocator API in the memslot perf test in anticipation of converting the outer versions to take the memory region type instead of the raw memslot. Stating the obvious, the memslot perf test creates and allocates from multiple memslots, and so can't use MEM_REGION_TEST_DATA to communicate which region/slot to allocate from. No functional change intended. Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/memslot_perf_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/memslot_perf_test.c b/tools/testing/selftests/kvm/memslot_perf_test.c index e1299611be32..844ea9b7bb41 100644 --- a/tools/testing/selftests/kvm/memslot_perf_test.c +++ b/tools/testing/selftests/kvm/memslot_perf_test.c @@ -339,7 +339,8 @@ static bool prepare_vm(struct vm_data *data, int nslots, u64 *maxslots, if (slot == data->nslots) npages += rempages; - gpa = vm_phy_pages_alloc(data->vm, npages, guest_addr, slot); + gpa = ____vm_phy_pages_alloc(data->vm, npages, guest_addr, slot, + false, false); TEST_ASSERT(gpa == guest_addr, "vm_phy_pages_alloc() failed"); -- 2.55.0.887.g758fc8c411-goog -- kvm-riscv mailing list kvm-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kvm-riscv