]> xenbits.xensource.com Git - xen.git/commit
x86/sysctl: Retrofit XEN_SYSCTL_cpu_featureset_{pv,hvm}_max
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Mar 2023 19:37:56 +0000 (19:37 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 8 Aug 2023 15:02:53 +0000 (16:02 +0100)
commit620f413ecfee7a4c5ad9c94d367c57c80815606f
treea8674d6dd6f7bcb8549488d408e3a801f4549948
parent95535c4209dec070faa0baf33247fa0d5fe3d89e
x86/sysctl: Retrofit XEN_SYSCTL_cpu_featureset_{pv,hvm}_max

Featuresets are supposed to be disappearing when the CPU policy infrastructure
is complete, but that has taken longer than expected, and isn't going to be
complete imminently either.

In the meantime, Xen does have proper default/max featuresets, and xen-cpuid
can even get them via the XEN_SYSCTL_cpu_policy_* interface, but only knows
now to render them nicely via the featureset interface.

Differences between default and max are a frequent source of errors,
frequently too in secret leading up to an embargo, so extend the featureset
sysctl to allow xen-cpuid to render them all nicely.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Christian Lindig <christian.lindig@cloud.com>
(cherry picked from commit 433d012c6c2737ad5a9aaa994355a4140d601852)
tools/misc/xen-cpuid.c
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli
xen/arch/x86/sysctl.c
xen/include/public/sysctl.h