Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D7AAC433F5 for ; Tue, 4 Jan 2022 16:50:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235506AbiADQug (ORCPT ); Tue, 4 Jan 2022 11:50:36 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:7816 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233866AbiADQuf (ORCPT ); Tue, 4 Jan 2022 11:50:35 -0500 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 204GIi3K024995; Tue, 4 Jan 2022 16:50:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=LSm8/DUPSG8upHzgbhLPCuOe8t9rjy9hqhLqxbvM8hE=; b=swbfuP9hCGKBkiCJ3CHqsRatYteYJJVvjjs6pxW6j7O2mhEq8U+wQLjeaCSFBeE9zD7H uaXc5xrr4Bm1hITKGWxqEx5ARhH8XANGUVoKPO7zo484u3YYICUifj0dWl9tMEnKk+IE lY2LGHeBXAcwPk1+9QuWOshM666SZdHoyX2yVZVlWHZjkPtNZtfjqfiVVPD+pudKvvvX he64PJI6IJlWl843NwrzPaWX7C9oee1z1J9Fh0P4YiUZScR1YLmm8XtqGXPuVoaMqBSS xo0iLiLu7LC0qKbJ9dI7NqyjlHnva6JMnJmGKeeMP5DGou6ux7QAkDiqoYjfkGHNpzst 5w== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3dc43gapmq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jan 2022 16:50:29 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 204GjFXV121871; Tue, 4 Jan 2022 16:50:28 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2176.outbound.protection.outlook.com [104.47.55.176]) by userp3020.oracle.com with ESMTP id 3dagdntpbx-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jan 2022 16:50:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C30dSZPZMeuLPPMW+DSY98kQVJ+Got8zA48PXEi/5ZDffalFmy7RVhbSj77BHv3ecdG4g6QBvEkgYph8LKGLgociTWDE5FyRWDEFMlXYnNu204BmNwFfmad82m582Ry1P8KDctovzyLRp1nZPlz3vKY3wHJsZpSX3+ZT4MaM+2PON57VUjfEVW6XW4iz6IdtbE7VVu24CYObAHmc3Mv+x99j8WCa8i1NQgKNicL0Gur7mEF2PkPp8k9OStdJeTTAnpTg7Fs4LeuuD/1TQtTv/CoylISovJ38pG+JD7Cl7Xi2aGH/uHoSvMO7VYI2PAk4j6lsEAPYeVuNQLMgabMuIw== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LSm8/DUPSG8upHzgbhLPCuOe8t9rjy9hqhLqxbvM8hE=; b=VIMH7CnayEX9who4WX8IKm+Nv84hJc9v0P0vOM8umly6p4UthEvZJA/YWUKz6TwJo3rCRtoAq7i8eWA2V8jlEpfUIxtijWiILyoDkBaKl4hpvoEPAuqUCqthhqVj4gqrxPLY5ohAuZVKO2Bl1ypI2D4AdtF5xR+1imM98BoJZ0L3/WxtXaMaN8xErzZaAmHCnxEDylez6MI686nT72D0qIM/nCLiQcHkSGjYTVBqC1TL429Nxg0wBJUiroHpdcIB3h7kkDifbUiwNgUMl4/F2naQFWLS61FgTelQEFQPp+hZhjrpLoPcGB/XW+Ea0bw5o49cnUwUF9Fox2LJ1JN9yA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LSm8/DUPSG8upHzgbhLPCuOe8t9rjy9hqhLqxbvM8hE=; b=nmud01DBSx3D/UHblOYLega0w8RLdl/qsLUcZKoiSh7j3Yl/Gikd8QSyFmyzttumeq1Bk+ae8/tGRiD2NcuWL6Z9OcsI5Bxk8S41bTmWzCs4Fojw6o6pMHEfteHbrzqjSFpTsVZspGOmVCxx0uX+HrZfxxufmpLnhOGv/fN9+lo= Received: from BLAPR10MB5009.namprd10.prod.outlook.com (2603:10b6:208:321::10) by BL3PR10MB5490.namprd10.prod.outlook.com (2603:10b6:208:33d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.15; Tue, 4 Jan 2022 16:50:26 +0000 Received: from BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::8d84:1f40:881:7b12]) by BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::8d84:1f40:881:7b12%5]) with mapi id 15.20.4867.007; Tue, 4 Jan 2022 16:50:26 +0000 Message-ID: Date: Tue, 4 Jan 2022 11:50:21 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH] xen/x86: obtain upper 32 bits of video frame buffer address for Dom0 Content-Language: en-US To: Jan Beulich , Juergen Gross Cc: "xen-devel@lists.xenproject.org" , lkml References: From: Boris Ostrovsky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR17CA0006.namprd17.prod.outlook.com (2603:10b6:a03:1b8::19) To BLAPR10MB5009.namprd10.prod.outlook.com (2603:10b6:208:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d027eec-2e90-467d-157b-08d9cfa24e9a X-MS-TrafficTypeDiagnostic: BL3PR10MB5490:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kZBkwflI6/BAoD/qqaXrl50gqSx+elX7UPRSlfQXqabxCpFAjdSs+4BIHH5X0kIvoy+BVB3bed1j9wxGNFKZ0alLOtkdYBFVzJsjy66luYu98VcPj8HcYXxILts9pjOqFYMs9E5joEWK0jBuNDS+IkrBopLTBwdqa/RUbNHOwoyb+UPrvVc4pV7SmmY7ylgpio0aeLvdJ59663Fn3H2nEpRowH0TU6BCwF0ibJSZ5GkRPdPoPmDdVrnhRCmlNhI4a02bbznE26SMhtZ4+TJx42r6hNE90auYTCi//ZBVojLAGipQvILInEn/grX1XTu5kmuu37UHiz5Vmk1T5cARbWjG2hxatiwMMP+EGLN+RHWIKO4tGwW/3EUEBdIbMlLx/xBvm0sJ9uUarVZxw0p2vYNtEmqxiOU5HDlyF7kWK8skmKs/SZSUjI5Ykn1xlINNOeOXWrE3R/UAeuyELXNduRzzpoEk4SL3osIKLZNusA7pv2x0UT7JdGTuQ0KzPxzWiWzkVq9lr8GZrQwaUL3WPR/4UPq3Kdbg3XruFlcpye9HHM4g6WlO0lpF1ED5o50MNAxjRXa3UTc06Wl14DfCF+6tcco+JVz0Xa4ESSPIzvKIaAd2KpdEh7ALS7vsG5jcoo1L7Tg7noxORQ6mrEGnuv7k66f8rfgO585/lO6ItQjPagqGPUR+CJxEXoUcXQ1uWMn/t5FHZKuWDTqUgEneBOR8o+PB5OyaIwZzrt3acVQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR10MB5009.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(508600001)(54906003)(6506007)(4326008)(66476007)(6512007)(110136005)(66946007)(53546011)(6486002)(66556008)(6666004)(26005)(86362001)(316002)(2906002)(5660300002)(186003)(2616005)(44832011)(38100700002)(83380400001)(31696002)(36756003)(8936002)(31686004)(8676002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YjNhMkpjMExsY1hpOUgvMnhyZ1dyNHRtZklOWWVHQnp0cVM4aEhTV2ptdTVS?= =?utf-8?B?MVJ6MVBUMWhEbU5BU09XZUdrTkphSUNnS1RpcmwrSVNjT1QxbDNEUWh0dW13?= =?utf-8?B?dEpWajU1amxFanNUdFdJZzJ0RHprSm1KS1dadWlpaVgvNlRPUzhHRThRditN?= =?utf-8?B?dWx6Y2tzOUFrQUZPL2dGb2NBbEV0RlJEUldWUFdUaklBUGRnNmM0L1had3hB?= =?utf-8?B?NjJoMmVjLzhIdWo1dmNZUldZMkRYb21uUzlOSEY1Zm9PeXZLM3BvUzkzV09t?= =?utf-8?B?YXdFc085SjVtZmYwd1RIOE51aTVxbUZIeWZBWVVxNzRBOWlFY1hsVldJQ1lV?= =?utf-8?B?LzB2K1ZrTUdzT0lLeG9vd3VFUEM0SEZhUlN1S1FKczRneU5MNk9hUTV0aHRL?= =?utf-8?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1aFZVNzJs?= =?utf-8?B?UnR6VmNIak15TDJhVVA4TVdwWnl3PT0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d027eec-2e90-467d-157b-08d9cfa24e9a X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5009.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2022 16:50:26.0635 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +1FaVmXzCoYtW+g5RDBlNdsHBzdxoC4ZB/sC7RZzvfUeUgn+/mwb0i/+KOwcIOu9qr8H0517aJUwGjXVlPYqf+Qxgc/pGX5NR+JMkBZgWto= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB5490 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10216 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201040112 X-Proofpoint-GUID: Bzxdp1i6hjReWpYNrkpE-MOAd0IZ6enC X-Proofpoint-ORIG-GUID: Bzxdp1i6hjReWpYNrkpE-MOAd0IZ6enC Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/4/22 3:46 AM, Jan Beulich wrote: > The hypervisor has been supplying this information for a couple of major > releases. Make use of it. The need to set a flag in the capabilities > field also points out that the prior setting of that field from the > hypervisor interface's gbl_caps one was wrong, so that code gets deleted > (there's also no equivalent of this in native boot code). > > Signed-off-by: Jan Beulich > > --- a/arch/x86/xen/vga.c > +++ b/arch/x86/xen/vga.c > @@ -63,13 +63,17 @@ void __init xen_init_vga(const struct do > } > > if (size >= offsetof(struct dom0_vga_console_info, > - u.vesa_lfb.gbl_caps) > - + sizeof(info->u.vesa_lfb.gbl_caps)) > - screen_info->capabilities = info->u.vesa_lfb.gbl_caps; > - if (size >= offsetof(struct dom0_vga_console_info, > u.vesa_lfb.mode_attrs) > + sizeof(info->u.vesa_lfb.mode_attrs)) Do we still need this test? All 4.0+ hypervisors will have mode_attrs. -boris > screen_info->vesa_attributes = info->u.vesa_lfb.mode_attrs; > + > + if (size >= offsetof(struct dom0_vga_console_info, > + u.vesa_lfb.ext_lfb_base) > + + sizeof(info->u.vesa_lfb.ext_lfb_base) > + && info->u.vesa_lfb.ext_lfb_base) { > + screen_info->ext_lfb_base = info->u.vesa_lfb.ext_lfb_base; > + screen_info->capabilities |= VIDEO_CAPABILITY_64BIT_BASE; > + } > break; > } > } > --- a/include/xen/interface/xen.h > +++ b/include/xen/interface/xen.h > @@ -722,6 +722,9 @@ struct dom0_vga_console_info { > uint32_t gbl_caps; > /* Mode attributes (offset 0x0, VESA command 0x4f01). */ > uint16_t mode_attrs; > + uint16_t pad; > + /* high 32 bits of lfb_base */ > + uint32_t ext_lfb_base; > } vesa_lfb; > } u; > }; >