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

Re: [Xen-devel] [PATCH v2 5/5] tools/libxc: allow controlling the max C-state sub-state


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Wed, 17 Jul 2019 09:11:03 +0000
  • Accept-language: en-US
  • 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-SenderADCheck; bh=+QGkslEFkhqjpALjl7AXD9dpbGAeGKkeXsK/DQzcOWA=; b=cEGt6RCln7nwvfpowiNJAXxqqK+RuQXROzwPy9IXCVlfXvxPJolstcoXULdUQSXnd+iOHkgetC2UJ92qThd57STqXkgJb3GgymXUtqtW1BHQAleoP2zmFmfVqUxrgFskgcSmM8MGyzX5ItOjpbWkReFfNQ4DVEycNjCjbqvX4X6ay7st9syOUVni7xzzlWlm4YJZP+RUM9H+pp3NhGvTh9u/Kyaq3uf0qmVwo7Kf9WBR7U5XJzgEu+CiOAvMCIMaXwVG0AfS65RRdBd64Ruhy9BHxvh+3BUjcIx1wo5frh1SdrQ1/Rc1zLhp1t7zSxjmw73axDXsH1ThKFBPB7Q9IA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M/T2T6QBcLiD3n/3azMkng+myAJxZJxhmn73VGhJ+n8N/jAR2QqcqmPAshNylCXK0f7w8v/6vFJ0wmONRj8NSWr0InDhnK8Ojlead8mC3ANlqXec6b3qM5HmIvGDAedfZ/At5KkNNJbYJfR9t9pguMINFK+M+ce6wh1anCwxvGEIIjqMPQFGosy4y6QHKGyZK3rnO6jHJbhloejKc/35Q9Yn8s/erjIixoZEl+mktFL9h9avt1cMCqM4DHZFlWkFXDYvQsLNaSuHBPKEZoErYD4TADnBMtAB40k4Bxy2V6xg4bL9yismCsgAWcJIPQhjuJR07T+XKxOWVY0ZIKzKuA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: AndrewCooper <andrew.cooper3@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxx>
  • Delivery-date: Wed, 17 Jul 2019 09:11:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVMZ/Q+p945gYsm0arEFP/PvEB76bNbQ5mgAEuzAA=
  • Thread-topic: [PATCH v2 5/5] tools/libxc: allow controlling the max C-state sub-state

On 16.07.2019 17:06, Roger Pau Monné  wrote:
> On Wed, Jul 03, 2019 at 01:04:13PM +0000, Jan Beulich wrote:
>> --- a/tools/misc/xenpm.c
>> +++ b/tools/misc/xenpm.c
>> @@ -64,7 +64,9 @@ void show_help(void)
>>                " set-sched-smt           enable|disable enable/disable 
>> scheduler smt power saving\n"
>>                " set-vcpu-migration-delay      <num> set scheduler vcpu 
>> migration delay in us\n"
>>                " get-vcpu-migration-delay            get scheduler vcpu 
>> migration delay\n"
>> -            " set-max-cstate        <num>|'unlimited' set the C-State 
>> limitation (<num> >= 0)\n"
>> +            " set-max-cstate        
>> <num>|'unlimited'[,<num2>|'unlimited']\n"

The comma here is wrong, ...

>> @@ -1120,13 +1130,17 @@ void get_vcpu_migration_delay_func(int a
>>    
>>    void set_max_cstate_func(int argc, char *argv[])
>>    {
>> -    int value;
>> +    int value, subval = XEN_SYSCTL_CX_UNLIMITED;
>>        char buf[12];
>>    
>> -    if ( argc != 1 ||
>> +    if ( argc < 1 || argc > 2 ||
> 
> I'm quite sure I'm missing something, but shouldn't argc still be 1
> regardless of whether the max sub-state is set or not?
> 
> I would expect to scan for something like: "%d,%d" or some such, but
> maybe there's a step I'm missing that splits the string using the ','
> separator?

... misleading you here.

Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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