Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp296518rwl; Sat, 24 Dec 2022 20:07:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXuGX8Kh/Zhu9cTV5XmB9+HnBa6B6DUZz77iGAtdfGW8aAjiGIuAWVmnOsUqCE7s+F6/PnMx X-Received: by 2002:a05:6402:380d:b0:47e:eaae:9a5b with SMTP id es13-20020a056402380d00b0047eeaae9a5bmr10379707edb.42.1671941224898; Sat, 24 Dec 2022 20:07:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671941224; cv=none; d=google.com; s=arc-20160816; b=dicmJPwkx6UmHRy+yhLszTTCwWUZvWKrpApYUbvirvfcDPDobZWQvb1rJSy2ir53GV ChmiFN1rsvGM9bpxK7GKnfTAwyCzf5LPdMkVJ4J/3cT2ZhgJ6OlBkt+VxU5cQYZO6sKW TcxwBfoMSKFkFiXmIZdoX79PyWbTdZhycuRQlnRXoItKHA9B0tcLEXhDiCPnsMUnixjn AUamx3E+7V+E5IcOdHjrpwm40uVKjEbth3ohFcqNbT+SvcP1iX4e+iXc2nsnLOZTFm3S Y9sf4FWxxjWbVmuxJJ6Rl+J9d7rxXvwzI6bDWMtbb3AfPP7yZ87N9wFZ2q9NioL0FJZ/ jmFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dIkzwUXnLE/kz2Khc92jnBpFgpquA914pO3WzidBshk=; b=r7rLv/XTxv0qcOa4jIQlYnmMeSnqfSai/cF/JVgIO1F85IttN7du7GTllgoJ/dRYzP swi5Jxr0TuAU7QT7RDASlCUrGJwanNPBnHID4ok3ORvcWz8X12HgMEJ4GOO7ZGptmVfd dAXjcOUQGTYqksXbyLNj0CbCKtCDthKyj0vMsdYcVbuEx8yJkimHyyTlrbzAcM3PovGd D4UFrZrXyQhvZELjeYCiwmlzVepSSC5X1LWHNN6ZyxQeGP+vcbOSrenZ/Cnlp7+Zon18 uDw2OHmvNfqm8xcZ+ZGiIcOsp59rZbBeoegbdydf7RAHOg5RjZl+GLxWvsdSPu+8nAg9 mWHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jtDumGes; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a50ed16000000b0048463ca2e6fsi777851eds.319.2022.12.24.20.06.49; Sat, 24 Dec 2022 20:07:04 -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=@kernel.org header.s=k20201202 header.b=jtDumGes; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbiLYDeF (ORCPT + 66 others); Sat, 24 Dec 2022 22:34:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiLYDeC (ORCPT ); Sat, 24 Dec 2022 22:34:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1408895A5; Sat, 24 Dec 2022 19:33:59 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AF676B803F2; Sun, 25 Dec 2022 03:33:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23FB0C433EF; Sun, 25 Dec 2022 03:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671939236; bh=HBs48LNTjteYim6wGJgPGSaGT7qA/LzlKBR3O8bHfls=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jtDumGesS6zPX7w7WZPcPtT9aQpJ0Wf/p4LZ5LMUQq7BKFDyf8Mx4Kx/gFXhel7u1 z+HQQETjQ6xeG5nYSoHtMEzwcZxoPOXgYNnezzrE+D+W9g+HVuh2tKIBJqK9eZZyle yFlOu7MRBMIqIU3UiVAZHujhfdLej1Aivbo7TomFhwNqc41uhp+5gYn2vNRPFBvgcA 0E/E5xcrODfgxk8pa4QPkKLxliIHXETYKgzy1aL9HcY+VWB7vwN2U3/dn+5mVD3Ctw XtkhDrdcl0KZSSTr8PIJHDg0+uWZNFdp7MdT0VPnGZddHWHUVmmTGtJwPzo1FS3f3v h5Pb3hLVW+SsA== Date: Sat, 24 Dec 2022 22:33:54 -0500 From: Sasha Levin To: Paolo Bonzini Cc: Tyler Hicks , gregkh@linuxfoundation.org, stable@vger.kernel.org, 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: Re: [PATCH 5.15 0/2] Fix kvm selftest build failures in linux-5.15.y Message-ID: References: <20221223000958.729256-1-code@tyhicks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Fri, Dec 23, 2022 at 05:45:44PM +0100, Paolo Bonzini wrote: >On 12/23/22 01:09, Tyler Hicks wrote: >>From: "Tyler Hicks" >> >>The backport of commit 05c2224d4b04 ("KVM: selftests: Fix number of >>pages for memory slot in memslot_modification_stress_test") broke the >>build of the KVM selftest memslot_modification_stress_test.c source file >>in two ways: >> >>- Incorrectly assumed that max_t() was defined despite commit >> 5cf67a6051ea ("tools/include: Add _RET_IP_ and math definitions to >> kernel.h") not being present >>- Incorrectly assumed that kvm_vm struct members could be directly >> accessed despite b530eba14c70 ("KVM: selftests: Get rid of >> kvm_util_internal.h") not being present >> >>Backport the first commit, as it is simple enough. Work around the lack >>of the second commit by using the accessors to get to the kvm_vm struct >>members. >> >>Note that the linux-6.0.y backport of commit 05c2224d4b04 ("KVM: >>selftests: Fix number of pages for memory slot in >>memslot_modification_stress_test") is fine because the two prerequisite >>commits, mentioned above, are both present in v6.0. >> >>Tyler >> >>Karolina Drobnik (1): >> tools/include: Add _RET_IP_ and math definitions to kernel.h >> >>Tyler Hicks (Microsoft) (1): >> KVM: selftests: Fix build regression by using accessor function >> >> tools/include/linux/kernel.h | 6 ++++++ >> .../selftests/kvm/memslot_modification_stress_test.c | 2 +- >> 2 files changed, 7 insertions(+), 1 deletion(-) >> > >Acked-by: Paolo Bonzini > Queued up, thanks! -- Thanks, Sasha