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

Re: [PATCH] docs/xen-tscmode: remove mention of numeric tsc_mode= values


  • To: Elliott Mitchell <ehem+xen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 19 Jul 2023 08:24:15 +0200
  • 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=/k7Al9sV22UZjN+ji+a6fYKudxpophtIgISnqoxdZAU=; b=GGWKkjCXvkm0v0mU8oDIrB9Gf8l29QWg1TyCcvsiVYFXxSuuA8Q/JZ2oSbvveJBrA0mXPnn4UKCvaSSP2+9dQ8bvxmuBhArkbFJiGj7y5QAfryyK2GAlTQUWtUY8dPH/zNDy0Pr2JgRlOdTZcl39saeREe+qiIMhDtt41OETIOTPm5aRS7DEOGzOPjyJGQAUT53DWlr+VdmcNnOUSanhET5a+KeuX9DVFgOtTrCpRVYUsA9Ob3frI84N8SGuYURrY/0F2iILvJR9gRj+w9a022g8eioyr9ZtfQ3wickdwYJVlbJnG9t8OmvoLSeYsJAx+tf3LiKdPu9xhi0tWMnu4w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EtmFgYwZkhz18qJ8jr8wBBirtjB24kJSGBhRCp8jT2LluersSh6JpCo6lyoDltmcbGEPy6A9l34OGJnBxNrC4CnG3J+h7nz7fXF096Yslw6vrptE0h6J4R35YXAiW492d6JVS9VHmgWQ9ZnRsH9DyDhivH1Y281H70tSb+MYjRRF3MYPRIYcjWyiggILEeBkcChazDfHmOSQDESnpZ14SbSTW9EKHbK7feBTJKSzk+BVrua+4pB8Zoeho5SSCflzfzhELtmIVoyrEV5kd/X17eHMTovwF2TVfL4syVDzg+kGila7sCKuA8BfzbUlydvwNd5yK2XE7gShpchVTng2eA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 19 Jul 2023 06:24:34 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.07.2023 22:58, Elliott Mitchell wrote:
> On Fri, Jul 14, 2023 at 09:21:59AM +0200, Jan Beulich wrote:
>> On 14.07.2023 05:44, Elliott Mitchell wrote:
>>> On Fri, Jul 14, 2023 at 03:24:59AM +0200, Marek Marczykowski-Górecki wrote:
>>>> On Thu, Jul 13, 2023 at 05:16:40PM -0700, Elliott Mitchell wrote:
>>>>> The better to encourage moving to setting via string mode names.
>>>>
>>>> The numeric values needs to remain documented, otherwise interpreting
>>>> pre-existing configs (that may use them) will be tricky.
>>>
>>> Problem is the way it is documented tends to encourage continued use of
>>> the numeric values (notice how reports irt Zen 4 mention "tsc_mode=1").
>>>
>>> `parse_config_data()` suggests the appropriate string value, so nominally
>>> that should take care of older configurations.  If "xen-tscmode" really
>>> needs to continue mentioning the numeric value, it should be in
>>> parentheses and with "old value" to suggest moving away from that.
>>
>> I'm not sure about "old" (we can't change the values without breaking
>> backwards compatibility), but the numeric values will want mentioning
>> alongside their spelled out names.
> 
> Then why is there a warning message about numeric tsc_mode in
> `parse_config_data()`?

I'm afraid this question can only be answered by whoever was involved
in adding the warning.

Jan

> "WARNING: specifying \"tsc_mode\" as an integer is deprecated. "
> "Please use the named parameter variant. %s%s%s\n"
> 
> Declaring them deprecated suggests it could be removed at some future
> point.  This message was added at af3b530c03, over a decade ago.
> 
> Though I suspect `tsc_mode` hasn't been heavily used since no one ever
> bothered to remove the debugging message.
> 
> 




 


Rackspace

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