]> xenbits.xensource.com Git - xen.git/commit
x86: Drop struct old_cpu_policy
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 29 Mar 2023 11:01:33 +0000 (12:01 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Aug 2023 18:13:40 +0000 (19:13 +0100)
commit698827b8749353caaf8bfee5110fb3792159e07c
tree1b9fc55337380254930c2ac1eaa70166cf3c06eb
parentaf24f29e78a51ba009b68ddfc76533373bc2fb10
x86: Drop struct old_cpu_policy

With all the complicated callers of x86_cpu_policies_are_compatible() updated
to use a single cpu_policy object, we can drop the final user of struct
old_cpu_policy.

Update x86_cpu_policies_are_compatible() to take (new) cpu_policy pointers,
reducing the amount of internal pointer chasing, and update all callers to
pass their cpu_policy objects directly.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 66c5c99656314451ff9520f91cff5bb39fee9fed)
tools/tests/cpu-policy/test-cpu-policy.c
xen/arch/x86/domctl.c
xen/include/xen/lib/x86/cpu-policy.h
xen/lib/x86/policy.c