Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp628255rwe; Thu, 25 Aug 2022 06:38:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6UnJmAzCU8y70pmy+yLm0VWQiFg155Z/5vGhUgvo0G7hfDaDIwj0+if0VBy9z+gdmh1Kzm X-Received: by 2002:a17:907:3ea7:b0:73d:7596:8958 with SMTP id hs39-20020a1709073ea700b0073d75968958mr2637096ejc.726.1661434712528; Thu, 25 Aug 2022 06:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661434712; cv=none; d=google.com; s=arc-20160816; b=AgbnbGeNMaDOYXCp+UjqLd4uLAe7pWHw2D0glwa0k6/BTVxio4SKscDhsqK25A0NrD E8hxegdtvQcuMMPh3f/6LQ4NR0TodqWA8bmLOgEKgXi6fbspaCmEHePfRTauoGVs0iUS lv8p6xqSg8mjc9Mn/IhQwC+aGPHQZhcdpZvknfCDRv1IvG5+yPSTK0pX1l2a1W4OLCLp +qBlSVSX12X96YhH9QPGPDdYueQAP2P5C2jBzMeGjCAS13keCxXLOZwRGfTlktbsVZGc 7AfD5oyHM8DF8xPVaQl4/Nx+c047y4oRbwYEFQKDv8lIbMfMNEcUmcX6Yr5ioHBA2sYe RBqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=avh8c25gOkazbAePh+rilNH96BzuRwqJm8FKtPI6uI4=; b=wDaDPQNaSFHpqm7yJyxEwPGChN2lJaIJ0Q5PGnJkFhwejkdgcWssy1TirDb3C6Kzbu xpZhw++fpyj+K6GFEgzMohULApJ/gTPj8Yz4UNOlyQE5DzqPKSVD3FvaioDwS6gEM0EL Nz6s9sl2A6YTjZ/angEbfs8j7351CTktaYvp/8fEXmqzSofzxqMS8aTGqQFXbJnNfNkV Rp3PJXFwnIlx+1dN+bV6kCyxnbxPUINGXjB4Y2wN+xX2nm+a+1Cc/0/L0VwnVaheLGhu mb1rFOmTfh2QLaEgwg5pmrcY2wxcp///GEgBcB6oY/JIuNTyyC8tL4vj+75MdE+ZPvi9 pSFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XUkNnws8; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a056402090900b00446967ba6f5si7045796edz.560.2022.08.25.06.38.02; Thu, 25 Aug 2022 06:38:32 -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=@linuxfoundation.org header.s=korg header.b=XUkNnws8; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240733AbiHYMTc (ORCPT + 99 others); Thu, 25 Aug 2022 08:19:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239176AbiHYMTa (ORCPT ); Thu, 25 Aug 2022 08:19:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28770B08AF for ; Thu, 25 Aug 2022 05:19:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DAA54B8291C for ; Thu, 25 Aug 2022 12:19:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2B46C433C1; Thu, 25 Aug 2022 12:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661429966; bh=KYwCMLWWp0i6wCdI3DiH1RLoOwUUovYPXZkfK9Fxk3o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XUkNnws8cgbCpG4vbpDxY5Dsk8o7OBPdY+j2Wdc3mqJDypYvxuroUdBWPGLycPbBl 5/pv7vzVlhg39BWmRXXN+xD5KB2rVIJXC5OYf8qdk9b93LB4DqMrcE9meBA/3y7Ia/ 5BCKeJJgEVgzlgoNHQo7eU+eyp7JkB6rnAsXBjuQ= Date: Thu, 25 Aug 2022 14:19:23 +0200 From: Greg Kroah-Hartman To: "Czerwacki, Eial" 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 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 12:02:12PM +0000, Czerwacki, Eial wrote: > >On Thu, Aug 25, 2022 at 10:41:28AM +0000, Czerwacki, Eial wrote: > >> >On Thu, Aug 25, 2022 at 10:16:59AM +0000, Czerwacki, Eial wrote: > >> >> >> >And why is your version file a binary file? It should just be a small > >> >> >> >text string, right? > >> >> >> not so small, it can reach up to 512kb. > >> >> > > >> >> >That was not obvious at all. Please document this. > >> >> where should the document be? > >> >> in the code as a comment or in another file? > >> > > >> >In the Documentation/ABI/ file that describes this file. > >> ok, will place it there > >> > >> > > >> >> >And how in the world is a "version" that big? What exactly does this > >> >> >contain? > >> >> it 's size depends on the number of resources it uses. > >> >> here is an example: > >> >> :~> cat /sys/hypervisor/vsmp/version > >> >> SAP vSMP Foundation: 10.6.2862.0 (Aug 22 2022 15:21:02) > >> >> System configuration: > >> >> Boards: 2 > >> >> 1 x Proc. + I/O + Memory > >> >> 1 x NVM devices (Amazon.com Amazon EC2 NVMe Instance Storage) > >> >> Processors: 1, Cores: 2, Threads: 4 > >> >> Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz Stepping 04 > >> >> Memory (MB): 30976 (of 103192), Cache: 7527, Private: 64689 > >> >> 1 x 6400MB [ 7825/ 321/ 1104] > >> >> 1 x 24576MB [95367/7206/63585] 00:1f.0#1 > >> >> Boot device: [HDD] NVMe: Amazon Elastic Block Store > >> >> Supported until: Aug 22 2024 > >> > > >> >That is crazy, and is not a version. It's a "configuration". > >> it is called version for history reasons... > > > >There is no "history" here, you can create whatever sane interface you > >want right now, there is no backwards compatible issues involved at all. > you are correct, however, it depends on how much change the hypervisor code requires > if any (latter is preferable) I do not understand, again, what tool consumes this today? > >> >See above, make it text only for the version. If you want to export > >> >other things, be explicit and make them "one value per sysfs file" or > >> >use debugfs for debugging things that no one relies on. > >> so you suggest braking the summery into files, e.g. one for cpus, one for ram and etcetera? > > > >Again, who uses this information and what is it used for? > > > >thanks, > > > >greg k-h > > both user who uses the product and the development team. > it is used to provide a summery of the system. for example, which devices are used > by the hypervisor. That's a very odd way to display this as a free-flowing, impossible to parse, file. Please use something that will be able to be maintained over time. thanks, greg k-h