From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43A39C433DF for ; Fri, 10 Jul 2020 13:38:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F92F20720 for ; Fri, 10 Jul 2020 13:38:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727086AbgGJNix (ORCPT ); Fri, 10 Jul 2020 09:38:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:57954 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726832AbgGJNix (ORCPT ); Fri, 10 Jul 2020 09:38:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id EAE72AC9F; Fri, 10 Jul 2020 13:38:51 +0000 (UTC) Subject: Re: [PATCH] efi: avoid error message when booting under Xen To: Ard Biesheuvel , Bartlomiej Zolnierkiewicz Cc: xen-devel@lists.xenproject.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Linux Kernel Mailing List , Peter Jones , linux-efi References: <20200610141052.13258-1-jgross@suse.com> <094be567-2c82-7d5b-e432-288286c6c3fb@suse.com> <170e01b1-220d-5cb7-03b2-c70ed3ae58e4@samsung.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Fri, 10 Jul 2020 15:38:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.07.20 15:27, Ard Biesheuvel wrote: > On Fri, 10 Jul 2020 at 13:17, Bartlomiej Zolnierkiewicz > wrote: >> >> >> [ added EFI Maintainer & ML to Cc: ] >> >> Hi, >> >> On 7/9/20 11:17 AM, Jürgen Groß wrote: >>> On 28.06.20 10:50, Jürgen Groß wrote: >>>> Ping? >>>> >>>> On 10.06.20 16:10, Juergen Gross wrote: >>>>> efifb_probe() will issue an error message in case the kernel is booted >>>>> as Xen dom0 from UEFI as EFI_MEMMAP won't be set in this case. Avoid >>>>> that message by calling efi_mem_desc_lookup() only if EFI_PARAVIRT >>>>> isn't set. >>>>> > > Why not test for EFI_MEMMAP instead of EFI_BOOT? Honestly I'm not sure EFI_BOOT is always set in that case. If you tell me it is fine to just replace the test to check for EFI_MEMMAP I'm fine to modify my patch. Juergen