Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35BA6D3C926 for ; Sat, 19 Oct 2024 18:24:20 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.822644.1236592 (Exim 4.92) (envelope-from ) id 1t2E7P-0005Fh-6Q; Sat, 19 Oct 2024 18:24:03 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 822644.1236592; Sat, 19 Oct 2024 18:24:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t2E7P-0005Fa-3m; Sat, 19 Oct 2024 18:24:03 +0000 Received: by outflank-mailman (input) for mailman id 822644; Sat, 19 Oct 2024 18:24:02 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t2E7O-0005FU-1p for xen-devel@lists.xenproject.org; Sat, 19 Oct 2024 18:24:02 +0000 Received: from sender4-of-o51.zoho.com (sender4-of-o51.zoho.com [136.143.188.51]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 4e478b1f-8e47-11ef-99a3-01e77a169b0f; Sat, 19 Oct 2024 20:23:59 +0200 (CEST) Received: by mx.zohomail.com with SMTPS id 1729362234172172.78630606787408; Sat, 19 Oct 2024 11:23:54 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 4e478b1f-8e47-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; t=1729362235; cv=none; d=zohomail.com; s=zohoarc; b=N84psd4OuWCRHbPXfMqew9IriduK9qEoF8SMbOEk9jt6mnPcPoEQL3Nw35Lbp7yYJ4+u6k2sclOO/MEBQLVWHiUFMpwFOsYnRASyINbPWZX33LCT9khjpmYrWZlDrIpZova8I2sHaCLkm7FUuIBONZvSI7N+2NzZW8TjxeirDn4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729362235; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=SHoNmuO0gYmDxQNpXWyCwOI+zewpEv3IPGRCkzcH7YU=; b=mMy0gKtMXQJ04XONQvrkIoq3+NCBZx7qCk2Gh4sh+z0wlr6/tMAF1zUMoJx4Y7wnmWMu/BE7zpfDHyqMPm3kKMWtnMtxH9FJbwNwayW05io1Mbp7mSlDXB3lHJ1qsl43Y6MbuW6lSLgQUTFJ1sW02eZT5buCM72tQNmGxuJWSMs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@apertussolutions.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1729362235; s=zoho; d=apertussolutions.com; i=dpsmith@apertussolutions.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=SHoNmuO0gYmDxQNpXWyCwOI+zewpEv3IPGRCkzcH7YU=; b=euagaa4ru97T1FfnxXognOqmyKQkEXIaBRRoXzV9I4bxXv/e2Pwuw7AAV5fKniYb CIzHwHEGHiMFKPOaWjrkd5ePhRpjYAUbET10Em22SHIkWeFX3lnPALbzWoAjhB5fjXv TMNpGkAnT3oTY1Bpp4/cprSszrhXIkgY2+DzPQQE= Message-ID: Date: Sat, 19 Oct 2024 14:23:52 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/boot: Fix PVH boot following the start of the MBI->BI conversion To: Andrew Cooper , Xen-devel Cc: Jan Beulich , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= References: <20241019182054.3842879-1-andrew.cooper3@citrix.com> Content-Language: en-US From: "Daniel P. Smith" In-Reply-To: <20241019182054.3842879-1-andrew.cooper3@citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External On 10/19/24 14:20, Andrew Cooper wrote: > pvh_init() sets up the mbi pointer, but leaves mbi_p at 0. This isn't > compatbile with multiboot_fill_boot_info() starting from the physical address, > in order to remove the use of the mbi pointer. > > Fixes: 038826b61e85 ("x86/boot: move x86 boot module counting into a new boot_info struct") > Signed-off-by: Andrew Cooper > --- > CC: Jan Beulich > CC: Roger Pau Monné > CC: Daniel P. Smith > > This is a testiment to how tangled the boot code really is. > --- > xen/arch/x86/setup.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c > index 6746ed8cced6..bfede5064e8c 100644 > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > @@ -1048,6 +1048,7 @@ void asmlinkage __init noreturn __start_xen(unsigned long mbi_p) > { > ASSERT(mbi_p == 0); > pvh_init(&mbi, &mod); > + mbi_p = __pa(mbi); > } > else > { > > base-commit: e9f227685e7204cb2293576ee5b745b828cb3cd7 Reviewed-by: Daniel P. Smith