Received: by 10.223.185.116 with SMTP id b49csp3616456wrg; Mon, 26 Feb 2018 03:11:05 -0800 (PST) X-Google-Smtp-Source: AH8x225q+B3WS0YNUNNvAyY3yfIMmDClypMDBC7TEzjmhrqzlgxtcm0OP3CO7TdIWjULp1tRGwL6 X-Received: by 10.99.116.28 with SMTP id p28mr8181921pgc.306.1519643465248; Mon, 26 Feb 2018 03:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519643465; cv=none; d=google.com; s=arc-20160816; b=vwufUYDZfStSHuVt36g789OlAnsIcbSgGKPpvluETVPUGnCTamm1zUDsEQFoeu7Ayu tBCU3Vkgx6Z/sZ+dQm09+P9GcMrysMbRa+X3fxwq4HitmBIt6nyiqaB88b4scwpdeA74 lgJSgg2E7uHLoYSf77I0+khbdNDNPl6ALmpsAOYppmVVf6hnuIXqydKmNfRz38q/zuXy isfYrkz8QdOHWQw+WYR88YOUsp5FsA0+7CepzaBv4bgV+ESFBsLCKDGiNMwaJ157AjgJ 12TYwIHdLKTsHHk27P39O8zoKqoUqTzoiUPi0hUH0Qw0c0J7f/BW8ntiVGDrDIc0siUj revQ== 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=xOFopDE8eed02AZoRRB0M3bjlPyr981RKLcXH2HrbZw=; b=mvcWQLdJjmUyVYdl2kGMmotiwbP/thVcHOG/iJqacn548xJyMrsjMPs7vg3PAZWtPp X0EHuUnx+JBSwjX3LZ7OdlkVGahWISmaAqUz15VTMfR27cyooA8ENE9+7Z3Sq9A8W5Ev 7LMSMv/aYI7Jmr0bamD0wif63m1DHv+7o7xuKO6qRO/1qI2CvQeJdbQ0Bb9HiHJ1fJPx YayN4CI4ofs8FYrG2c/D5QX08wOrQEQYFJQi69uBL8sOJ60mIRZHUCk3NKKHTZemakJy c9EGbnzjlQU7pG0TZuNsCXHaKqqucwlKGCrAcWELjh1j11StenQGiGx8GhGyxbpzjSVU t36g== 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 v187si6598473pfv.173.2018.02.26.03.10.51; Mon, 26 Feb 2018 03:11:05 -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 S1752619AbeBZLI1 (ORCPT + 99 others); Mon, 26 Feb 2018 06:08:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:59392 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752343AbeBZLIZ (ORCPT ); Mon, 26 Feb 2018 06:08:25 -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 1FA06ABB2; Mon, 26 Feb 2018 11:08:24 +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] xen: use hvc console for dom0 Date: Mon, 26 Feb 2018 12:08:22 +0100 Message-Id: <20180226110822.13787-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 hvc console is added as a preferred console for pv domUs only. As this requires a boot parameter for getting dom0 messages per default add it for dom0, too. Signed-off-by: Juergen Gross --- arch/x86/xen/enlighten_pv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c index c047f42552e1..d27740a80c5e 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -1377,7 +1377,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 +1409,9 @@ asmlinkage __visible void __init xen_start_kernel(void) xen_boot_params_init_edd(); } + + 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