[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/5] efi: only set a console mode if the current one is invalid


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 31 Mar 2023 08:51:46 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=P6trnKtko8ZbHqiRaYgoPgjyTwZDnxJcvnhRnJ+ZYDA=; b=HSauT+VIjF7Rm3Vs5nR/a7Ls8mhyb2pH9cMxkJnsjxs1xr4JWw9EkMH2JagFVt306pt6j3hUz7p/WVj7MC2B+jTKZi0F0JomPq+pZQSA1VKhyrGPPTUkONQuKVbodIUHuWFSuHeWAplWXxsa6BxOjiZ6g+rJ5H3XDuYbzWesFJH00cdsjdWPDO+vGXzGgPz5Kcjv6vOrQyvwM5MqP4nv8E6RMQynM1gevDzx3QBerKz6rDMN4bwDxwyK+kcdQuMoJ8JLB1XAwB+AFRRflb6DZlcxag/lvKD2fv5xIVZx6blxMejaUL3bfOWpl17jHuA2+bR1UXD1T8zNRcQ1gzGcFA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LJQTRMiPuYZhCH1kh9+ACJ/VZmDGliGJT+URu9x9w3FcxyPxggTiXHWIVi+IyFDycxG3R0aA6sjOdNZobw3FKbS+tmzGfhw7J7be+dAub4cxaX9LipkoAis02E2X/fhilt5nm0VcxjNGSc5U7TKRpFlC7/9ctQbO1LaAwKr4Bgp+zf0ciyuFh0klDnbCg2etUZfoffp+bCi3SbUOYs488KMmWAvYfggKcgOEk08e7Z88UwCjovdASEP00TtWZOyleIKHoDOQ043szuh6IPomRFomdpsfuyg3tcEJOY3tskqrzlh2Y9xXFDI3kYRX8pME7tAljS/TAbqlXx57nQ0pvA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: marmarek@xxxxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 31 Mar 2023 06:52:19 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 30.03.2023 18:17, Roger Pau Monné wrote:
> On Thu, Mar 30, 2023 at 06:07:57PM +0200, Jan Beulich wrote:
>> On 30.03.2023 17:44, Roger Pau Monné wrote:
>>> I guess I'm slightly confused by the usage of both GOP and StdOut, I
>>> would assume if we have a gop, and can correctly initialize it there's
>>> no need to fiddle with StdOut also?
>>
>> Setting the GOP mode is done last before exiting boot services; this
>> may be a graphics mode which doesn't support a text output protocol.
> 
> Right, that's what I was missing.  I assumed that all modes available
> in GOP would be compatible with the ConOut mode.
> 
> Would you be OK with leaving StdOut as-is when booted from multiboot2,
> or there's a chance of things not being properly setup?

On modern UEFI it may be unlikely, but I think it's not impossible (see
below).

> IMO it's not very friendly to change the StdOut mode if not explicitly
> requested, as in the multiboot2 case that gets setup by the
> bootloader.

May get set up, that is. If it was set up, then yes, we probably should
leave it alone unless told to use another mode. I.e. no vga= or
vga=current should minimally result in no further mode change. Aiui we
can't easily honor vga=gfx-... in that case, so leaving the mode alone
there may also be better than trying to guess a mode. The only time
where I would think it would be nice to switch by default even in the
xen.gz case is if the boot loader handed us the screen in some text
mode.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.