Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp265864pxb; Thu, 30 Sep 2021 05:44:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwViOLhrwjvmzkceh8K3I4ZMjAjBFTBEEosYEfc01O61ndWe/h8w+SRONEBng3RBpeXjFyq X-Received: by 2002:a17:90b:4f8a:: with SMTP id qe10mr12919975pjb.5.1633005899278; Thu, 30 Sep 2021 05:44:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633005899; cv=pass; d=google.com; s=arc-20160816; b=WQ/cmxEHzLceAB6LT6KUNdm6ZpZ7AQQxuAYMKascgrbT8AX768mETmAQ8PRxv7kjtC CTliyQVSU//0Np1DWSSqvD7Ladv5X3F4AWII3PZ/C4JgdWBl8vJBoXLRRrU0g46jcKEN pk1wq9RnAzBHP0+rj5vaPigBqL0ONgyvGtvRepQ/W5V+hTBzDbV9gOrIKg8JUjhWkXlk Udkcpk4/nKSr6HcX4OpU4FeK1WM7CY0zPKqge1kkQ3wRiIL2YM6ZmfrgCya9zTUV4zNa 9i82LKUgI4Wu6aGGWnmCRguZJx4x0GCfKReTxtT//rzl+3VwsW3ilG28ilzN+Pj50YGw 4nIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:references :cc:to:from:subject:dkim-signature; bh=pFp9W7xkMIq9TQ4/Odb7qXzfO9m2/t23Esal7KykW2c=; b=NlCK4LkIYBe0dOZICDEWbP6tYyz/aGFOlRDWmiIoslwAXIt6/kA8WY1KGfMtaX02AL CTD02mnPirxf69G7+/Vr1JXegZUncGMf2WVx7ZeCXchvQ49hejMK0O/xfqz12bblSGtY AVV8wIdj2lmEuEKgSlRwVWJ+6Ak7EfqU76AD4K3Wx3ttJ5FM1lHeATAHsf4LRq7/bycb 4JBkkWV85bktozSwcHkIjvjOyJjO/rmW5mRsCPhPQ1V+Z4s1bizMpktXEvmLUSQtFhvo s8To/BRCOBz/qay2zTXM0cP53CuETY/NvTbUC2ofJyuIYmOfUYvtnOyRF1wcllZ4vMtK fpmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=KE0DKLHZ; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si3974618plw.11.2021.09.30.05.44.43; Thu, 30 Sep 2021 05:44:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=KE0DKLHZ; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349504AbhI3MUe (ORCPT + 99 others); Thu, 30 Sep 2021 08:20:34 -0400 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]:34797 "EHLO de-smtp-delivery-102.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349385AbhI3MUc (ORCPT ); Thu, 30 Sep 2021 08:20:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1633004329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pFp9W7xkMIq9TQ4/Odb7qXzfO9m2/t23Esal7KykW2c=; b=KE0DKLHZoiPlgh8lz2oYwgwt5wdMYNb3Bh8I542iMcgUu6ZxChZ5ciJBmBETRarejm95bj 6NG3RhtYz8mW0gS4wAJJ7gN/IYV/N9uc4sfcGlCFSF0SFfL86BNb3mQZD6n3fkQVQD0Q/f qoixc6p/0KKgWnFmRerxrAKxjkwORiY= Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02lp2058.outbound.protection.outlook.com [104.47.4.58]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-12-liUTvDdlOv-a8xFeYzXRmA-1; Thu, 30 Sep 2021 14:18:48 +0200 X-MC-Unique: liUTvDdlOv-a8xFeYzXRmA-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CnWQDZXIyZAwX094LDOKe//dgZ79cM/1DWCNUHXz3xRvHz0Nimt5F+6hd38/7uVZpIRjyBI/Ilkf3c7gISrU37COKJPvRdAivsK/S7KcgMRjP0vP4AyQeptdey44vURUa7lXe1G5jQPNmHl7oisBu+7urJRehTtmgUYWWTm6q+7ZMVv2XHT3vPUly1fsG8Ma/0w3VlKxXyrMT2Cw+7FkO6OQ7Mx5vgh1IhndPTAj9UJOwWSvdRMMJPKgvk3yv0+v4DKYoYWaQ0KOopSUX12thU64FNhgqE1yvdxoMew7vfpZXd8h2NkHt7K2Ja2vNn/YkMdtOMWGjLWccBGRRjflVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pFp9W7xkMIq9TQ4/Odb7qXzfO9m2/t23Esal7KykW2c=; b=nhoclBXVO2GNXKVr8A7s6Q3vjD0KoUIFA2WstyrXNlVZY+yvpPUDTixno7Prgs0zOY4MxGrF+juPakpC80QCoW2f0nfUHr+2+mmnmxZPtuCx1GNdzhOpsNBdKuoPFhblqI/BlaGximuBk8g+OB+OREZ1KQ4I7WMmf8iKaz86ndyknMVOLSgZaeeNk+sB//8Ktl0hh5oHoiaB5TAigIO1tbx8jtn4gYh1HwPZaBNfM3GEbrS8KBWZdfTEczo4InBONcBnYm09+HpTr7gq5pN8RiNnuOeQVNsXmzK7milAqtTvDutm+jVSxPt5scAZf/iIt0y6Pl4DrcYz+fDnhPiKyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: lists.ozlabs.org; dkim=none (message not signed) header.d=none;lists.ozlabs.org; dmarc=none action=none header.from=suse.com; Received: from VI1PR04MB5600.eurprd04.prod.outlook.com (2603:10a6:803:e7::16) by VE1PR04MB6479.eurprd04.prod.outlook.com (2603:10a6:803:11c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.18; Thu, 30 Sep 2021 12:18:47 +0000 Received: from VI1PR04MB5600.eurprd04.prod.outlook.com ([fe80::4d37:ec64:4e90:b16b]) by VI1PR04MB5600.eurprd04.prod.outlook.com ([fe80::4d37:ec64:4e90:b16b%7]) with mapi id 15.20.4566.014; Thu, 30 Sep 2021 12:18:47 +0000 Subject: [PATCH v2 5/9] xen/x86: make "earlyprintk=xen" work for HVM/PVH DomU From: Jan Beulich To: Juergen Gross , Boris Ostrovsky Cc: Stefano Stabellini , lkml , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , "xen-devel@lists.xenproject.org" , "linuxppc-dev@lists.ozlabs.org" References: <9a26d4ff-80a1-e0c1-f528-31a8568d41f7@suse.com> Message-ID: <3d212583-700e-8b2d-727a-845ef33ac265@suse.com> Date: Thu, 30 Sep 2021 14:18:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <9a26d4ff-80a1-e0c1-f528-31a8568d41f7@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM6P195CA0086.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:86::27) To VI1PR04MB5600.eurprd04.prod.outlook.com (2603:10a6:803:e7::16) MIME-Version: 1.0 Received: from [10.156.60.236] (37.24.206.209) by AM6P195CA0086.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:86::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Thu, 30 Sep 2021 12:18:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f94770a-0387-4e6f-a28c-08d9840c7450 X-MS-TrafficTypeDiagnostic: VE1PR04MB6479: X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lnl0PB5aWWgYLd8eDlWI1/6kXmPf3zO/JHvihmY1pyTPv7XBWBdHERXU2tYvVz05uxSbO36SGz7RlBgMyT0epVBMilxPvEc7Cpoq18fkHqcRTVb9Db9Ny8EVLbickedVCf9KhG/Aamv+wurfhUeQfiCf4mVPAam3UcJ6Wxkm84cZRLNudL1QG+MPSE+9rv6RqGtfNTBCZmVP5roOGWyGHcVytQQfmWZfNKCozU8N9+MnGJXjp4+pQF3ubHNvIXxe2bR/b3wVp2nfrmv6SkdlShpgM0pMeo83eahG5AAZbKF0JE66Zum+TXC8y9YsCdjFCvuSfA0L2zz8N0zYuWff72Qs7UPKfhILP0a/Ifs0fHUdYDVE6i9qNHRWsS3HGzvGb68DyYhk+2Z1UZztF6DUq1xrega8YE1xHt3fqy20B2HuYRJtZDg54fBhAK1N5fZGoKTIYXPXyXMYv7Xtfc1RbZYO2PEJPAz9Vr6hKM8fBxrJ9SgaB60fYK6S8ZwE4NgYEze4JKxxBxDpr1jXislKE/mjhbwFf+pVkuSVnbjovj9/ZMVn8jJBgWaVgOAMsKFF6b8jQpjtH3bUbcWMx2eCgN1jtaH5Mk5Och70uDMF1kOgncQE4VV8/ddSsfDyuvqO6iRO48iCgga8Xop4XQ796eKl2s9qey4g8QVXSzGZ11x3X0QhdkCdpBhr39v5+/XRElKmNDdegYcm3e7qI4ONpgQbvbviB6wp/1DFxTJfsPMOwkSLC8uIyYBKhtqTNRC2 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5600.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(36756003)(2906002)(4744005)(86362001)(26005)(16576012)(508600001)(316002)(956004)(186003)(6486002)(8936002)(31686004)(54906003)(4326008)(83380400001)(110136005)(38100700002)(2616005)(66946007)(31696002)(66476007)(66556008)(5660300002)(8676002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MkEwQllJVlN3bXNTRm5hWElnYS8wVE9KMFYwNXR1UmtpczdSS2VsUTFWYVA4?= =?utf-8?B?di9PSG44OWlrK0gvbDNteHBXV0ozWmtzcXh0L2NGYThTUWpLOG0rOUxCYUNO?= =?utf-8?B?SlNjRFZiRkVNVUJHdGgxd3dwWG1LQklCYlgwQlRwNDgyRVlwOUNvcTBGTFcr?= =?utf-8?B?UkFxMEpVL3lrZ2srdHdZZ3h5cnVOZ0dTaFIyUmFMSDI3TUltU0I1bGw1Tmdt?= =?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dpUGp3cW9v?= =?utf-8?B?QUpRZHFnOFN5elNta2ZnZENZV1czN0hpVE9zdlR6Y2p0Kzg2dVVLSXU5eDM3?= =?utf-8?B?UGYxYTZQOTBZdnB0NnVqOXR0dGdmdllhRzFhalJZdkwyZUNrK2VhNHhlMm5t?= =?utf-8?B?V1ZxQlg1SGYvWlp4WFV5dU5aZ3crYlFZdXNoMXY1ODNqZ0dmQlZlWTdOVTE4?= =?utf-8?B?L3BRdGpzVEFUanZ3NHcvU2c5SDJXVmtBNkt2N1BERnRnbjk1UTV2T2RqdGFJ?= =?utf-8?B?aEFzc25RSmlsZWpnVmNSR01lc3U3OUtQTXlNd3BsZXVTS21FQlJMaXdvNDl0?= =?utf-8?B?TVNBaWNZT0hKeElUeFJGaUlzWk5iaURYR1Qxakp6M2I0NjBYaTdkRDZlSmlX?= =?utf-8?B?b0pEajRTUVNVeUZGZGQ1YjR2S1J1VFAwMDl5Mk1ZMGJuYzlpSk1tVEdwbUgx?= =?utf-8?B?QytEUzVSUXRrOENsRmZNZWZ0RUxVTDNaQkdsNHAwOW9kcHgvZ2ZkZG9RSWk4?= =?utf-8?B?U0RrMkFIUjR6aEpnNzlxUER0RWt6emtIQTIwRjFZd1JxRkpzTDdiRUNieG9V?= =?utf-8?B?SU1FNnJ3M053Sk1RYlFZM2dsZk8zcFZKK2hEdW1ITHFpN243b2tsU0xsems5?= =?utf-8?Q?QYd7NQVN1nvB6JOROPhUhkBEtkeiqfh6cWNiy9I?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f94770a-0387-4e6f-a28c-08d9840c7450 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5600.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2021 12:18:47.6540 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: g6W8VjTPWAIihlQeipm4QJQSRzAg+RJs0zq+VDcl2WuNwOoB7QZeExYb/RG7PEfM1EDse2x3ynSLLhbqEdwznA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6479 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org xenboot_write_console() is dealing with these quite fine so I don't see why xenboot_console_setup() would return -ENOENT in this case. Adjust documentation accordingly. Signed-off-by: Jan Beulich Reviewed-by: Juergen Gross --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1266,7 +1266,7 @@ The VGA and EFI output is eventually overwritten by the real console. - The xen output can only be used by Xen PV guests. + The xen option can only be used in Xen domains. The sclp output can only be used on s390. --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c @@ -618,10 +618,8 @@ static int __init xenboot_console_setup( { static struct xencons_info xenboot; - if (xen_initial_domain()) + if (xen_initial_domain() || !xen_pv_domain()) return 0; - if (!xen_pv_domain()) - return -ENODEV; return xencons_info_pv_init(&xenboot, 0); }