From nobody Sun Nov 24 02:55:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1729362098; cv=none; d=zohomail.com; s=zohoarc; b=Lscq2J6T9fQGTxc03Rs0M6oszljkhIhsMcQt9A/tQ6SwzrGyoSPMAHycoLgRU62g6U7EBK9FE/lIy7Gi8SJpWXve9XCu3zl6tpcs+JOIJODYhDuAEwN5XGpnYomsEiwqtn+GJAnkjrp4ALuu313QaA3m4MGBOmRjzCIfqgDzLJo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729362098; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YQ+XswcKE3eTwpfFb8whrcadqSkZhZ894uDrIh9ujhg=; b=DaIilv1MstxH4C1svJCmTf4EDwO8A5iSF2TROt2o61M6iLBG77G/+j8rD00k/4qsiQN1Cq9pMGIR1fLGMizMgYbZOivzLg7Xg3VGoE+5nHW42QWwFo7QAoUKh9Px9WJsn793U2AYK+APnKtrCD6V2sHauZHB1h3Ez4wWqoG3frE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1729362098432382.46666898397154; Sat, 19 Oct 2024 11:21:38 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.822639.1236583 (Exim 4.92) (envelope-from ) id 1t2E4T-0004j3-Q0; Sat, 19 Oct 2024 18:21:01 +0000 Received: by outflank-mailman (output) from mailman id 822639.1236583; Sat, 19 Oct 2024 18:21:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t2E4T-0004iw-NG; Sat, 19 Oct 2024 18:21:01 +0000 Received: by outflank-mailman (input) for mailman id 822639; Sat, 19 Oct 2024 18:21:00 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t2E4S-0004iq-LZ for xen-devel@lists.xenproject.org; Sat, 19 Oct 2024 18:21:00 +0000 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [2a00:1450:4864:20::434]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id e32a4d19-8e46-11ef-a0be-8be0dac302b0; Sat, 19 Oct 2024 20:20:58 +0200 (CEST) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-37d6a2aa748so2090044f8f.1 for ; Sat, 19 Oct 2024 11:20:58 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a912d6383sm3935566b.6.2024.10.19.11.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 11:20:56 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: e32a4d19-8e46-11ef-a0be-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1729362057; x=1729966857; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YQ+XswcKE3eTwpfFb8whrcadqSkZhZ894uDrIh9ujhg=; b=N8WkivhBLANNsMBBkRQgtb3E6sDtTGigVL/WHmS3qTPLBVqsYFrtPw2yKt9DZs/ANW iReSdysqCn0KX6E1dHhANhSE+jZ9DMhpb/qFdvwRglj8viJQ+Tk9hadaHiioO4HcNSx5 xcoMXa3YzShhtnjYfBtwZn0HIDD9HYB+peeoY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729362057; x=1729966857; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YQ+XswcKE3eTwpfFb8whrcadqSkZhZ894uDrIh9ujhg=; b=Lw1OuPq6Ho4ugv7Nc2JtgpqCyq4hXlV/4gO0TKc54apaug4FOcnKCuUDXnKTturAQk X1xdaJ2ft+bvxcmUubCb+Oi98F8V8JitspZeftjppCneFK7QP6PfRaJfIFki3oYvCn97 2FDIbpryMyDrQIONHSzZSxFsQxxWeGaMarCca/eFCqF9I9Ex0ECe5CmARQhd9LeJF2NR xBLz6/dd37Al+e0oX7PAtrkDnEFksx1D2pgeh65DhlABww4Ua8B0mO1lvmPY0EKYLqfe QjHTd1d4Y3kEmJwmTleUm9mvTpgTvuBToZxmzsSvL3WKP0LYsfRbqiwuacr0DeIVlm8Q 5xFA== X-Gm-Message-State: AOJu0YzTO8T7wdCKBDCPDbsiKt8GKgQg7acH10FPnu6CsmpvW0CJFb7L eRASe653u+ij+MT4CTGFb/vYK7UaPg6P+ycjNo8CWhZ0tnYNkt6GteK+CL/cLoLXKrsdHwQ2y5m u X-Google-Smtp-Source: AGHT+IFfJF5sibyxVlWbMk0NcQlVo9m8EMt7Xnv2eUv43QIVWGecscVNiqZcQInxW/vq6wHKROq7Uw== X-Received: by 2002:a5d:5512:0:b0:37d:4fb1:4fab with SMTP id ffacd0b85a97d-37eab6ec42dmr3645829f8f.57.1729362057124; Sat, 19 Oct 2024 11:20:57 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , "Daniel P . Smith" Subject: [PATCH] x86/boot: Fix PVH boot following the start of the MBI->BI conversion Date: Sat, 19 Oct 2024 19:20:54 +0100 Message-Id: <20241019182054.3842879-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1729362100510116600 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 addre= ss, in order to remove the use of the mbi pointer. Fixes: 038826b61e85 ("x86/boot: move x86 boot module counting into a new bo= ot_info struct") Signed-off-by: Andrew Cooper Reviewed-by: Daniel P. Smith --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 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 =3D=3D 0); pvh_init(&mbi, &mod); + mbi_p =3D __pa(mbi); } else { base-commit: e9f227685e7204cb2293576ee5b745b828cb3cd7 --=20 2.39.5