/xen/xen/drivers/cpufreq/ |
A D | cpufreq_misc_governors.c | 35 if (unlikely(!policy) || in cpufreq_governor_userspace() 49 ret = __cpufreq_driver_target(policy, policy->max, in cpufreq_governor_userspace() 52 ret = __cpufreq_driver_target(policy, policy->min, in cpufreq_governor_userspace() 76 if (freq < policy->min) in write_userspace_scaling_setspeed() 77 freq = policy->min; in write_userspace_scaling_setspeed() 78 if (freq > policy->max) in write_userspace_scaling_setspeed() 79 freq = policy->max; in write_userspace_scaling_setspeed() 139 if (!policy) in cpufreq_governor_performance() 147 ret = __cpufreq_driver_target(policy, policy->max, in cpufreq_governor_performance() 178 if (!policy) in cpufreq_governor_powersave() [all …]
|
A D | utility.c | 237 policy->min = policy->cpuinfo.min_freq = min_freq; in cpufreq_frequency_table_cpuinfo() 238 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo() 241 if (policy->min == ~0) in cpufreq_frequency_table_cpuinfo() 257 cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, in cpufreq_frequency_table_verify() 264 if ((freq >= policy->min) && (freq <= policy->max)) in cpufreq_frequency_table_verify() 273 cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, in cpufreq_frequency_table_verify() 311 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_frequency_table_target() 391 return policy->cur; in cpufreq_driver_getavg() 405 if (!policy) in cpufreq_update_turbo() 432 return policy && policy->turbo == CPUFREQ_TURBO_ENABLED; in cpufreq_get_turbo_status() [all …]
|
A D | cpufreq_ondemand.c | 101 struct cpufreq_policy *policy; in dbs_check_cpu() local 108 policy = this_dbs_info->cur_policy; in dbs_check_cpu() 109 max = policy->max; in dbs_check_cpu() 111 if (unlikely(policy->resume)) { in dbs_check_cpu() 124 for_each_cpu(j, policy->cpus) { in dbs_check_cpu() 149 if (policy->cur == max) in dbs_check_cpu() 157 if (policy->cur == policy->min) in dbs_check_cpu() 220 unsigned int cpu = policy->cpu; in cpufreq_governor_dbs() 231 if (policy->cpuinfo.transition_latency > in cpufreq_governor_dbs() 243 for_each_cpu(j, policy->cpus) { in cpufreq_governor_dbs() [all …]
|
A D | cpufreq.c | 136 struct cpufreq_policy policy; in cpufreq_limit_change() local 149 policy.max = in cpufreq_limit_change() 164 struct cpufreq_policy *policy; in cpufreq_add_cpu() local 229 if (!policy) { in cpufreq_add_cpu() 235 xfree(policy); in cpufreq_add_cpu() 240 policy->cpu = cpu; in cpufreq_add_cpu() 246 xfree(policy); in cpufreq_add_cpu() 271 policy->governor = NULL; in cpufreq_add_cpu() 304 xfree(policy); in cpufreq_add_cpu() 322 struct cpufreq_policy *policy; in cpufreq_del_cpu() local [all …]
|
/xen/xen/include/acpi/cpufreq/ |
A D | cpufreq.h | 144 return policy->governor->governor(policy, event); in __cpufreq_governor() 177 if (policy->min < min) in cpufreq_verify_within_limits() 178 policy->min = min; in cpufreq_verify_within_limits() 179 if (policy->max < min) in cpufreq_verify_within_limits() 180 policy->max = min; in cpufreq_verify_within_limits() 181 if (policy->min > max) in cpufreq_verify_within_limits() 182 policy->min = max; in cpufreq_verify_within_limits() 183 if (policy->max > max) in cpufreq_verify_within_limits() 184 policy->max = max; in cpufreq_verify_within_limits() 185 if (policy->min > policy->max) in cpufreq_verify_within_limits() [all …]
|
/xen/xen/arch/x86/acpi/cpufreq/ |
A D | powernow.c | 61 struct cpufreq_policy *policy = data; in update_cpb() local 78 struct cpufreq_policy *policy) in powernow_cpufreq_update() argument 195 if (!policy || !(data = cpufreq_drv_data[policy->cpu]) || in powernow_cpufreq_verify() 196 !processor_pminfo[policy->cpu]) in powernow_cpufreq_verify() 201 cpufreq_verify_within_limits(policy, 0, in powernow_cpufreq_verify() 209 struct cpufreq_policy *policy = info; in feature_detect() local 214 policy->aperf_mperf = 1; in feature_detect() 232 unsigned int cpu = policy->cpu; in powernow_cpufreq_cpu_init() 252 cpumask_set_cpu(cpu, policy->cpus); in powernow_cpufreq_cpu_init() 255 policy->shared_type, cpumask_weight(policy->cpus)); in powernow_cpufreq_cpu_init() [all …]
|
A D | cpufreq.c | 197 struct cpufreq_policy *policy; in get_cur_val() local 211 if (!policy || !cpufreq_drv_data[policy->cpu]) in get_cur_val() 278 if (!policy || !policy->aperf_mperf) in get_measured_perf() 325 struct cpufreq_policy *policy; in get_cur_freq_on_cpu() local 332 if (!policy) in get_cur_freq_on_cpu() 350 policy->aperf_mperf = 1; in feature_detect() 413 policy->resume = 0; in acpi_cpufreq_target() 453 policy->cur = freqs.new; in acpi_cpufreq_target() 463 if (!policy || !(data = cpufreq_drv_data[policy->cpu]) || in acpi_cpufreq_verify() 586 policy->cur = acpi_cpufreq_guess_freq(data, policy->cpu); in acpi_cpufreq_cpu_init() [all …]
|
/xen/xen/xsm/flask/ |
A D | Makefile | 15 FLASK_H_DEPEND = policy/security_classes policy/initial_sids 16 AV_H_DEPEND = policy/access_vectors 25 mkflask := policy/mkflask.sh 32 mkaccess := policy/mkaccess_vector.sh 39 obj-bin-$(CONFIG_XSM_FLASK_POLICY) += flask-policy.o 40 flask-policy.o: policy.bin 42 flask-policy.S: $(XEN_ROOT)/xen/tools/binfile 43 $(SHELL) $(XEN_ROOT)/xen/tools/binfile -i $@ policy.bin xsm_flask_init_policy 48 policy.bin: FORCE 49 …$(MAKE) -f $(XEN_ROOT)/tools/flask/policy/Makefile.common -C $(XEN_ROOT)/tools/flask/policy FLASK_… [all …]
|
A D | .gitignore | 1 /policy.c
|
/xen/xen/drivers/acpi/ |
A D | pmstat.c | 192 struct cpufreq_policy *policy; in get_cpufreq_para() local 204 !policy || !policy->governor ) in get_cpufreq_para() 222 for_each_cpu(cpu, policy->cpus) in get_cpufreq_para() 261 op->u.get_para.scaling_cur_freq = policy->cur; in get_cpufreq_para() 262 op->u.get_para.scaling_max_freq = policy->max; in get_cpufreq_para() 271 if ( policy->governor->name[0] ) in get_cpufreq_para() 318 struct cpufreq_policy *policy; in set_cpufreq_para() local 322 if ( !policy || !policy->governor ) in set_cpufreq_para() 353 if ( !strnicmp(policy->governor->name, in set_cpufreq_para() 366 if ( !strnicmp(policy->governor->name, in set_cpufreq_para() [all …]
|
/xen/tools/tests/cpu-policy/ |
A D | Makefile | 4 TARGET-y := test-cpu-policy 26 $(RM) -f -- *.o .*.d .*.d2 test-cpu-policy 42 test-cpu-policy: test-cpu-policy.o msr.o cpuid.o policy.o
|
A D | .gitignore | 1 test-cpu-policy
|
/xen/tools/fuzz/cpu-policy/ |
A D | Makefile | 5 all: afl-policy-fuzzer 9 $(RM) -f -- *.o .*.d .*.d2 afl-policy-fuzzer 25 afl-policy-fuzzer: afl-policy-fuzzer.o msr.o cpuid.o
|
A D | .gitignore | 1 afl-policy-fuzzer
|
/xen/docs/misc/ |
A D | xsm-flask.txt | 57 to the normal security problem response policy 58 https://www.xenproject.org/security-policy.html. 99 FLASK policy overview 110 built-in policy is enabled ("Compile Xen with a built-in security policy"), the 113 The policy is generated from definition files in tools/flask/policy. Most 118 If not using the built-in policy, the XSM policy file needs to be copied to 209 MLS/MCS policy 212 If you want to use the MLS policy, then set TYPE=xen-mls in the policy Makefile 213 before building the policy. Note that the MLS constraints in policy/mls 247 policy. Static labeling will make security policy machine-specific and may [all …]
|
/xen/tools/libxl/ |
A D | libxl_cpuid.c | 31 if (cpuid_list[i].policy[j] != NULL) { in libxl_cpuid_dispose() 32 free(cpuid_list[i].policy[j]); in libxl_cpuid_dispose() 33 cpuid_list[i].policy[j] = NULL; in libxl_cpuid_dispose() 309 resstr = entry->policy[flag->reg - 1]; in libxl_cpuid_parse_config() 354 entry->policy[flag->reg - 1] = resstr; in libxl_cpuid_parse_config() 410 entry->policy[value][32] = 0; in libxl_cpuid_parse_config_xend() 547 l[i].policy[j] = NULL; in libxl__cpuid_policy_list_parse_json() 549 l[i].policy[j] = in libxl__cpuid_policy_list_parse_json() 592 if ((*src)[i].policy[j]) in libxl_cpuid_policy_list_copy() 593 (*dst)[i].policy[j] = in libxl_cpuid_policy_list_copy() [all …]
|
A D | libxl_flask.c | 63 int libxl_flask_loadpolicy(libxl_ctx *ctx, void *policy, uint32_t size) in libxl_flask_loadpolicy() argument 68 rc = xc_flask_load(ctx->xch, policy, size); in libxl_flask_loadpolicy()
|
/xen/tools/flask/policy/ |
A D | Makefile.common | 45 POLDIR := policy 50 FLASKDIR := ../../../xen/xsm/flask/policy 124 $(POLICY_FILENAME): $(FLASK_BUILD_DIR)/policy.conf 127 $(FLASK_BUILD_DIR)/policy.conf: $(POLICY_SECTIONS) $(MOD_CONF) 131 $(RM) $(FLASK_BUILD_DIR)/policy.conf $(POLICY_FILENAME)
|
/xen/tools/flask/policy/policy/ |
A D | global_tunables | 2 # This file is for the declaration of global policy tunables, booleans, 3 # and other components not defined within a specific policy module.
|
/xen/xen/include/xen/lib/x86/ |
A D | msr.h | 70 int x86_msr_copy_to_buffer(const struct msr_policy *policy, 90 int x86_msr_copy_from_buffer(struct msr_policy *policy,
|
/xen/tools/flask/policy/modules/ |
A D | nic_dev.te | 7 # labels statically in tools/flask/policy/policy/device_contexts
|
A D | dom0.te | 49 # Xen's security policy. 63 # Allow changing the security policy 66 # Audit policy change events even when they are allowed
|
/xen/xen/common/ |
A D | core_parking.c | 252 static int __init register_core_parking_policy(const struct cp_policy *policy) in register_core_parking_policy() argument 254 if ( !policy || !policy->next ) in register_core_parking_policy() 257 core_parking_policy = policy; in register_core_parking_policy()
|
/xen/tools/libxc/ |
A D | xc_cpuid_x86.c | 371 for ( unsigned int i = 0; i < ARRAY_SIZE(xend->policy); i++ ) in xc_cpuid_xend_policy() 377 if ( xend->policy[i] == NULL ) in xc_cpuid_xend_policy() 384 if ( xend->policy[i][j] == '1' ) in xc_cpuid_xend_policy() 386 else if ( xend->policy[i][j] == '0' ) in xc_cpuid_xend_policy() 388 else if ( xend->policy[i][j] == 'x' ) in xc_cpuid_xend_policy() 390 else if ( xend->policy[i][j] == 'k' || in xc_cpuid_xend_policy() 391 xend->policy[i][j] == 's' ) in xc_cpuid_xend_policy() 396 xend->policy[i][j], i, xend->policy[i]); in xc_cpuid_xend_policy()
|
/xen/xen/arch/x86/ |
A D | sysctl.c | 423 const struct cpu_policy *policy; in arch_do_sysctl() local 432 policy = &system_policies[ in arch_do_sysctl() 436 if ( !policy->cpuid || !policy->msr ) in arch_do_sysctl() 446 policy->cpuid, in arch_do_sysctl() 462 policy->msr, in arch_do_sysctl()
|