Home
last modified time | relevance | path

Searched refs:MSR_IA32_PERF_CAPABILITIES (Results 1 – 2 of 2) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dvmx_pmu_msrs_test.c55 wrmsr(MSR_IA32_PERF_CAPABILITIES, PMU_CAP_LBR_FMT); in guest_code()
69 host_cap.capabilities = kvm_get_feature_msr(MSR_IA32_PERF_CAPABILITIES); in main()
93 vcpu_set_msr(vm, 0, MSR_IA32_PERF_CAPABILITIES, PMU_CAP_FW_WRITES); in main()
96 ASSERT_EQ(vcpu_get_msr(vm, VCPU_ID, MSR_IA32_PERF_CAPABILITIES), PMU_CAP_FW_WRITES); in main()
100 ASSERT_EQ(vcpu_get_msr(vm, VCPU_ID, MSR_IA32_PERF_CAPABILITIES), PMU_CAP_FW_WRITES); in main()
103 vcpu_set_msr(vm, 0, MSR_IA32_PERF_CAPABILITIES, 0); in main()
104 ASSERT_EQ(vcpu_get_msr(vm, VCPU_ID, MSR_IA32_PERF_CAPABILITIES), 0); in main()
106 vcpu_set_msr(vm, 0, MSR_IA32_PERF_CAPABILITIES, host_cap.lbr_format); in main()
107 ASSERT_EQ(vcpu_get_msr(vm, VCPU_ID, MSR_IA32_PERF_CAPABILITIES), (u64)host_cap.lbr_format); in main()
110 ret = _vcpu_set_msr(vm, 0, MSR_IA32_PERF_CAPABILITIES, PMU_CAP_LBR_FMT); in main()
/external/crosvm/x86_64/src/
Dmsr_index.rs71 pub const MSR_IA32_PERF_CAPABILITIES: ::std::os::raw::c_uint = 0x00000345; constant