From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7030B381AE2 for ; Fri, 3 Jul 2026 06:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783059560; cv=none; b=Y4q5BDL8DNJKc1PeYl/D/16SjQ+q685iryPrrSdGNFEDsXIZH0DW74vJS+NqAjXRowmAoHPpyNdg/aiE5GLc15GD7SPT4Q2Oz3sYHTS9P+z6CmzZsMgxVfFMAgA9F9XhcJPn7mjdhpcn3PrO/63vfWx5UIpEkWfT7wVwMRuC6AE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783059560; c=relaxed/simple; bh=PAcAYrjGwfjVr53dQpKw/545RDSPdaLHYsw7jVH9fKY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C1KP0cED8pQXPPoPzQsP1m6XV/M8KjV2Q1ZkzM89ui/FxwEubqxjhpVfM7O5ujEz0u1EVXbH5F0KuzSWkMoCGrpge5xsnN/Zp0vc9GHKJC+Ip1ZogddVPsrWahJJgWW8VUqVHri4Uyubx/An/mLzZEGyQQrzzJylnTekw2TddaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hspcQVPK; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hspcQVPK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 826531F000E9; Fri, 3 Jul 2026 06:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783059559; bh=ZwarcPKPTkjljrDo42N+w74VxiYFqGDfjaPe/w3i4JY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=hspcQVPKCeLKZ/8DIJFTQdXNhZ0f5Ljo988vqBA0ZEquyjFCZPh+yFajd0Sw8+zdd 2ipbSbntsGT5RI0QFuLKarJ0rrk5O+QNmTH6wMflatQVgJBL2wGrJVs2minZv62wIH E2G8RITiEuKbatMFvyjX8hHeAfTrvEZmYAzaybsN8A1oi7hph56LyolY9pojr9qjoF XiSme+LmTqYweoLbEH7IvgGGDYJuAULMrtw2Xax9z9jSdzmHdn4z/Nh+7IxBbwA4gH FVQxMsULsbxRMaqJJjNIMDpcSAwqWRnHH/mlxUCeRBjIwEN8ERQxQs3wfRz4/qy1v6 qYC7bMC+oaMog== Date: Fri, 3 Jul 2026 09:19:11 +0300 From: Mike Rapoport To: Borislav Petkov Cc: Pratyush Yadav , Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Pasha Tatashin , linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org Subject: Re: [PATCH] x86/setup: do not include kexec_handover.h from asm/setup.h Message-ID: References: <20260701151536.3068791-1-pratyush@kernel.org> <20260701165714.GAakVG6p191JTJ0nJS@fat_crate.local> <20260703001128.GBakb-MO4o6AUffNAx@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260703001128.GBakb-MO4o6AUffNAx@fat_crate.local> On Thu, Jul 02, 2026 at 05:11:28PM -0700, Borislav Petkov wrote: > On Thu, Jul 02, 2026 at 10:31:11PM +0300, Mike Rapoport wrote: > > The examples there are really x86 specific. > > KHO needs decompressor to recognise 'struct kho_scratch' that's defined in > > include/linux/kexec_handover.h > > That struct is huuuge :-P > > struct kho_scratch { > phys_addr_t addr; > phys_addr_t size; > }; The size does not matter ;-P > > I see there's a duplicated 'struct efi_unaccepted_memory' for decompressor > > needs, should KHO do the same for 'struct kho_scratch'? > > You could. But it would go out of sync perhaps. > > You could also try a > > include/asm-generic/kho.h > > and put only really generic, basic gunk there and include it everywhere. asm-generic would be my preference too if that's fine to include in decompressor. -- Sincerely yours, Mike.