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

Re: [PATCH v2 2/3] multiboot2: parse console= and vga= options when setting GOP mode


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 31 May 2023 11:47:59 +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=yUtLSOGwQiXhd9W3H1x3+onUMYzxJI0bwxTp9FPObkI=; b=cYhEsI/kk0OdRcWzHifQyot3oTTpkoFIxf6zJDMScAa+QGfr80VWXrcrCUOlHIUIOS1y30Joo8bMjrCvLBD+3U7dUDjbkdEajkXkXQOhMvTq8/6nbRTp973p0pMzSSWcjEQ5cXbpAsCv8ZCb/u2l7+I4XLOJ25R82py1qxNS5boCBrUYEF3zDXYNjEKHcLNu8Saxtbmayr2hAz1thm11UkBJmKFwB1yBG1Gtn6/W6j1PV6hQy+YGNkva/tw/zrdt0I3sqKle1eY9gBaHtXV9sPU0vFRAsne5Ugz/DHCLJbXOJqni/XQrBh53jQiaj+m9b/EQZfJmQRBHa3zW7YkWYA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yci7bKCQWmAoF6zFdykAacaOXHxlUcltk6UFcu2SZo52yVSFbigVgD+kxxbK4W4jg5i7xuISiOpv3Oj1MGUz2ZOk+sumpqRQYEy8Uz3k7MuK9M9BtA6rrP3iSXy/LVJY2UFUSo9qj5MTleEf058ilBPAm+CvJfvXyfB2/Vb+BzQKHFXD71z+6xgfbkT9xHbm1VYrYcVugGbpYKQ0enNsZLmcidJyUCvDbfSOfFFqOhj/pDyHm0egiQeqQFFoN+6OJkbCVKOdVjhGSoqNOu/AvK0+ML0BURUQ2ycpfwOapq9GNMPvuAQ5pMmlSdq2Vsu7xdfBu98SmBq/eE07RRfeEw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 31 May 2023 09:48:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 31.05.2023 11:30, Roger Pau Monné wrote:
> On Wed, May 31, 2023 at 11:15:44AM +0200, Jan Beulich wrote:
>> On 30.05.2023 18:02, Roger Pau Monné wrote:
>>> On Wed, Apr 05, 2023 at 12:15:26PM +0200, Jan Beulich wrote:
>>>> On 31.03.2023 11:59, Roger Pau Monne wrote:
>>>>> Only set the GOP mode if vga is selected in the console option,
>>>>
>>>> This particular aspect of the behavior is inconsistent with legacy
>>>> boot behavior: There "vga=" isn't qualified by what "console=" has.
>>>
>>> Hm, I find this very odd, why would we fiddle with the VGA (or the GOP
>>> here) if we don't intend to use it for output?
>>
>> Because we also need to arrange for what Dom0 possibly wants to use.
>> It has no way of setting the mode the low-level (BIOS or EFI) way.
> 
> I understand this might be needed when Xen is booted as an EFI
> application, but otherwise it should be the bootloader that takes care
> of setting such mode, as (most?) OSes are normally loaded with boot
> services already exited.

The bootloader doing this is a quirk imo. In the Linux case this implies
knowing the inner structure of the binary to be booted, to communicate
the necessary information, plus peeking into the kernel's command line.

Furthermore I wasn't referring to the EFI-with-bootloader case, but the
legacy BIOS one plus the (mentioned by you) EFI-application one. Even
the MB2 protocol allows the bootloader to hand over with boot services
not exited yet, iirc, so even in that case Xen would be in the position
of using boot service functions (from efi_multiboot2()).

Jan



 


Rackspace

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