Received: by 10.223.185.116 with SMTP id b49csp8778945wrg; Fri, 2 Mar 2018 07:50:15 -0800 (PST) X-Google-Smtp-Source: AG47ELvrrfANvityz/neVOL4bZHoGj4cPLhL7HyimxtsPvERIh8kma/uKzS1AQOsw15uepdR1VKF X-Received: by 10.99.100.196 with SMTP id y187mr4918183pgb.362.1520005815299; Fri, 02 Mar 2018 07:50:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520005815; cv=none; d=google.com; s=arc-20160816; b=W/yZNSI2fziW9qdfGOjO6pR1hPRvo9ypd99v/td9Yq7phg7WAZ6rSqP+39Vq8u1lpE WmRuCxa3QfTVYzESiLaGpewOI1BmOUKZSMpPDyqKeKIAHBrFkB8gcs89VwXiPedrT5/v BFKvkfsEW4cvL3zZSZY/o19CZXiu1zo9wIQyxl+/2Y1r+Kr52lVgTfnd0KVzTWHCOSJB hflm88yp6Zzz9r4lkIZUJ5lQkQfpslPUxSnu+8CD4SrRNpRMpsIzxTah8nU7Uuk2UN3r AB+AA1pk1GR/qzkbRpCGQ4q4wDf4KQ1qr4UUT2vVwDI0ijyyNX7e9linJIa2+pfv7oNv bMDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=htSXqc83gsihxnyIGNSkgh+uzj/OkMvAoS8P/8PrKV4=; b=q12+4J3c4tM7VQI0tGdEhAHqnmjO8pvQx9q1kyAk9xyVZ3l7+KExwkSVXpvJaM2Xog 2mUdvh8etknlqxDsII3xwScCVo9ERO/cFkFXwbYXJGhkn9Z2szDPn0yWH4jane5XllxY VN7fB7f7a4+etIWWjbyZ28PpqOdknwgQeJ7iuBZQbd5Yc5ldVN6ODAXMT23qJOnS8oQw iV1IHBT1nGDxS8RZotkfcE+DJRgEySlj1foOMMfP7UMd35AG8XyQtQlKYtBAGwkIEc+H UFoFb0Sg7Rxg2/zaEPeu9VkowZ1VV2f+RPdJftwtmyfGysctfQ4AQ0aRxR2hgwkn3SLn fkAw== 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 u1si4162333pgq.194.2018.03.02.07.50.00; Fri, 02 Mar 2018 07:50:15 -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 S1425385AbeCBOVd (ORCPT + 99 others); Fri, 2 Mar 2018 09:21:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:57583 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425309AbeCBOVc (ORCPT ); Fri, 2 Mar 2018 09:21:32 -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 6308EBD01; Fri, 2 Mar 2018 14:21:31 +0000 (UTC) Subject: Re: [Xen-devel] [PATCH] xen: use hvc console for dom0 To: Julien Grall , Stefano Stabellini Cc: nd@arm.com, Andrii Anisov , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, jbeulich@suse.com References: <20180226110822.13787-1-jgross@suse.com> <0d8bdda5-faef-41da-344a-644b5c3d6006@epam.com> <58e94cc9-9b09-d6b7-3122-fb4c83e97926@suse.com> <19afb9f9-a845-e627-8f78-d1fdb349c6bd@arm.com> From: Juergen Gross Message-ID: <73110605-e3b9-92d2-cc78-56ff8d13b9ea@suse.com> Date: Fri, 2 Mar 2018 15:21:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <19afb9f9-a845-e627-8f78-d1fdb349c6bd@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/02/18 21:09, Julien Grall wrote: > Hi, > > On 27/02/2018 20:03, Stefano Stabellini wrote: >> 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. > > Well, that's exactly the goal of add_preferred_console. It will use hvc0 > unless specified otherwise by the user on the command line. I suggest someone who can test it should post a patch for ARM. Juergen