Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11892441rwl; Tue, 3 Jan 2023 06:17:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXtA2lnq9a6ExTI2clj2ma+ZG8UHDPjqpGdBReOtihmSilDELeJtD0uY3k8HhqZLH24AHLV3 X-Received: by 2002:a17:90a:58:b0:223:a079:7354 with SMTP id 24-20020a17090a005800b00223a0797354mr49340205pjb.15.1672755477602; Tue, 03 Jan 2023 06:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672755477; cv=none; d=google.com; s=arc-20160816; b=gy2mQIj/JXCfga+rZBQ2IXBmZCDvWTa6YWhddJ2yzi5Vu19Y9upShW139I6ymISVhr jnrLHDWJSlrbuP1xB1ArCKAhxQK4+/lmFg3WCJh0nBmoqFOLszAc46kIpyYRSke/guPa /o7gN+K7LJ+a+t8lazaDgcBDhpmkwN4/oDZJ0LYXVZePk7f4dv1dOzo80dm7chgAiOJO RhrZwCwVjjf+j9JTrLERwLwk3hjVs6/YWCFy50nW3y8ZrpgS1VesiP69btOgoDflYHa/ RaT5OnQ6HMvNIi2vJsukmuw0EmCBF+Oe7ObKcXIGyp8Tu/ocCaQAfGoP7GelvVEVfdOS 6kVA== 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=jenftXUsLCjYgVrpPBjfO/iyCDXDPDkEsFq22/aOs1Y=; b=OBtU3pLeyjG0v5x9TjmcUGNx8dnk9lwLV5C/QCsYfLsdaVq77fMa5z6XC6RIQ7fzYw 99ATaH7Mw4F5pc1cQ3ItLNh6YbrmhJBsrpTOd/un3YpIExHJAaZg+VqIXBj4b/1S3kKD nGN6lV7SG1YpO04DmXl4Vo9vvRLlcuAQ0PbgBxfQrEdzOeBSIV9LELTKArW7b+tx6af3 hLvzFHCLZt2LWPK21GAEgsQGe+C83lXoZVncHEIojOL2aO1YMRgB8YbkWW3X0x8e6dK8 hCY782Fu/xCyMK4E9zxUe7Lrf3itVTmICzZHC0tf41E8QEgFE3OWEKSGdRbiZk4ruI2n 623w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZYVEZy40; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx1-20020a17090b4b0100b00223770a1235si35428889pjb.138.2023.01.03.06.17.39; Tue, 03 Jan 2023 06:17:57 -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=@alien8.de header.s=dkim header.b=ZYVEZy40; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233296AbjACNwo (ORCPT + 60 others); Tue, 3 Jan 2023 08:52:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbjACNwn (ORCPT ); Tue, 3 Jan 2023 08:52:43 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 164C5228; Tue, 3 Jan 2023 05:52:42 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 90BC81EC04A9; Tue, 3 Jan 2023 14:52:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1672753960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=jenftXUsLCjYgVrpPBjfO/iyCDXDPDkEsFq22/aOs1Y=; b=ZYVEZy40bpZKRPNEb8A+GuJDwo7co0rlr98fvB9Y46v2y2MaROimAin4irtrRaH0yfVsVu YJFlUTK+92Y1n157kbiM0mqAgVZirhb4LrcZxhZhM8StngsMJoYWzHWJdG5iLOxBw3rMP9 JoTXTSzQ+35L8T7r5FofStb4YRVIDmw= Date: Tue, 3 Jan 2023 14:52:35 +0100 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Dario Faggioli , Dave Hansen , Mike Rapoport , David Hildenbrand , Mel Gorman , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, aarcange@redhat.com, peterx@redhat.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv8 05/14] x86/boot: Add infrastructure required for unaccepted memory support Message-ID: References: <20221207014933.8435-1-kirill.shutemov@linux.intel.com> <20221207014933.8435-6-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221207014933.8435-6-kirill.shutemov@linux.intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Wed, Dec 07, 2022 at 04:49:24AM +0300, Kirill A. Shutemov wrote: > Pull functionality from the main kernel headers and lib/ that is > required for unaccepted memory support. > > This is preparatory patch. The users for the functionality will come in > following patches. No need for that sentence. > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/boot/bitops.h | 40 ++++++++++++ > arch/x86/boot/compressed/align.h | 14 +++++ > arch/x86/boot/compressed/bitmap.c | 43 +++++++++++++ > arch/x86/boot/compressed/bitmap.h | 49 +++++++++++++++ > arch/x86/boot/compressed/bits.h | 36 +++++++++++ > arch/x86/boot/compressed/find.c | 54 ++++++++++++++++ > arch/x86/boot/compressed/find.h | 79 ++++++++++++++++++++++++ > arch/x86/boot/compressed/math.h | 37 +++++++++++ > arch/x86/boot/compressed/minmax.h | 61 ++++++++++++++++++ > arch/x86/boot/compressed/pgtable_types.h | 25 ++++++++ > 10 files changed, 438 insertions(+) > create mode 100644 arch/x86/boot/compressed/align.h > create mode 100644 arch/x86/boot/compressed/bitmap.c > create mode 100644 arch/x86/boot/compressed/bitmap.h > create mode 100644 arch/x86/boot/compressed/bits.h > create mode 100644 arch/x86/boot/compressed/find.c > create mode 100644 arch/x86/boot/compressed/find.h > create mode 100644 arch/x86/boot/compressed/math.h > create mode 100644 arch/x86/boot/compressed/minmax.h > create mode 100644 arch/x86/boot/compressed/pgtable_types.h Reviewed-by: Borislav Petkov (AMD) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette