Received: by 10.223.185.116 with SMTP id b49csp4102046wrg; Mon, 26 Feb 2018 11:08:59 -0800 (PST) X-Google-Smtp-Source: AH8x226ct4ikaxiRkX4vDMuFPBGkz4ermgbJ8GGLFZRXfnJx/cEXlooJwRS6weTNJR0z0Kjs73aW X-Received: by 2002:a17:902:9009:: with SMTP id a9-v6mr11329802plp.272.1519672139070; Mon, 26 Feb 2018 11:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519672139; cv=none; d=google.com; s=arc-20160816; b=pq0g63B60JmCIGCsVaH1mmRtUAl1xP8oU5Achzd1+5j2h+SdY6N3C5UsyhR8fpdL9s AKFMUFi/eTkdGhHsJcyK7asJ3s5AaCf7FHAlkJRK4HSPb/vfA0EHmtucLx1JO8iGlywr aHt8JfdLvnzVEZ1/Ve1KaSTt8xsSpmJqZuGEFSv04s4/FfsZG9ZFzerC9QXEM6oIu7ir w4WkKMb9z4HDHyusZoOR25xnNwjIeJrRqdxVLQgMA/ZxAi3WRFqZAEB9AUliO40tb1KF rfEy356KkXW9x2MTMTL3dqUa0izJvLBjyyE3Mzcf7okRnG726jLr2qMPXgrwU+WQOM4o 9T/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=18ZTR/9xyeLvN2JF5KEBlNr1HejHEPNyj0ShQe2A7ck=; b=Dn16atTD04LPvlICDvSueEGaGf16Bk4HJlHUuW6SONfUl21olb6enuRJXs9kPWheY4 ekLM4BT261K0BrR8zPw7GOCNSjXEB+/vfq84Vtnt4kqwoTd8JGSztkeSzQXcpErmd5aK THcGA74cauNnO2R83A6xkNvDpQ5COQQbEk70tzBDp3tSsavkeDYZdHc/99MX6dLaPqsG /sg+YRyUjN1MlU9dFk4+WzEnJpOhZfRsJkkWgYiKubKdDMc5Zb7j0uLQAPWNbB2PkmBG t9mv0ngJUMm7LJFND8OD5TzujbkVrHzUalVNRcsyV/LDf8kO+2zyDzg7viSBclCR8svc yabg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Lambz6g3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si7139041pfa.116.2018.02.26.11.08.42; Mon, 26 Feb 2018 11:08:59 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Lambz6g3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751784AbeBZTGq (ORCPT + 99 others); Mon, 26 Feb 2018 14:06:46 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:57222 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbeBZTGp (ORCPT ); Mon, 26 Feb 2018 14:06:45 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1QJ4RkN028656; Mon, 26 Feb 2018 19:06:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=18ZTR/9xyeLvN2JF5KEBlNr1HejHEPNyj0ShQe2A7ck=; b=Lambz6g3tvbSc9DHjgA9m+xE1lgUBOnKANgsCqU4JBJCV2cv4sbhc8YNCYSt4N4exNMk XndMzUzdXL2Wm58TD21/Vb+gkiGj9Zx3wY9XLF7uUOyaNLnb/ebmHsgAjXLfjmgqGgJH 5KnbqvpyeUKaSSahC8H8DDtEx1lDgBvgkjgIrN9WN/na3Hth3Xt/eRwpGfRWJBUNxOs3 U/1nAFxgKKya65lxCq7OkK9GmqBcQKY5Rf2csE3exZD1XCVye/E1WMsHyAzqABClrbB8 2n2YxFRWyriWkz7RfVdhYHAUFPCCqs4capUGmgrrz83+1YYfVneckAlufzHquWD2CBiq tQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2gcr2w01ar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Feb 2018 19:06:40 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w1QJ1ckH000447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Feb 2018 19:01:39 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w1QJ1cnX009553; Mon, 26 Feb 2018 19:01:38 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 Feb 2018 11:01:38 -0800 Subject: Re: [PATCH] xen: use hvc console for dom0 To: Juergen Gross , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: jbeulich@suse.com References: <20180226110822.13787-1-jgross@suse.com> From: Boris Ostrovsky Message-ID: <16e21e9e-35d5-81f2-0f90-df5f8ac72446@oracle.com> Date: Mon, 26 Feb 2018 14:02:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180226110822.13787-1-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8816 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802260244 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/26/2018 06:08 AM, Juergen Gross wrote: > 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); > + Won't this prevent dom0 output from showing up on vga console by default? -boris > #ifdef CONFIG_PCI > /* PCI BIOS service won't work from a PV guest. */ > pci_probe &= ~PCI_PROBE_BIOS;