Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp553290rwe; Thu, 25 Aug 2022 05:24:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4XlH2fG+Zv1ZkgffxMGItaRFoVNnlfJgER/ET7ZWnQwJNl/YvLfUWhoMGgHXGGRPoiJi8J X-Received: by 2002:a17:907:868f:b0:730:bc1f:a8d8 with SMTP id qa15-20020a170907868f00b00730bc1fa8d8mr2496852ejc.106.1661430239687; Thu, 25 Aug 2022 05:23:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661430239; cv=pass; d=google.com; s=arc-20160816; b=XMoQBm1H2sFjyMZXAm4XSCxxE9lun5Son0t/6W89nZrOTUlUfF2ksmh2MT95Q4mxYf BsY0UrgV4k1eflxTZWeGZm1zp9SM8wGAE640gP3ewc5iIwpxUp3+xPMPmne2tYGXnSTu C/mZNKTsAqjea2WYSgwSR7jPLeetGZEdQxrIezdsBPGxNSJetWMXw4mu65sLZbiN+h6e wVrrS3gfgXZ3869zq2dL+dpoYT/T9QRS5X+2/aWSa3BWBmlHegEBzftXX1i2wI9QZvm7 N7+gA69DhbdlChRwCu4RSQkMuXHSb9xJf5wvr8lHcdvIbV6Lc86ZyjzTtPYbSV3qMNmT k3fw== 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 :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=OFa9566fvtgPWVShfFN/hWNXcg49ZAzF4GPuUhrqAK4=; b=OB61xC/ET8udM9Zi4pXx+FJWd8pFXVX63ZZYcxAxyAZ/M96B9CpwDy0vBlxBBKwnGk sR9Wu9Lnbbj4jQYWsEXgltimysd7JJ2SpGnNbGN0OparAtSN8Lr2Nyg9oLLFaABJpSmQ Mv90EvzfoNjIjJ/EaA1Vipbj6YhqEhcD+c0caTiGJ43be33x+yQG6ePEB2KJYGlMRXeF Eg/at36Smezd25FACGn7CbRg66ZXodfUXqvVKsuvEGaw9cG5yAYy3iRdUPC/AzYRV91D IBPcwx5UR4aHzW/e0VOUp35nxeye/pg2PBPoqAmN9wy5DNxN3TAeSl2eoNRvj7CfQ1UC MMag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sap.com header.s=selector1 header.b=r78X1teu; arc=pass (i=1 spf=pass spfdomain=sap.com dkim=pass dkdomain=sap.com dmarc=pass fromdomain=sap.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sap.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa40-20020a1709076d2800b007391106f226si4279118ejc.770.2022.08.25.05.23.34; Thu, 25 Aug 2022 05:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sap.com header.s=selector1 header.b=r78X1teu; arc=pass (i=1 spf=pass spfdomain=sap.com dkim=pass dkdomain=sap.com dmarc=pass fromdomain=sap.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sap.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236708AbiHYMCU (ORCPT + 99 others); Thu, 25 Aug 2022 08:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235527AbiHYMCQ (ORCPT ); Thu, 25 Aug 2022 08:02:16 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60049.outbound.protection.outlook.com [40.107.6.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 403EE8FD4C for ; Thu, 25 Aug 2022 05:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UubCCWJ4sHk2MKVfnEOXMwJ/FRawdihHiNExrHZMnPARhPB0bpU6K6ZkvlXiPkg55McONUKKLQN+QjsrI7uzal422/VnyAmdFb07ptF8etpNlQ9KPnJb5zNbbzViCPVaCUmlt0LVOPHJlQJbGYy8ADdMD/7Sas/ni7VFmCTgCmzk5AwG+oLxD4vWqmq2kJtEsLhBYG4KaOltDFHmqnKJ92uMsbaiCD+u7EY/B+d51c/0yLgpNHVTWr4gebY/Adm+D1xF6XLzW99OuCxNVP3Xb8QWjx5nsbw9ZFSNfSVH/arrlNvfP0ZR2/Ojs4J4/KN/WvHc7eYs4nSfftQAdccuIg== 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=OFa9566fvtgPWVShfFN/hWNXcg49ZAzF4GPuUhrqAK4=; b=h8elS3eZJwloov1HhEIwTJEDF3vSRWG+BDKr38c5f8IvANU8sAfexZGZVQ/SpTu9gHAygGQbbylilWrAtpDkWMtTGpEFX6iFeFf3rH4aPnpGO6skNsuJi+8M5L9nBbBRZ/Q6tGJiGkpG9bIvv9vcnRYCGXu1DPGWHXkqpvM/AO1M2ctzDe/8PfaKX93A557LScdVBdqMwblj2PnyMAo7KM8imB/pMsO3pcfPGe7yxnon/DTf2WH5p7swPDGDmFi4H/+7pCv2YK2pJuj42XNKpH3iwjE9QKBNmDSvg15KQ+XpiDMRMU4GyO1w3arZ1WEG/rd5a2BstcAAgXhaTd+Ozw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sap.com; dmarc=pass action=none header.from=sap.com; dkim=pass header.d=sap.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sap.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OFa9566fvtgPWVShfFN/hWNXcg49ZAzF4GPuUhrqAK4=; b=r78X1teuNWyj1Zm1aURjc3Y41DX3bIXZkxd/8GPthLwVvrdRMuMeaZx1UbcBNCAACADlAOqocwCEpauVRnZLc43h6duZ/5wH9qsbJnadkvJ5c2XsoH5pnYFr+yxq0ywSo0itNGh8cJa/bKq/3oRqCjVgrrfUIlXB30aq0qVZ3J6AFwkUPa24F8DR/NzN/7artIlPlx8WbOqXvfkOsGxasq5UnzSU9S0WR/o/KPPm8SCtPKkg78lrFtNFGxy0jxVslnLwBXYtXIPXFPsIio9rhmDx3Xe9EHJQeqTAMBbePCqgIQ95QZEglA5CLDUnwm5T3POwAZuCmrgXvrq0l/A9WA== Received: from PAXPR02MB7310.eurprd02.prod.outlook.com (2603:10a6:102:1c5::10) by AM0PR02MB5827.eurprd02.prod.outlook.com (2603:10a6:208:180::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Thu, 25 Aug 2022 12:02:12 +0000 Received: from PAXPR02MB7310.eurprd02.prod.outlook.com ([fe80::25a4:e5d5:aefc:fe46]) by PAXPR02MB7310.eurprd02.prod.outlook.com ([fe80::25a4:e5d5:aefc:fe46%9]) with mapi id 15.20.5566.015; Thu, 25 Aug 2022 12:02:12 +0000 From: "Czerwacki, Eial" To: Greg Kroah-Hartman CC: "linux-kernel@vger.kernel.org" , "Arsh, Leonid" , "Twaig, Oren" , SAP vSMP Linux Maintainer , Arnd Bergmann , Dan Carpenter , Andra Paraschiv , Borislav Petkov , Brijesh Singh , Eric Biggers , Fei Li , Hans de Goede , Jens Axboe , Mauro Carvalho Chehab Subject: Re: [PATCH v2] drivers/virt/vSMP: new driver Thread-Topic: [PATCH v2] drivers/virt/vSMP: new driver Thread-Index: AQHYuErwCwPojP5fak60UhGlJnJEo62/OPAAgAACsWWAAB5kAIAADNqvgAACQwCAAAE9j4AAFa6AgAAESN4= Date: Thu, 25 Aug 2022 12:02:12 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=sap.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5f786abe-db74-40af-7978-08da8691a557 x-ms-traffictypediagnostic: AM0PR02MB5827:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gSEu4EObShRvKJXy2DlJjaPLjMUmIoUOx2VLSsYdRfTnnZHxm3vT/wgnyWPfBkzvu6+aotccdnWCNk85EU/kDFeNxBg5Gr5yifd+kSqlcFBHur6jJMif/citOuhZgTOn9qnHfGUkiqgRPspHaAn1NsM2ATQ1hY0PFHFqD8dNwlTnolkeOogTJpP+o/t6ImFWZYnuLK+R/uKe4NJlvoB7NsmpyiCdGvQ5NZ/NwpKhJP18oMxt52kbZInV4zXJAwLtgEglTqAf4zWBgn5K1QqXquzMkNcfq281ZQGoGGcm8HoFMmpCyqK/Fvrcx+sHGxB3YEQ+p2S9musN+11WRatB7oX0kA/Ou5mHUX0srbeUMm6sw+13F1AF4XleIxVqn1ubosF+vm0vxZzUe2Tv9Be0IdlyY2alKLjacA4XDGk2Ik5XSCJQs95srgmG0Fs/c4qh9EwICOFx8+t2UnUXSJ/th+cgwLho7P4McbMoWhjxbWoV9Kc48dggxdUSujApnuyxv9J7ijLityTIqpon/ySRtOf3sTCrZ1w+jq5gVJROdSjYN6Zxds9Mxz0tf+NQyOYG9/faAEJ70jeFkQaSWT+hzaQ0jnC1U4StwJvqhJ+mmzgYVV4+HN22sSCktv5DnUkXFQe3yc2bCCkSHhUnA6KxQ911zR93lbOUt1Xln2aCYcCjNsdOjNrEvJYR5+AXd3LcYZRympBQkimspy5IvPP/HMc/stSp128HcPm7g28ffh1L3NTGxW7xYMz1BIQwcEma1TgZgxij+z6w4jYnGRsn4g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR02MB7310.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(366004)(396003)(376002)(136003)(346002)(66556008)(66946007)(52536014)(4326008)(86362001)(91956017)(66476007)(8936002)(478600001)(54906003)(8676002)(64756008)(38100700002)(76116006)(6916009)(316002)(66446008)(71200400001)(41300700001)(38070700005)(82960400001)(55016003)(33656002)(186003)(83380400001)(26005)(122000001)(9686003)(6506007)(2906002)(7416002)(7696005)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?glRZGA8W0RFjWg+72wzUFqsgGH2CIRuYfEVf21wpn+4OQl3Bxh8GId0SLe?= =?iso-8859-1?Q?cN3XlkBmCvVAGjMaBO5HiJfNJYQ8OLKVuK8jRkYKAS0CDp+5P60nwFl00m?= =?iso-8859-1?Q?+8qisXy52nvl+4BsjpYUgrO79Ts56Eh6xgK5X42bPUYCZHnAwYkYqZ/AVu?= =?iso-8859-1?Q?HsHYNwiKoMAOONeUe/hJeFiOaQ87yFQ4yW4DdDrzJBV7SwLy1mpTN+GRhV?= =?iso-8859-1?Q?qCBw6c1aiI51AeKJZ04BTmK1a7nyhZxp2Kw1J4s6eScd7P7mFXKiNYyn9J?= =?iso-8859-1?Q?nKg4jQ4EqNki+8XbaIg/LLLnvAqclzpUGTZvWNO1U4Ao25nR6sFnfdsucn?= =?iso-8859-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faB6Qi6nwl2/pEUgeb3Yo8zwA8nBqvg?= =?iso-8859-1?Q?lgQOoyex0gUBD/mxWrqDF3087AHObyucWDH6unIpnT99jik5RDrCoRjKqC?= =?iso-8859-1?Q?aBwTisLcUAPQGpet8OmZHKEPYFw5p5pHYrnweNkKKMGgjO6vz8ikt4H7tr?= =?iso-8859-1?Q?WN7Oyg53lBIJoQ5HPbGqPgkGxkv/iGF+WrTBObfLG7b2EOn6C+3UC9cMJi?= =?iso-8859-1?Q?XABE6FRBAGGK6kC8H5kZjodD0sibkq6DjsRekVIoAfQ6vcIv4rkkupLe7Q?= =?iso-8859-1?Q?oWvvcbQaWks82cyRmfmDpzqnGUMWzhh1wVJC+rI14thQ4Ip35kEq19wT94?= =?iso-8859-1?Q?nYzqLcYusGsxiTcKe+ym3rq5T1ASOuB60zOwkcMnVUI6GTnbLpW5yQqqnU?= =?iso-8859-1?Q?HRr5p6VnQizzr0yBkGTfdbgpHZ+AMTUFD/?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sap.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXPR02MB7310.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f786abe-db74-40af-7978-08da8691a557 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2022 12:02:12.8074 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 42f7676c-f455-423c-82f6-dc2d99791af7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2DLcG0yFYV7b8ICAEJIvWna3mOor8JmwMIsNzd1CLBqE9sV1wmJn++XliMmKoLasrQTb0VBQVa8jS8nVAm8CMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR02MB5827 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >On Thu, Aug 25, 2022 at 10:41:28AM +0000, Czerwacki, Eial wrote:=0A= >> >On Thu, Aug 25, 2022 at 10:16:59AM +0000, Czerwacki, Eial wrote:=0A= >> >> >> >And why is your version file a binary file? It should just be a = small=0A= >> >> >> >text string, right?=0A= >> >> >> not so small, it can reach up to 512kb.=0A= >> >> >=0A= >> >> >That was not obvious at all. Please document this.=0A= >> >> where should the document be?=0A= >> >> in the code as a comment or in another file?=0A= >> >=0A= >> >In the Documentation/ABI/ file that describes this file.=0A= >> ok, will place it there=0A= >> =0A= >> >=0A= >> >> >And how in the world is a "version" that big? What exactly does thi= s=0A= >> >> >contain?=0A= >> >> it 's size depends on the number of resources it uses.=0A= >> >> here is an example:=0A= >> >> :~> cat /sys/hypervisor/vsmp/version =0A= >> >> SAP vSMP Foundation: 10.6.2862.0 (Aug 22 2022 15:21:02)=0A= >> >> System configuration:=0A= >> >> Boards: 2=0A= >> >> 1 x Proc. + I/O + Memory=0A= >> >> 1 x NVM devices (Amazon.com Amazon EC2 NVMe Instance Storage)= =0A= >> >> Processors: 1, Cores: 2, Threads: 4=0A= >> >> Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz Stepping 04=0A= >> >> Memory (MB): 30976 (of 103192), Cache: 7527, Private: 64689=0A= >> >> 1 x 6400MB [ 7825/ 321/ 1104] =0A= >> >> 1 x 24576MB [95367/7206/63585] 00:1f.0#1=0A= >> >> Boot device: [HDD] NVMe: Amazon Elastic Block Store =0A= >> >> Supported until: Aug 22 2024=0A= >> >=0A= >> >That is crazy, and is not a version. It's a "configuration".=0A= >> it is called version for history reasons...=0A= >=0A= >There is no "history" here, you can create whatever sane interface you=0A= >want right now, there is no backwards compatible issues involved at all.= =0A= you are correct, however, it depends on how much change the hypervisor code= requires=0A= if any (latter is preferable)=0A= =0A= >=0A= >> >See above, make it text only for the version. If you want to export=0A= >> >other things, be explicit and make them "one value per sysfs file" or= =0A= >> >use debugfs for debugging things that no one relies on.=0A= >> so you suggest braking the summery into files, e.g. one for cpus, one fo= r ram and etcetera?=0A= >=0A= >Again, who uses this information and what is it used for?=0A= >=0A= >thanks,=0A= >=0A= >greg k-h=0A= =0A= both user who uses the product and the development team.=0A= it is used to provide a summery of the system. for example, which devices a= re used=0A= by the hypervisor.=0A= =0A= Thanks,=0A= =0A= Eial=