[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.17 v4 2/2] amd: remove VIRT_SC_MSR_HVM synthetic feature


  • To: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 16 Nov 2022 08:41:06 +0100
  • 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
  • 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=KRH2bjytmN4B/NCNdiqn+zEgoQ38Kq4POE9O7rRLD+c=; b=Wh04Qj+uMx0k2um1h64eb2LSRRRP4FE1mMHhu80+vlOyATawXF1wUYCdtwodtNUeWrCnglcYHc3DNgaljPURma/urh4859h5hNDHYZj9UTkrgSXxpCw3IgHIzwibQo5dHBK8BllIohNQOR44uuiggA0ZSYFpW2sOxJEU6kKiSTJVbVKjsdWI7M5ICSvMN8YaZ2kbFrjC6YDwolAdmKJoMV8Qif89T9lcjammhpIyGtNBXlCuT0Fop5eFSNQu/C/PKvkDxj4GMZA+se37Okhogn5KGC+TvqGfvQG+NkZzk5cuVoW99II5iHybdlzStfSE8lbuHFaAAPN9mTldLVw7Tw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eBUyS26uiOmPdR6NoHjGu6/Wtx9mh+9rLUEH3jf1PNZ/f3CIsVXMNVGRfSOnyMrrpTTwU3hTVFE/X3AODzL9XbkMsjWcJAHVlO6ZGP4wIEFE/JYZHS7v/gjYuATvz2iWT9S1RQyyDRb9/eMzC/cqc/OK89v7RokHO2YKbhDXjMPMmE8BIs0ahEPGcy4+WT3doSYFxkrvum6K4xgoLKs4/B0+l+bsP/fhA4i8YYZMl4JA35mayfMLgmwosEIC6NTGJCdlWlnz0D/nonG6UcM57T2GfDlR+KAHC4gkr+U0fPqf1aTo/MHO+3XLk1RRsxVrhYL2CzJoYViZ0y/RN2CZKw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "Henry.Wang@xxxxxxx" <Henry.Wang@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 16 Nov 2022 07:41:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 16.11.2022 00:54, Andrew Cooper wrote:
> On 15/11/2022 16:44, Jan Beulich wrote:
>> I think we need to settle on at least halfway firm rules on when to use
>> synthetic feature bits and when to use plain global booleans. Without
>> that the tastes of the three of us are going to collide again every once
>> in a while.
> 
> Its very easy.  All other things being equal, synthetic features are the
> most efficient option.

See Roger's better wording of "why use a more complicated construct when
a simple one will do". Yes, generated code may be better in certain cases,
but no, we don't always judge by that aspect alone. Source simplicity is
an important criteria, which at other times I recall you also weighing
higher than the performance of resulting code (especially when dealing
with performance aspects when they don't really matter at most/all use
sites of whichever construct).

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.