Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1141857rwd; Sat, 27 May 2023 11:56:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pmVtucWe5C+KF72v0GcMLMn0Slmr0KWi03ej6XxgjpgMZmsSEsvapuyIz2rtkAlpjZD2i X-Received: by 2002:a17:903:234a:b0:1ad:f138:b2f6 with SMTP id c10-20020a170903234a00b001adf138b2f6mr8029299plh.16.1685213767875; Sat, 27 May 2023 11:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685213767; cv=none; d=google.com; s=arc-20160816; b=Svw6qDiWOqvj/SmfAKfz2gNPyEMQaTIL5YI/SkEMTaOZMEWLu1o1ngNxGmK/8nd+hv tqsfT0EX6KTybbmJU4kdheXcWN4XoffYBQKw83AfSWLqUCLzICkIXqOmb8fNxS23pxGu C9galGhLKvuPVlL2pWhPf1oOPcLpIVHMbgFLgoCRzRgk2DU4HuoLQxYaEWs6h1Nphab5 44mbw6h2UdtxTIVDWGj68lOLgFzcuT5yXR4EWigtZSsP9TeCRPHh1FbQIB7fPyAE3ni9 UX4Xb6Xy9Q6IpruQzrtbECVimzWo5rbI3FDoDCgUz3nrHdMlUK5GpH4tHu4TMeSGPiy2 wEOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ILLm7sjS2AUbgX5ZU3V6OvdwznjKgFXN4a/oNoiqZNE=; b=WI8uPNk9d4MYBxhrm9kacpOXpDMpvk6o8K3yyaljAsAexbBCGQfj9ivxWe6JMna98y K09pPcI2+MA5Zg7SikPRUxD4+1JZrtS3BI300dbmmDZMZvw48D8+DmCEl9ls6fLVNvw/ ggLv4S+GrDon7zYjL4LKpmVMPDpDs6ntjaz/HXP6xBYwOky94BuUl55jh3GWSI8Vr82k 68CYzuaOf0WrViL3DKLDo8Eckne3Q3sEztSyqkViSe03xhGEx2HXGx2OTSK6tIXcjl8D PZvp1tsj+Qpjiga5f5xPkOgwkiDO33unSmBQdpv/2pefoxY93phgZqlbCCEL8J3geO9F o0jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NUkjfs+F; 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 m5-20020a170902768500b001ac6d4e1d72si6440550pll.149.2023.05.27.11.55.53; Sat, 27 May 2023 11:56:07 -0700 (PDT) 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=NUkjfs+F; 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 S230042AbjE0Smi (ORCPT + 99 others); Sat, 27 May 2023 14:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjE0Smh (ORCPT ); Sat, 27 May 2023 14:42:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A10099; Sat, 27 May 2023 11:42:36 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id AD7DB615B0; Sat, 27 May 2023 18:42:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11A77C433EF; Sat, 27 May 2023 18:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685212955; bh=ILLm7sjS2AUbgX5ZU3V6OvdwznjKgFXN4a/oNoiqZNE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NUkjfs+FLPecL9MScQaHcjH42z08/Anpuon7d1M1eUg6dsY+F0Orwnz+00gcUcPVx U0XH+Oce0uRcTtKwG5Bebcm2vgVFN30IF5We+cbfmYS5TIP5uS/qz+wUodCkoisbqH 8O/fmbZt1Rp2kMn1pPxyA13RdSiJwxe+ITqKtq3KZAxxCcCgIZm65bcRFYvcbN4XBF uUjKrgT4w9we1CU/hIAODtjR/fj3hV9t7mqGRc030Ap8U2O1dGj/Z5cAJR/fCqEZYg H4v+6DMcmIZ3edMQH4QKiMSkJPzIBYDFrBf10HdwD5xZ9iaM819AdydDMg/679U6K0 FaYBLjaaZijhA== Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2af2602848aso18691191fa.2; Sat, 27 May 2023 11:42:34 -0700 (PDT) X-Gm-Message-State: AC+VfDwLXdx2QImlWGSuWoE3ERd7j4XgxqHGwG81/HE2wQupLrHmnqtI 6+7cyynGDJG15R1uQNm+MuiWlS4AGDLlISHz3fc= X-Received: by 2002:a2e:7c18:0:b0:2af:23c2:5dce with SMTP id x24-20020a2e7c18000000b002af23c25dcemr2054843ljc.25.1685212952230; Sat, 27 May 2023 11:42:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Sat, 27 May 2023 20:42:21 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mix of ACPICA regression and EFISTUB regression (Was: kernel >= v6.2 no longer boots on Apple's Virtualization.framework (x86_64); likely to be related to ACPICA) To: Akihiro Suda Cc: Bagas Sanjaya , linux-efi@vger.kernel.org, Linux Kernel Mailing List , Linux Regressions , Linux x86 , Linux ACPI , Linux ACPICA , Linux Stable , "Rafael J. Wysocki" , Jianmin Lv , Huacai Chen , Linus Torvalds , Robert Moore Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sat, 27 May 2023 at 20:34, Akihiro Suda wrote: > > > Are you using OVMF? Which versions of qemu and OVMF are you using? > > I'm using Apple's Virtualization.framework, not QEMU. > > It doesn't use UEFI when it directly loads bzImage. > ( dmesg: https://bugzilla.kernel.org/attachment.cgi?id=304323 ) > > Despite that, it still expects LINUX_EFISTUB_MINOR_VERSION > (include/linux/pe.h) referred from arch/x86/boot/header.S to be 0x0. > I confirmed that the kernel can boot by just setting > LINUX_EFISTUB_MINOR_VERSION to 0x0. > Thanks for checking that, that is very helpful/ > Would it be possible to revert the LINUX_EFISTUB_MINOR_VERSION value > (not the actual code) to 0x0? > Or will it break something else? > > Anyway, I'll try to make a request to Apple to remove the > LINUX_EFISTUB_MINOR_VERSION check. > Yes, that makes the most sense. If the existing virtual machine BIOS has a hardcoded check that the EFI stub version is 1.0 even if it does not boot via EFI to begin with, I don't see how we can reasonably treat this as a regression that needs fixing on the Linux side. The version bump to PE image version v1.1 sets a baseline across all Linux archifectures that can boot via EFI that initrd loading is supported via the command line as well as via the LoadFile2 protocol. Reverting that would substantially reduce the value of having this identification embedded into the image.