]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
x86: Merge a domain's {cpuid,msr} policy objects
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 29 Mar 2023 10:32:25 +0000 (11:32 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 Apr 2023 10:47:08 +0000 (11:47 +0100)
commitbd13dae34809e61e37ba1cd5de893c5c10c46256
tree8c2e526e76d7f91018852f7eb2f7bf8e16a7c14b
parent6bc33366795d14a21a3244d0f3b63f7dccea87ef
x86: Merge a domain's {cpuid,msr} policy objects

Right now, they're the same underlying type, containing disjoint information.

Drop the d->arch.msr pointer, and union d->arch.cpuid to give it a second name
of cpu_policy in the interim.

Merge init_domain_{cpuid,msr}_policy() into a single init_domain_cpu_policy(),
moving the implementation into cpu-policy.c

No practical change.  This undoes the transient doubling of storage space from
earlier patches.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu-policy.c
xen/arch/x86/cpuid.c
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/include/asm/cpu-policy.h
xen/arch/x86/include/asm/cpuid.h
xen/arch/x86/include/asm/domain.h
xen/arch/x86/include/asm/msr.h
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/msr.c