x86/cpuid: Split update_domain_cpuid_info() in half
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Sep 2019 14:55:59 +0000 (15:55 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 26 Sep 2019 12:40:18 +0000 (13:40 +0100)
commit205f3b638070110683a451ee98b57c60e23235d7
treed20d7b81e6a2cf662b4094a9b5fcee13582d2654
parent588a966a572ec19253f8fb9495c8f926e07b1b87
x86/cpuid: Split update_domain_cpuid_info() in half

update_domain_cpuid_info() currently serves two purposes.  First to merge new
CPUID data from the toolstack, and second, to perform any necessary updating
of derived domain/vcpu settings.

The first part of this is going to be superseded by a new and substantially
more efficient hypercall.

Carve the second part out into a new domain_cpu_policy_changed() helper, and
call this from the remains of update_domain_cpuid_info().

This does drop the call_policy_changed, but with the new hypercall in place,
the common case will be a single call per domain.  Dropping the optimisation
here allows for a cleaner set of following changes.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/domctl.c