Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1961246rwb; Thu, 8 Dec 2022 18:07:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6I2yCcg5mts/Odeca1ZSrQ6Ik5EevG68ZjEsbon1nITUgwiEjWnfaog2MeFP8Mmuf88cyC X-Received: by 2002:a05:6402:d:b0:45c:835b:8fa5 with SMTP id d13-20020a056402000d00b0045c835b8fa5mr3397329edu.16.1670551666595; Thu, 08 Dec 2022 18:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670551666; cv=none; d=google.com; s=arc-20160816; b=1DGWZOAfKD189e+Jfe+cs10nQgdB1JrKdKkKmknU+GJFflKvG9ciWJSUOv+cxeHMxy S8dzc4ntfeKtc7UreY72wbeH0zRvwqEnq9oYvZ2Hhwmt4d9NF3b2uwKnvNos8mjZWOSc OQFWS+eq/hgMaO+7y2fQFNmvh2i7bJi81N3MHH9FE6Ldp28RxrspKC/TFauyHdoXh6eB MehWqXQm/AJje+s/IvRFj7Dlzt8H7B/OEfgRZ+L/8/DaFyStjUasShuKQOKqFLCc+wEk 5NUl7MXx64CDkTKusX0lhq6Hnd2AZ+KFkINyBpSy82jfICvJ0NzlduP+8Lvb3WJmRWDC SLew== 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; bh=W5GuQXMbrC3IysNjrIOVqfKPv5wEvVUNlxTgUAZczI8=; b=D+ljie/k/FwkCBMRGXMpG9jqo9xgAjDknraMMBmxvDL6BJ9aJA2g8SDRRpo2yJP8gY /ZPX+ESxg8qbtjP4A39LHLx2PeUmNDAkCob5VHBQNkzQZQxi7TNc+Ot48IewBp3h/+K0 9z4W22M/HZqx53A6RIKZtUfmbF7f1iECl7VJ2ssQ7jtyPpBmtgAN9cV2A5G0rlFLYSwF AW/XcEFQJHqhL2ux3UALRpe7GMHDPgBkQBAE1s6bXC+77oHjjXU+mK8WmRyg2D8lixpT xad+V2NZCjvVoHu1qs7Z7xwaEx1IFrUZ5ex+0S8QRkHAqHiVGNpaoIIxsC3eDZnuK1P+ VmkQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 q18-20020a056402519200b00469d667117csi371672edd.167.2022.12.08.18.07.28; Thu, 08 Dec 2022 18:07:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbiLIByW (ORCPT + 73 others); Thu, 8 Dec 2022 20:54:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiLIBxy (ORCPT ); Thu, 8 Dec 2022 20:53:54 -0500 Received: from out-116.mta0.migadu.com (out-116.mta0.migadu.com [91.218.175.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75B29AE4E5 for ; Thu, 8 Dec 2022 17:53:45 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier , James Morse , Alexandru Elisei , Paolo Bonzini , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kvmarm@lists.linux.dev, Ricardo Koller , Sean Christopherson , Oliver Upton , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/7] KVM: selftests: Allocate ucall pool from MEM_REGION_DATA Date: Fri, 9 Dec 2022 01:53:05 +0000 Message-Id: <20221209015307.1781352-7-oliver.upton@linux.dev> In-Reply-To: <20221209015307.1781352-1-oliver.upton@linux.dev> References: <20221209015307.1781352-1-oliver.upton@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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. Reviewed-by: Sean Christopherson 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.rc1.256.g54fd8350bd-goog