Received: by 10.223.185.116 with SMTP id b49csp4801966wrg; Tue, 27 Feb 2018 02:55:48 -0800 (PST) X-Google-Smtp-Source: AH8x227sPZEQS5vnjuX5xWzo2XuLAR4c+wXAhBxscg4cQQ7dS2Ul+fXlgsBX9gaqcgqFf5WY8DiH X-Received: by 10.99.117.10 with SMTP id q10mr10974869pgc.423.1519728948388; Tue, 27 Feb 2018 02:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519728948; cv=none; d=google.com; s=arc-20160816; b=Vyo78Ph7DZvepARmQOFBGQ06Y/AtVHJkVEenhOaEOsmZHpyiwOaNe51xd9N7uOflVL biAL6hSZibpatM3uaU/KgsbhzWnQzluAhnYwfsmEScFZp0+gHo5sW3QS/dckEYT/R0+o eC7KkFcWJwhI5fwWyFyvvPnfFncfKItw4HqkECqP/0y60WobwfJUZ8HF7tZYcKaN0orC qyhl7Fxu1miAbgpuOS5qtVEEog+T47m7lW32JC+njHqAy2P/6BhySumP8jIaOOcEXvIw HnGkPgsyFEp0jbGh4LTgLvlmRWnDHUE2R9QKYdUPuIkI0q20vRPNbQ4ultq6I4NNBU9L 0zwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bWs1K74dKy/zc9qYWZN30hxNkvVHl5g+iapSJuuHK1g=; b=rJbAMLPUKgoi1aARf0Mhyv2iICvnDiOpiAQypl+KmaZG79Ib9RygTdBNxjSrcqr3w/ qL+p9IlEDnVqLYTbfUf4VGzsjCmSCIl5Pxgj8grfyzQCwftHzt0MH8Kt50hkO4g00nt2 9LUV9uzUuOQLEX4zNHtK6+bEja5qxwsyEXQ0mW5jNv+NZqWNfkkxyBV40iaLEwB4A+Un CGhUtygcMy0peP2Yed586HTb4A1J5LIRWMaEe+yy7BEt1V1gEuuc4ZZd2XWSePkD/L4C UDXXr7y/QoTT2BrSMPlFqUsCUS7caUo4qDAWGzuJRjQWpNwKu+Tf46ju6JcnaHFJjzs8 Ea7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k14si6742958pgt.32.2018.02.27.02.55.32; Tue, 27 Feb 2018 02:55:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752646AbeB0KT2 (ORCPT + 99 others); Tue, 27 Feb 2018 05:19:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:39035 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbeB0KT1 (ORCPT ); Tue, 27 Feb 2018 05:19:27 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 967ABACE5; Tue, 27 Feb 2018 10:19:25 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: boris.ostrovsky@oracle.com, jbeulich@suse.com, Juergen Gross Subject: [PATCH v2] x86/xen: add tty0 and hvc0 as preferred consoles for dom0 Date: Tue, 27 Feb 2018 11:19:22 +0100 Message-Id: <20180227101922.15701-1-jgross@suse.com> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Today the tty0 and hvc0 consoles are added as a preferred consoles for pv domUs only. As this requires a boot parameter for getting dom0 messages per default, add them for dom0, too. Signed-off-by: Juergen Gross --- arch/x86/xen/enlighten_pv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c index c047f42552e1..3c2c2530737e 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -1376,8 +1376,6 @@ asmlinkage __visible void __init xen_start_kernel(void) if (!xen_initial_domain()) { add_preferred_console("xenboot", 0, NULL); - add_preferred_console("tty", 0, NULL); - add_preferred_console("hvc", 0, NULL); if (pci_xen) x86_init.pci.arch_init = pci_xen_init; } else { @@ -1410,6 +1408,10 @@ asmlinkage __visible void __init xen_start_kernel(void) xen_boot_params_init_edd(); } + + add_preferred_console("tty", 0, NULL); + add_preferred_console("hvc", 0, NULL); + #ifdef CONFIG_PCI /* PCI BIOS service won't work from a PV guest. */ pci_probe &= ~PCI_PROBE_BIOS; -- 2.13.6