Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp31916rwb; Wed, 7 Dec 2022 14:02:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf47vPNTm3vLJ6xQ4VQXr3SE/2LG3YZrVR/SgV6x/iOTjlYhB/7RdrZfHKk/6K+aRWqrJmWD X-Received: by 2002:a05:6402:4499:b0:46c:43fd:d1ab with SMTP id er25-20020a056402449900b0046c43fdd1abmr7867793edb.197.1670450549486; Wed, 07 Dec 2022 14:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670450549; cv=none; d=google.com; s=arc-20160816; b=CR4gGObn4wuVAHEEddzk8IRx5XetmvoLtzaUBg+nvLebUq5KrVCzfRVbozhm97ExLW 0MHSvejH+ndqAJYvrsgxoEfrNp5E2kCMedmXAChcl4Bc6EX6CSqr5lVBqBOCXKeK8POy ENsbUA4qyhwVfV6BAcLHg9PITdy+CNmjcok5kohF/TJhKgWxYVr2xC+VQ5S6+4VWRBiN kyNOPiK24igusSKsp2d8Qh7LSDPTibCGtk7B2Vw/lMBff/LPO1UovY9dtoBTPZuuR0nA IFhbtbw9BfmjYENY7+pthTjlIvMSRIPgb6r1K7oYxlMrjny5jPNbUVBs+02uhJruajFP vlEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+DyLxs3HyIoF5wx9VX+BHFSEjjnbDaZ4BqGRsxySYTU=; b=fFjg3dowk31LwPUFnCt5bAbiMnj+swnxqInhhGWDY3wku7RJoZFYKg5sXl0tSTVIQu g2SIbVsHYbzBnDF/SHTn/ruT0DA/AEiw3dTWOWjJV67sTnn9oOtvMCEixm4tyNzL9+wd YgOps/hevk7TDW3tuZu72ypOrkiZaO+lu2S7GzhBimlDFAKC7VDZsyF3xcoWmD+GdpdN mMgmqnD9SsgexlyhlOFm26G+Kx3/+sfQnEDyRhLkZ8haC1pce38JPmnm3720VgYVutSa weQqfhtJGahIwL8cFOaiTK8kdTQIUsHWVRfDfrQYbpYARqNYNk2kRoOaBjw0PGQ5PA86 qVxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ezeBgIra; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a1709065dcd00b007aeff3b0b17si13829140ejv.674.2022.12.07.14.02.10; Wed, 07 Dec 2022 14:02:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ezeBgIra; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230025AbiLGVsu (ORCPT + 74 others); Wed, 7 Dec 2022 16:48:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbiLGVsh (ORCPT ); Wed, 7 Dec 2022 16:48:37 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 431F483EB6; Wed, 7 Dec 2022 13:48:36 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1670449714; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+DyLxs3HyIoF5wx9VX+BHFSEjjnbDaZ4BqGRsxySYTU=; b=ezeBgIrapc0Yr+sy6EGzPWIC5Jvm36lxzF1ASa6A4Z3hmSRNYzMMaQSam4w8KPu85HkMXB fnAOl2c3FSG9VrCYbXt/O0Y1yj0US4HOM9g+eBr1nabRFom+i0iPi0WNhgUHF32YNirkYn B1AafIwUyT0gRbFNqHcwh/v+ZOnK/1A= From: Oliver Upton To: Marc Zyngier , James Morse , Alexandru Elisei , Paolo Bonzini , Shuah Khan , Andrew Jones , Sean Christopherson , Peter Gonda Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kvmarm@lists.linux.dev, Ricardo Koller , Oliver Upton , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] KVM: selftests: Allocate ucall pool from MEM_REGION_DATA Date: Wed, 7 Dec 2022 21:48:08 +0000 Message-Id: <20221207214809.489070-5-oliver.upton@linux.dev> In-Reply-To: <20221207214809.489070-1-oliver.upton@linux.dev> References: <20221207214809.489070-1-oliver.upton@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MEM_REGION_TEST_DATA is meant to hold data explicitly used by a selftest, not implicit allocations due to the selftests infrastructure. Allocate the ucall pool from MEM_REGION_DATA much like the rest of the selftests library allocations. Fixes: 426729b2cf2e ("KVM: selftests: Add ucall pool based implementation") Signed-off-by: Oliver Upton --- tools/testing/selftests/kvm/lib/ucall_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/lib/ucall_common.c b/tools/testing/selftests/kvm/lib/ucall_common.c index 820ce6c82829..0cc0971ce60e 100644 --- a/tools/testing/selftests/kvm/lib/ucall_common.c +++ b/tools/testing/selftests/kvm/lib/ucall_common.c @@ -22,7 +22,7 @@ void ucall_init(struct kvm_vm *vm, vm_paddr_t mmio_gpa) vm_vaddr_t vaddr; int i; - vaddr = vm_vaddr_alloc(vm, sizeof(*hdr), KVM_UTIL_MIN_VADDR); + vaddr = __vm_vaddr_alloc(vm, sizeof(*hdr), KVM_UTIL_MIN_VADDR, MEM_REGION_DATA); hdr = (struct ucall_header *)addr_gva2hva(vm, vaddr); memset(hdr, 0, sizeof(*hdr)); -- 2.39.0.rc0.267.gcb52ba06e7-goog