[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/9] xen/x86: allow "earlyprintk=xen" to work for PV Dom0
- To: Juergen Gross <jgross@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 30 Sep 2021 14:18:12 +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; bh=A3Nsesxu7Ouso1Ynp59Ie6SiuUu3Q+vNIHx5xr527BQ=; b=GLoVLo8QPW2jvkBquzDkXsxTG0jIbMQKhu4ZPLYcjZlbKJwQo3s8oUVND7LxAMD/2pnD3xRlvLN3Qpt+khTVBZcATAytNEYO5L5bI7BOoBReD+KvtDIBWW7MRl/IdZul4YJ0ytu9oL1iVvH/3Z4el1spYnUmea21tjhYjgFsFs3mXpZXqYFcilZNzxestkgpcPiS1MGZJrI/B9cEOpFuAqUz9Pb8LOmaH7HFbovpveIctIm+TkZlrs9ROKxC5WoVV3GFJFLbNsYbXRUIRFY1GMqjFFL24mQzYs474yxYZcPw9D5dPEtF2UBfwS4xy6xMzh14Sa8iUCOMtcmtclo/LQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emqtrX2XYYweu4RAZ2JlfUU8hXYjS/+fjwksUN1LdgDie0U7zsqLPztPfslPqs+/kkNoOxFI9o+cbzvm5egeQSvXgPghLYVc+XvcE0VgHOjpQdEiG69QQyWbJPMq0Nmfk/jUSEPHc7UWpkQbtngCFI93usCpbbwV4/A0jqsQXTVB7nnn2bViBvnTFAhDUlu6mhWGHuj+Q+uAI3P/5eEyD6sNg3IrTuq723oYSy3CSp0psw/ALwkIOSUK7s93E+7icI4XQAg3nory0xgdmb0hGrnId4INNMNYqpoMDne9g5d/i2XlDHmbeq2IQ/ODTFh3l5efblWTeJ9Ad++B08GhLA==
- Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 30 Sep 2021 12:18:21 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
With preferred consoles "tty" and "hvc" announced as preferred,
registering "xenboot" early won't result in use of the console: It also
needs to be registered as preferred. Generalize this from being DomU-
only so far.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
---
v2: Re-base.
--- a/arch/x86/xen/enlighten_pv.c
+++ b/arch/x86/xen/enlighten_pv.c
@@ -1348,7 +1348,6 @@ asmlinkage __visible void __init xen_sta
boot_params.hdr.hardware_subarch = X86_SUBARCH_XEN;
if (!xen_initial_domain()) {
- add_preferred_console("xenboot", 0, NULL);
if (pci_xen)
x86_init.pci.arch_init = pci_xen_init;
x86_platform.set_legacy_features =
@@ -1393,6 +1392,7 @@ asmlinkage __visible void __init xen_sta
#endif
}
+ add_preferred_console("xenboot", 0, NULL);
if (!boot_params.screen_info.orig_video_isVGA)
add_preferred_console("tty", 0, NULL);
add_preferred_console("hvc", 0, NULL);
|