Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp361621pxb; Wed, 29 Sep 2021 00:33:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykiZcT3ySGAXwjrgDkpDUqqJbRnc4mDzMlQZGnYxmPkYfuNVomFKhkfBohrSDdXg8iZHcm X-Received: by 2002:a50:d80d:: with SMTP id o13mr13379053edj.204.1632900823898; Wed, 29 Sep 2021 00:33:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632900823; cv=pass; d=google.com; s=arc-20160816; b=RniBaVNd+owuE9nBCn+FskYO0Cogt4H9ZW1drzD+pYsvpBLljwSXqM5gmM7e70kRRM hyPIOZEkDptyusYaTYNVg3oMi639JIRgn/XNnMf7KN2Ca7/y+oVmqO8f7p8ZB4l4A2cH rUShPU/sAGDpXDTPx4xYUXVmqM237Wk+FF76wbuTj63FDOtFSo0mjyYkbWLx1DyhLqLt GiuYxXEHg6kD5KdZ6YEeIZquOlO6AqUO8Co4SGZtD5EwsF17zFDeqGDo+t/SXVIby8h0 nKHv50HfnUdNAfm0nxd4K1Ek4r/uhQaaKhKPqnEjtL0WB/kVvIYy+G3PXdwNtOkLJtBH 72bw== 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:from :references:cc:to:subject:dkim-signature; bh=bRLUKn+ePbvuD7VZ655+hKZQqJV+M970FDPCaA9nB3k=; b=C7eg2pTIZM103a8zzjouprgsYFQBSm4IM8LcKdGke2pDS0QuKoC+xD3oVftCWHjk1s eoECUEYc+7VeoQvkzJaVKu9VCe6t/cBAx3PvJyUR2+IUSsvj0FHLh+abdi2JWX7pbyT9 rYaltHnMtEpQet/dd0sqKVsMhbG3cjal1gXl1PL0SkBg414vyolPK+Fwiht1hHE2UiDC iwJuOb74Fn3TE/3dtJU9Fs9unRBx7CAofW2AoGJycTdL7LkEYgFXw+qEL9O46UvmjRKd iNxTSjtq+GfoBj0ujcfffYO3bRRDTlX5gJFyo9zJSQXjYbPTgCvcgOOBuxWuMjJ5Kren JC5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=kDPaDwzk; 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 w1si1866047edc.544.2021.09.29.00.33.19; Wed, 29 Sep 2021 00:33:43 -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=kDPaDwzk; 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 S244631AbhI2HaR (ORCPT + 99 others); Wed, 29 Sep 2021 03:30:17 -0400 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]:31757 "EHLO de-smtp-delivery-102.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244622AbhI2HaQ (ORCPT ); Wed, 29 Sep 2021 03:30:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1632900514; 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=bRLUKn+ePbvuD7VZ655+hKZQqJV+M970FDPCaA9nB3k=; b=kDPaDwzkqRst4ST64wnkFiXb5MFbcg2OpGuPLpzET/3MZ5hxE58JVGiagGCQeac9ftIYQQ G2gxVQ4UyPSNbLoGDFL+PZXy8kJqzSujkgqzTh0HRGAiVJ0JxCEMoTnsxx6u4kS44BQAR4 HJu0FjcfQKfaZjFsPPtI33ng6Ce9oDA= Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03lp2055.outbound.protection.outlook.com [104.47.9.55]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-18-VrPEJvPBNCOUaM56QZpXUw-1; Wed, 29 Sep 2021 09:28:32 +0200 X-MC-Unique: VrPEJvPBNCOUaM56QZpXUw-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UdR0GRmXwq9YQtF/hOUARRFdl18IYEeCXYs+zuBvgcUTx0FCDz8viXcjvzWq3fDL36Kk2mDAUIa14quavI3n5V3GGZpmztXz+ZuG32qip5Yxgpdj9Haw5QGr4CiCVkksnQMy5N74bJXyiGT5EaO7zYz4SotQEk+wKDX6EODF3L5RJuR+WLtO5jPdBttgB63ypIVfJkYUR1yeMDVN5WH7ffqNgia5YaEYoqcENtJ3QC1spRTAFUEFh8t5M+FE8kD7EjkhQ+bxnGT/r5c+1pMHZGZMSfUZtgp4IpnMdVnC9oISCCs2/vwtV2QYcYem9+sMDl7uj3eqzu+dTR+jQf1hxw== 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=bRLUKn+ePbvuD7VZ655+hKZQqJV+M970FDPCaA9nB3k=; b=AeS3x7aQ6zf4vJEultWNKNvuLFRyPxCH1bfmPm4JU8FChFXXmpI/LfPExiwxjkfJRPnDxpeCyY9Lb/H4SPgC6jwZMNnP8XLrB5lEjV5F1rEggRB9Sh0bbwKZtjC7wQHDkNeJr8parRRWJXr+Ed77CvA+wNE3qsNxMK+N81idx3uh7cuAlrJG+sFA+JxGkpiCRzUFNoD7m7j9x2eZkIwZ+W0nIWbrs2DACdsxO3z1vtuHVGHWUE6xPTeJ8gc7Tg/GQJxp1HebOp9/Q+nspA9omnnkaXJmXZAMeAjNslVCJMRCcgTF4K/mpq4FnEKgclcbdbEkx7FZJ1IIsHSrGlZVzg== 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: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=suse.com; Received: from VI1PR04MB5600.eurprd04.prod.outlook.com (2603:10a6:803:e7::16) by VI1PR04MB4607.eurprd04.prod.outlook.com (2603:10a6:803:71::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.14; Wed, 29 Sep 2021 07:28:29 +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; Wed, 29 Sep 2021 07:28:29 +0000 Subject: Re: [PATCH 7/9] xen/x86: hook up xen_banner() also for PVH To: Juergen Gross Cc: Stefano Stabellini , lkml , "xen-devel@lists.xenproject.org" , Boris Ostrovsky References: <4efa804e-3250-227f-00c7-347581366cd4@suse.com> <5af11027-cf9d-cf78-9f48-b2ce2edd6e62@suse.com> <2ded8c58-b9c3-89dc-6883-1794d1c4126a@suse.com> <89cb2d39-2bfc-dccf-8e92-39e4e952750d@suse.com> <1bcb3b62-8327-7da8-abdb-65ee965714a7@suse.com> <86a4d837-5603-39d0-4643-c31597d524df@suse.com> From: Jan Beulich Message-ID: Date: Wed, 29 Sep 2021 09:28:26 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <86a4d837-5603-39d0-4643-c31597d524df@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM3PR05CA0090.eurprd05.prod.outlook.com (2603:10a6:207:1::16) 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 AM3PR05CA0090.eurprd05.prod.outlook.com (2603:10a6:207:1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Wed, 29 Sep 2021 07:28:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa44c12b-65b2-48b2-60ad-08d9831abb60 X-MS-TrafficTypeDiagnostic: VI1PR04MB4607: 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:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vGNbndID5ocMMvInaIVxkyEOO8tfOT8ceutK7ahDrmB7zQnoCDiSe0xerqKljEi8e0TfakhOaT40hqH0gDPE/QsNuoIrmftI8PBJP1aPCEiUFc4eJVVCnIF4sQoVOXj0z22WBvayf/3qLMSWRe1J86VJJ2G6wY1i2kmXsXjoJhppw3Wts/ELVTBNOop3lLk3usXFgifaN2t6oH9q4z1MOR6c+tx5qTWNRXDwph3ksL9xr8wyxYWJRAm4JEYeY0Rbg5nmHMduFB8QxVT8+5RqCVHIwNEmdHX9AQDP+ip8WWoZDWlsWQlTqHWlXnjkV9qVAMVQqxADsx7h/EhklpE4lwHvHnhkbPDFnuIizNOPYvYWE98bJnXlWuR9HahWGkOfZ2iIJGznlByqOd1fIQjfB5X79GBDRgVjB2G2b7mup+oLpbHa7EEKG4Izpw2cm7WiiDVNdTWRSRWntaMk86V+d5HSp37WKPPqlQQcec567EIf/h4ZMIcesQroiWr9Iq8otz1y8Xrh/z9FczCF5CXJBC8tsiw9OljChtnkEgJ+ycf3QDvUlDyw38js+R4MDn7dWH/UZZv1DNB/JCIEIbZi0bdpV2pJYjpe3XieV0q72gu7hlVIaQWA7/YlXX1H7uSkOMk/CExyqKbXzy+ng2SmUY1nbkhtuQwE+um2/6kiPCYY9lHKdpufoeXtKNtxcnPEubOZVqLb6fxLAM9bDvKDZcE7AAru2xkH7ANs8Hlhq1Didq3Muznz7V3/dOO/llSa/rQSTwfoWZNFyEg6qAjXp/vXMDGoZoHt5HhFriMb/e8= 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)(16576012)(54906003)(6862004)(316002)(4326008)(38100700002)(36756003)(26005)(186003)(83380400001)(956004)(2616005)(37006003)(6486002)(66556008)(86362001)(53546011)(5660300002)(31696002)(31686004)(66476007)(8936002)(6636002)(8676002)(66946007)(508600001)(2906002)(52103002)(158003001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aHBiVlFIaE5RM3UxSEpPS2hLTjYwQ0g5N1lNSEhBMkdPR3djU0Zoa3ZFYkdp?= =?utf-8?B?R3BBMWRmczJxbTZvc2t0ZUdOdEJHakRwNmtpdmZMcnN4bkFzNnA0UFMwa1hS?= =?utf-8?B?WERuRnZzYVQ5UklEOEJNdERhZUFBKzBRYjIwNWExc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9ZaWxsQ1pLYmZnVjVxNWhMeUI0cVFGK2svdlRlTStX?= =?utf-8?B?bmtWSEhlbUVOY2N4TjRDcVh4UEttRXFsdTAxc3A5cjF0NnVGclE4OUY4RzRs?= =?utf-8?B?MTl0WGVlekxUSGxaa1lRemYvd2JIamhwRGcxeUVucEkwSWFkNzJSR2Z6SEh3?= =?utf-8?B?WEl0MTROV2tWK3pFT2xnSW1tYjVibWloYzFTQSs1Q2NsZGdmbTZJSnEzK1ky?= =?utf-8?B?SElLSnNCcFdTQkI4WG5vLzF2VXZFTlJYajRlSGEvaTFhRy8vRVk3bDZpalQ2?= =?utf-8?B?VjVYeUxaOENIS0lxTXFKRkRxN05YbTBNblc1QlNZZUpTZ2h0dzZZV25JZjZo?= =?utf-8?B?QXBYNFVJc3NhaEppditGcTRjV1YydFlxRTBQYlJHemR0S0Z4UnV0QjJMSUtG?= =?utf-8?B?aFRDMHRFK2tQdTRkVUFTcGRuRjRsQ1VsRDl3dkRlMmtRSmwrWVhGOU1reDZO?= =?utf-8?B?U3FhZ1ZYYkN6RmV2OU0yeCtGdTI0RVplNXlnY3BsaHNPd3lVQklybC83R1Vu?= =?utf-8?B?VE5tSU4xazZTT1NnbkFpMExIN04vMUhPRTlPZWRqa2VzMnVIdU9uS0htWjBU?= =?utf-8?B?a2N2ek5nQXl5RUdyb0JBa2hFUHdnUkNKYVI4Z3ZOL1dKL2F6emRiZTY3bW9N?= =?utf-8?B?eUhQV1MwWXRjTFlvYU8vYnJJZzVhUDJZQWFjRlpoeFpwd0pQQnlaQ3AxV0tp?= =?utf-8?Q?OcEW7L/gSBUkJ3iHQ1dLWjooQahiZH1vZxIxOp8?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa44c12b-65b2-48b2-60ad-08d9831abb60 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5600.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2021 07:28:28.9527 (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: Hd1EzYtFh7472YvRbJeUMaojYn1G/CppMPSZe0RrxRy9kxGjVXt2YrM4doVC4qMMFx4Vu7sumNfEUwX2yuRzQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4607 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.09.2021 07:45, Juergen Gross wrote: > On 23.09.21 17:31, Jan Beulich wrote: >> On 23.09.2021 17:25, Juergen Gross wrote: >>> On 23.09.21 17:19, Jan Beulich wrote: >>>> On 23.09.2021 17:15, Juergen Gross wrote: >>>>> On 23.09.21 17:10, Jan Beulich wrote: >>>>>> On 23.09.2021 16:59, Juergen Gross wrote: >>>>>>> On 07.09.21 12:11, Jan Beulich wrote: >>>>>>>> This was effectively lost while dropping PVHv1 code. Move the function >>>>>>>> and arrange for it to be called the same way as done in PV mode. Clearly >>>>>>>> this then needs re-introducing the XENFEAT_mmu_pt_update_preserve_ad >>>>>>>> check that was recently removed, as that's a PV-only feature. >>>>>>>> >>>>>>>> Signed-off-by: Jan Beulich >>>>>>>> >>>>>>>> --- a/arch/x86/xen/enlighten.c >>>>>>>> +++ b/arch/x86/xen/enlighten.c >>>>>>>> @@ -261,6 +261,18 @@ int xen_vcpu_setup(int cpu) >>>>>>>> return ((per_cpu(xen_vcpu, cpu) == NULL) ? -ENODEV : 0); >>>>>>>> } >>>>>>>> >>>>>>>> +void __init xen_banner(void) >>>>>>>> +{ >>>>>>>> + unsigned version = HYPERVISOR_xen_version(XENVER_version, NULL); >>>>>>>> + struct xen_extraversion extra; >>>>>>> >>>>>>> Please add a blank line here. >>>>>> >>>>>> Oops. >>>>>> >>>>>>>> + HYPERVISOR_xen_version(XENVER_extraversion, &extra); >>>>>>>> + >>>>>>>> + pr_info("Booting paravirtualized kernel on %s\n", pv_info.name); >>>>>>> >>>>>>> Is this correct? I don't think the kernel needs to be paravirtualized >>>>>>> with PVH (at least not to the same extend as for PV). >>>>>> >>>>>> What else do you suggest the message to say? Simply drop >>>>>> "paravirtualized"? To some extent it is applicable imo, further >>>>>> qualified by pv_info.name. And that's how it apparently was with >>>>>> PVHv1. >>>>> >>>>> The string could be selected depending on CONFIG_XEN_PV. >>>> >>>> Hmm, now I'm confused: Doesn't this setting control whether the kernel >>>> can run in PV mode? If so, that functionality being present should have >>>> no effect on the functionality of the kernel when running in PVH mode. >>>> So what you suggest would end up in misleading information imo. >>> >>> Hmm, yes, I mixed "paravirtualized" with "capable to run >>> paravirtualized". >>> >>> So the string should depend on xen_pv_domain(). >> >> But that's already expressed by pv_info.name then being "Xen PV". > > True. Okay, I'm fine with just dropping "paravirtualized". Done. Do you want me to also make pr_info() vs printk(KERN_INFO ...) consistent in the function at this occasion? If so - which of the two? Jan