Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp548869rwe; Thu, 25 Aug 2022 05:19:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR4r4DsZDl6Hnn0yIMGYGnr6JxjusUPOTtZbO8zQ0f9wdcpEccWlui9AheJLcV/B9tQXa7zJ X-Received: by 2002:a17:902:b415:b0:172:a92c:8f9 with SMTP id x21-20020a170902b41500b00172a92c08f9mr3676538plr.31.1661429969584; Thu, 25 Aug 2022 05:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661429969; cv=none; d=google.com; s=arc-20160816; b=FjOKlaBM41po2WznBj6RmbrRd1AEE01ULnrlhtzNJttaNBBgYpmNaiRA8XoaHMFM7X H8SL8MVudLoW5ldgc/ppOFK/628890zm82LALycoS2woo3t226A096hfE/6jY3LOEfzq lrIPYOXvjttffb+VJHo0cM+CYEphp06eKP/mfT6b8c1A1rDmFwT1RYfquGbf7A90EKy0 3YX6OOyy2HXmvBzyb9gL4nZeZhT5swcBfU91D+myhpipSOWfJHJlDz0L7NaJ/rUG2EDL j7yi+9kJ2PUWAR6kE8mM+vlly975cGBE1skOXEq6j59DAO8BzUJJ3LRU7QCrc954yZrY UNeg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PBWAv6sPOn81gkhPkYqQmDLOS/ryuc+0bzjojCyIqHU=; b=iIzE9BIbhnn48tAczMSMUiGB/FilW67KlHeVlE3rLQUY5fYnWy/FOGgVoZUDj9XE0r dJoTmyj0OJlXvMHocsSVCisRsiNsi7d/yeDLqQgMTgOddewiSaE/9sKfZTz0d1qm1TlP je3AHw4dYRj7GmJikjONVMeHSLZnkBuBDTWOCay+EdrCKvmXz+KY7fO7QeQ8MUJzJW9g tBanXuBcKZE4+3dyM/AOLLOIi8NyA9tVz0r9WTDvKPjqN0Ev/kxATX+BGgmg6c7kFw70 1WHABfjeOE7zrDTjn8/3A0ezjjYaI7nY+KoDPxbfJD1KIOh2LbPXDO0wlnYUoKhrdL0l qhQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LqS15n42; 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 198-20020a6301cf000000b0042a330a7ca7si18292412pgb.659.2022.08.25.05.19.18; Thu, 25 Aug 2022 05:19:29 -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=LqS15n42; 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 S240447AbiHYLqi (ORCPT + 99 others); Thu, 25 Aug 2022 07:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiHYLqh (ORCPT ); Thu, 25 Aug 2022 07:46:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FB9A726A9 for ; Thu, 25 Aug 2022 04:46:35 -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 dfw.source.kernel.org (Postfix) with ESMTPS id F145761AFB for ; Thu, 25 Aug 2022 11:46:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF1C1C433C1; Thu, 25 Aug 2022 11:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661427994; bh=NrgS14/1+nnvwPDg6upUH+2/MCwbqlv3Q7qDD7G3Q8Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LqS15n42zZFNeA4mVCyap5yqd8zWGbkPD2RXc9Qyx9VRcbu5k4yS3ouKu0RCnFQfM rbGVkmm+/l1yyRG5AWm4ouasCWTPONE4B6np/VqE6zHPBZDPcpzEkbuYSfOT2x6hoi SeJe7JiLHMFflwI9C7jO3vK4Ld78oWs82Jc3iOGE= Date: Thu, 25 Aug 2022 13:46:31 +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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 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. > >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