Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp850709rwj; Thu, 22 Dec 2022 16:13:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXsg2UwgUW4gSV4OK4HNVFJM+a6fQNVMLUpdnpsatehL420GgCz55dDP47gOd2IrcuMVdHCQ X-Received: by 2002:a05:6a20:1384:b0:af:864d:e7bc with SMTP id w4-20020a056a20138400b000af864de7bcmr12391040pzh.25.1671754431027; Thu, 22 Dec 2022 16:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671754431; cv=none; d=google.com; s=arc-20160816; b=UzKZphdW/JLoHGruO5TIj9ruVuuXeIK/do+1dMGHO/WWmLB8UVd4fKarmY1Xk/ACNo f3M/GsqgziYLte1VqjsLmvNlCDd01gF560rwN54ZN7FpvFuifFHb76Ysx529aUHEnvNL WTNi7hC3IXdWg7LD9kuNpZ0noXoDIzWDjuY0FRcho4yd7i9FRqibGYYvw9UUMY4P2dFR yQ9k7KI41yxvnjpqcwlU5cgLDpYjhRP3tcSletts8SBrPdLZPZJ4lUM7DnHfSGgOCwHX /0qDFcQ/87sc5mMSGXL7gzFqu7EyFoPuXfVSRML5v+X9SMbUbO/28wQ64xm+11qYinhw bEDg== 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 :feedback-id:dkim-signature:dkim-signature; bh=onhtEckhuX8csdtNozlcaBjqdIEEh4L7+8wYGdwUQtU=; b=BAn62r9G6StFPHXl365QKcZZCJXb6TRbD7TdkFujMLW6ZXyUwnmtdCdd7xQzkV9QyC yhckobXRAg28N/LZvVCnBowN+JHKV/nZTaSbcGW80hkYAa8HRDORsIcg8YcKpaeXbaio 7aHSU1yGrhevDFIqdTvJopKORH2ywgArwCa/00RntKQ2V2zA1aPxGm4q5b8Bp4GQV0Vo WwGy7hu6e0WihENRzoQfnayD8gXGRujRJeOUNQpY0IJLjZYjy7Fz6TBJBT7Nw5BB1IHj 3c/FciKInonAlZ6hOWtppvB5i6Zn1iZB4Xi84iTOjDQX9M+TowBmjFmPQI+ADXo2JVf/ F+TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tyhicks.com header.s=fm1 header.b=OL6Swrpw; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=LYLT8Oql; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b126-20020a636784000000b004792abd9a5bsi2177765pgc.181.2022.12.22.16.13.42; Thu, 22 Dec 2022 16:13:51 -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=@tyhicks.com header.s=fm1 header.b=OL6Swrpw; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=LYLT8Oql; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235701AbiLWAKh (ORCPT + 68 others); Thu, 22 Dec 2022 19:10:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235227AbiLWAKZ (ORCPT ); Thu, 22 Dec 2022 19:10:25 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D41B22BF8; Thu, 22 Dec 2022 16:10:22 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0E2B15C0110; Thu, 22 Dec 2022 19:10:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 22 Dec 2022 19:10:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tyhicks.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1671754222; x=1671840622; bh=on htEckhuX8csdtNozlcaBjqdIEEh4L7+8wYGdwUQtU=; b=OL6SwrpwQEbQ99nqQt sf7U9qkrJc8k9sPOzJaV7bfIxFwfmAE8tn5s8gIGc60Df7D068SXzBcWe5NBc/Gi xo7kv0XBCp1p3zyqvEGsl6AcKf3rmmvFeuXIReMajv9Y5+24gyhw+d8zJJN8b9BX fSqJC+By6q3F/1E7TICQKcOt3KMSpLbxBED1zDCrWzf99nOTYMlCP/zFKUSmFWF6 1NWcflTBXYN6ruNqOJxeOafjf/LcNp9Haso0AeJIr34oqx+d/oZCZAwEqMGuc53E 5RkCqDkoceOvRrvcJMN+qCxSq4PlvaPf5/sZHjCcgTmPuoTn0cik+cuVexQozWn4 x/EA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1671754222; x=1671840622; bh=onhtEckhuX8cs dtNozlcaBjqdIEEh4L7+8wYGdwUQtU=; b=LYLT8OqlbPm6qYtjmIt58QE+u9f59 P8ZL7Z9e3ozdIR+ZfcqpSfawmNTQwEOOMSN1LSaX9VQUqjumQ46pi/IvrKq2SvEK SW4rRY8fP+9pvm085lWNpDlsEY1CPTOjX4aBqvDRlUmAOjz0GMdKRfFEg3DrD2pN 93arsnKNS/LZ4cjGr0xI3wTt/Uxfk9MVmlicyTZAU8FPo0ENO7ObnVqWbUIp84LX sW+Xkgz+fNWMbg/qauQoodlVHvley6McZ4p4K3GqUdD3usZvW+qRf2BNy/mf2zJz Awk3kccMXI9zrRBEj9OqzbXdfNSezDQ5HjjHT6LS8FyDxZmIIOXKhkzDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrhedugddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhihlvghr ucfjihgtkhhsuceotghouggvsehthihhihgtkhhsrdgtohhmqeenucggtffrrghtthgvrh hnpeetfeeikeekieeuieehffeigeetffekhedtteegkeehgefgffevfeegheevtdejheen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegtohguvg esthihhhhitghkshdrtghomh X-ME-Proxy: Feedback-ID: i78e14604:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Dec 2022 19:10:20 -0500 (EST) From: Tyler Hicks To: gregkh@linuxfoundation.org, stable@vger.kernel.org Cc: "Tyler Hicks" , Paolo Bonzini , Shuah Khan , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Gavin Shan , Marc Zyngier , Karolina Drobnik , Mike Rapoport Subject: [PATCH 5.15 2/2] KVM: selftests: Fix build regression by using accessor function Date: Thu, 22 Dec 2022 18:09:58 -0600 Message-Id: <20221223000958.729256-3-code@tyhicks.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221223000958.729256-1-code@tyhicks.com> References: <20221223000958.729256-1-code@tyhicks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, RCVD_IN_MSPIKE_H2,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 From: "Tyler Hicks" Fix the stable backport of commit 05c2224d4b04 ("KVM: selftests: Fix number of pages for memory slot in memslot_modification_stress_test"), which caused memslot_modification_stress_test.c build failures due to trying to access private members of struct kvm_vm. v6.0 commit b530eba14c70 ("KVM: selftests: Get rid of kvm_util_internal.h") and some other commits got rid of the accessors and made all of the KVM data structures public. Keep using the accessors in older kernels. There is no corresponding upstream commit for this change. Signed-off-by: Tyler Hicks (Microsoft) --- tools/testing/selftests/kvm/memslot_modification_stress_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/memslot_modification_stress_test.c b/tools/testing/selftests/kvm/memslot_modification_stress_test.c index 1d806b8ffee2..766c1790df66 100644 --- a/tools/testing/selftests/kvm/memslot_modification_stress_test.c +++ b/tools/testing/selftests/kvm/memslot_modification_stress_test.c @@ -72,7 +72,7 @@ struct memslot_antagonist_args { static void add_remove_memslot(struct kvm_vm *vm, useconds_t delay, uint64_t nr_modifications) { - uint64_t pages = max_t(int, vm->page_size, getpagesize()) / vm->page_size; + uint64_t pages = max_t(int, vm_get_page_size(vm), getpagesize()) / vm_get_page_size(vm); uint64_t gpa; int i; -- 2.34.1