Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c863 buffer.header.nmsrs = 1; in vcpu_get_msr()
898 buffer.header.nmsrs = 1; in _vcpu_set_msr()
1028 struct kvm_msr_list nmsrs; in kvm_get_num_msrs_fd() local
1031 nmsrs.nmsrs = 0; in kvm_get_num_msrs_fd()
1032 r = ioctl(kvm_fd, KVM_GET_MSR_INDEX_LIST, &nmsrs); in kvm_get_num_msrs_fd()
1036 return nmsrs.nmsrs; in kvm_get_num_msrs_fd()
1047 int nmsrs, r, kvm_fd; in kvm_get_msr_index_list() local
1053 nmsrs = kvm_get_num_msrs_fd(kvm_fd); in kvm_get_msr_index_list()
1054 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_get_msr_index_list()
1055 list->nmsrs = nmsrs; in kvm_get_msr_index_list()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dxss_msr_test.c27 for (i = 0; i < list->nmsrs; ++i) { in is_supported_msr()
/external/kernel-headers/original/uapi/asm-x86/asm/
Dkvm.h183 __u32 nmsrs; /* number of msrs in entries */ member
191 __u32 nmsrs; /* number of msrs in entries */ member
/external/crosvm/kvm/src/
Dlib.rs202 msr_list[0].nmsrs = MAX_KVM_MSR_ENTRIES as u32; in get_msr_index_list()
214 let mut nmsrs = msr_list[0].nmsrs; in get_msr_index_list() localVariable
219 if nmsrs > MAX_KVM_MSR_ENTRIES as u32 { in get_msr_index_list()
220 nmsrs = MAX_KVM_MSR_ENTRIES as u32; in get_msr_index_list()
222 msr_list[0].indices.as_slice(nmsrs as usize) in get_msr_index_list()
1442 msrs[0].nmsrs = msr_entries.len() as u32; in get_msrs()
/external/crosvm/x86_64/src/
Dregs.rs154 msrs.nmsrs = entry_vec.len() as u32; in setup_msrs()
/external/crosvm/src/plugin/
Dvcpu.rs511 kvm_msrs.nmsrs = request_entries.len() as u32; in handle_request()
/external/crosvm/kvm_sys/src/x86/
Dbindings.rs2049 pub nmsrs: __u32, field
2068 unsafe { &(*(::std::ptr::null::<kvm_msrs>())).nmsrs as *const _ as usize }, in bindgen_test_layout_kvm_msrs()
2074 stringify!(nmsrs) in bindgen_test_layout_kvm_msrs()
2101 pub nmsrs: __u32, field
2117 unsafe { &(*(::std::ptr::null::<kvm_msr_list>())).nmsrs as *const _ as usize }, in bindgen_test_layout_kvm_msr_list()
2123 stringify!(nmsrs) in bindgen_test_layout_kvm_msr_list()