Home
last modified time | relevance | path

Searched refs:msrs (Results 1 – 7 of 7) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c1002 struct kvm_msrs msrs; member
1040 state = malloc(sizeof(*state) + nmsrs * sizeof(state->msrs.entries[0])); in vcpu_save_state()
1076 state->msrs.nmsrs = nmsrs; in vcpu_save_state()
1078 state->msrs.entries[i].index = list->indices[i]; in vcpu_save_state()
1079 r = ioctl(vcpu->fd, KVM_GET_MSRS, &state->msrs); in vcpu_save_state()
1114 r = ioctl(vcpu->fd, KVM_SET_MSRS, &state->msrs); in vcpu_load_state()
1115 … TEST_ASSERT(r == state->msrs.nmsrs, "Unexpected result from KVM_SET_MSRS, r: %i (failed at %x)", in vcpu_load_state()
1116 r, r == state->msrs.nmsrs ? -1 : state->msrs.entries[r].index); in vcpu_load_state()
/external/syzkaller/pkg/ifuzz/
Dpseudo.go18 msr := msrs[r.Intn(len(msrs))]
31 msr := msrs[r.Intn(len(msrs))]
569 var msrs = []uint32{ var
/external/u-boot/arch/x86/include/asm/
Dmsr.h39 struct msr *msrs; member
257 void msrs_free(struct msr *msrs);
/external/stressapptest/src/
Dworker.cc3462 if (previous->msrs[msr] > current->msrs[msr]) { in ComputeDelta()
3464 "skipping interval\n", kCpuRegisters[msr], previous->msrs[msr], in ComputeDelta()
3465 current->msrs[msr]); in ComputeDelta()
3468 delta->msrs[msr] = current->msrs[msr] - previous->msrs[msr]; in ComputeDelta()
3473 if (delta->msrs[kMsrTsc] < (1000 * 1000)) { in ComputeDelta()
3493 double frequency = 1.0 * delta.msrs[kMsrTsc] / 1000000 in ComputeFrequency()
3494 * delta.msrs[kMsrAperf] / delta.msrs[kMsrMperf] / interval; in ComputeFrequency()
3592 if (!os_->ReadMSR(cpu, kCpuRegisters[msr].msr, &data->msrs[msr])) { in GetMsrs()
Dworker.h859 uint64 msrs[kMsrLast]; // The values of the MSRs. member
/external/syzkaller/executor/
Dcommon_kvm_amd64.h160 struct kvm_msrs* msrs = (struct kvm_msrs*)buf; in setup_syscall_msrs() local
161 struct kvm_msr_entry* entries = msrs->entries; in setup_syscall_msrs()
162 msrs->nmsrs = 5; in setup_syscall_msrs()
173 ioctl(cpufd, KVM_SET_MSRS, msrs); in setup_syscall_msrs()
/external/syzkaller/pkg/csource/
Dgenerated.go1672 struct kvm_msrs* msrs = (struct kvm_msrs*)buf;
1673 struct kvm_msr_entry* entries = msrs->entries;
1674 msrs->nmsrs = 5;
1685 ioctl(cpufd, KVM_SET_MSRS, msrs);