x86: allow limiting the max C-state sub-state
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 22 Jul 2019 09:34:32 +0000 (11:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2019 09:34:32 +0000 (11:34 +0200)
commit271a4e717400c097a75d20ddbee50a282030df82
treeb54314a38d4e24e9cbea0fdabe5b30d77f21a942
parent831fb28d61194945b1fd58c899bd505f783c2422
x86: allow limiting the max C-state sub-state

Allow limiting the max C-state sub-state by appending to the max_cstate
command-line parameter. E.g. max_cstate=1,0
The limit only applies to the highest legal C-state. For example:
 max_cstate = 1, max_csubstate = 0 ==> C0, C1 okay, but not C1E
 max_cstate = 1, max_csubstate = 1 ==> C0, C1 and C1E okay, but not C2
 max_cstate = 2, max_csubstate = 0 ==> C0, C1, C1E, C2 okay, but not C3
 max_cstate = 2, max_csubstate = 1 ==> C0, C1, C1E, C2 okay, but not C3

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
docs/misc/xen-command-line.pandoc
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/mwait-idle.c
xen/include/xen/acpi.h