x86/domctl: Move all CPUID update logic into update_domain_cpuid_info()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jan 2017 12:43:57 +0000 (12:43 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 Jan 2017 13:16:57 +0000 (13:16 +0000)
commit07097cc0c6bdb08873ae627ca0f36e593be1d7c0
tree4df1071d30a9a222d915f161e1aa2e3b14e7b79d
parent38b1c3a5affbe3451f366576aef9c7149d62de04
x86/domctl: Move all CPUID update logic into update_domain_cpuid_info()

This simplifies the XEN_DOMCTL_set_cpuid handling, splitting the safety logic
away from the internals of how an update is completed.

The legacy cpuids[] logic is left in alone in a fuction, as it wont survive
very long.  update_domain_cpuid_info() gains a small performance optimisation
to skip all update activites for leaves which won't have any impact on the
guest.  This is temporary until the new hypercall API is completed.

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