Received: by 10.223.185.116 with SMTP id b49csp5368556wrg; Tue, 27 Feb 2018 12:04:30 -0800 (PST) X-Google-Smtp-Source: AG47ELvfEt2dDIPjZWCoPfmtbeUC/jVVWSR4K4Azn1aKwh9XeegNOrNvtCP0HqWN54DFsAcTsA3w X-Received: by 2002:a17:902:9a88:: with SMTP id w8-v6mr951007plp.448.1519761870664; Tue, 27 Feb 2018 12:04:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519761870; cv=none; d=google.com; s=arc-20160816; b=OE+XowEHrX3ZK0Ci8wGi+zSH7+tGaYpz0mHNbW52BtzjylkD4/0w2vtIKisQPMqxNP LVPBUgmK8LZv6uYjINq/TLN2Lka8gJtuLzjFPvFp9Mj9aXkQld7o7Hz1wDS2NULl79Vh uCMzYjgegiV+VossCY0szKxp+PE4nrfy5YNvR3/hwq95kbxzqt4JPlYViTY03S15aiXb cqC6/O4/11RDmJLCu9zN1i8lbEdpxNOaVRAhFSZl5izI+PDQb6bB0fcob8RHQRHAUSZ5 SoWZzk0dsDxYePwmOImSC6N2VCd8R9xTTdZcAiLEB3tklhhxp4lHAc9EnjV+BJwu2wax 29Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=uN9kBJdyslJHPc+znKE16+8dMFqv6q5hBpVhyr/Pz+k=; b=C2KNeTgCmtBAgA5+kiDr5BogVdpeYJzeeS9OrSfoeA6w9cz0ue7ZhuAPlAj+A9OXIU yaU5wgeEP87l7+hDjmKXM91kOnwnM0lEpvRqInfpPzjaaoPGK60wHsAINeDOFXXD8+CJ H0UR0hGFR1gSqR+7fyV2nVGoHgT3jJBG+NMkkk+FrE4Y0a5L8qtpscjdc9W+g4g2hOf+ FYuuGO9sIbuES04HdYTs/Xb1D6FabFASXRfmGLTL14jOhF/8UD581W9FaVlIeLQWbaqB anwmldaQnh+ipmFrkMtCiAjBs1ruDUbpVokdjg+SVnD8EUiPPXRzWtBe0NK4SmFZrZ66 wUaQ== 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 g6si7382051pgr.233.2018.02.27.12.04.16; Tue, 27 Feb 2018 12:04:30 -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 S1751962AbeB0UDK (ORCPT + 99 others); Tue, 27 Feb 2018 15:03:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:60608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751716AbeB0UDJ (ORCPT ); Tue, 27 Feb 2018 15:03:09 -0500 Received: from [10.135.48.227] (unknown [12.248.85.146]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D9A1820685; Tue, 27 Feb 2018 20:03:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9A1820685 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sstabellini@kernel.org Date: Tue, 27 Feb 2018 12:03:08 -0800 (PST) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-X260 To: Julien Grall cc: Juergen Gross , Andrii Anisov , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, Stefano Stabellini , jbeulich@suse.com Subject: Re: [Xen-devel] [PATCH] xen: use hvc console for dom0 In-Reply-To: Message-ID: References: <20180226110822.13787-1-jgross@suse.com> <0d8bdda5-faef-41da-344a-644b5c3d6006@epam.com> <58e94cc9-9b09-d6b7-3122-fb4c83e97926@suse.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1944649226-1519761789=:4239" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1944649226-1519761789=:4239 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Tue, 27 Feb 2018, Julien Grall wrote: > Hi, > > On 26/02/18 12:32, Juergen Gross wrote: > > On 26/02/18 13:06, Andrii Anisov wrote: > > > Hello Juergen, > > > > > > > > > On 26.02.18 13:08, 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 > > > Is this something x86 specific? Could it be a generic approach? > > > > In case ARM wants something similar I guess the test for > > xen_initial_domain() should be dropped in xen_early_init(). > I am pretty sure we discussed to remove !xen_initial_domain() for Arm in the > past. But I don't remember why the patch was not sent to remove it. > > Anyway, I guess this should be fine to have hvc as a preferred console for the > initial domain as well. Usually, Dom0 has access to several physical UARTs and/or VGA, making this patch less obviously desirable. I think that for Dom0 the best behavior would be to add "hvc0" as first console rather than last console, so that if the user specified something else, this call won't interfere with it. --8323329-1944649226-1519761789=:4239--