blob: 99d5a8e67eeb727823615e24a902c6707d8c9afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef X86_CPU_POLICY_H
#define X86_CPU_POLICY_H
struct cpu_policy;
struct domain;
extern struct cpu_policy raw_cpu_policy;
extern struct cpu_policy host_cpu_policy;
extern struct cpu_policy pv_max_cpu_policy;
extern struct cpu_policy pv_def_cpu_policy;
extern struct cpu_policy hvm_max_cpu_policy;
extern struct cpu_policy hvm_def_cpu_policy;
/* Initialise the guest cpu_policy objects. */
void init_guest_cpu_policies(void);
/* Allocate and initialise a CPU policy suitable for the domain. */
int init_domain_cpu_policy(struct domain *d);
/* Apply dom0-specific tweaks to the CPUID policy. */
void init_dom0_cpuid_policy(struct domain *d);
/* Clamp the CPUID policy to reality. */
void recalculate_cpuid_policy(struct domain *d);
/*
* Collect the raw CPUID and MSR values. Called during boot, and after late
* microcode loading.
*/
void calculate_raw_cpu_policy(void);
#endif /* X86_CPU_POLICY_H */
|