Searched refs:nmsrs (Results  1 – 8 of 8) sorted by relevance
| /Linux-v5.10/tools/testing/selftests/kvm/x86_64/ | 
| D | user_msr_test.c | 59 			.nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE,64 			.nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE,
 69 			.nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE,
 74 			.nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE,
 79 			.nmsrs = KVM_MSR_FILTER_MAX_BITMAP_SIZE * BITS_PER_BYTE,
 84 			.nmsrs = 1,
 
 | 
| D | xss_msr_test.c | 27 	for (i = 0; i < list->nmsrs; ++i) {  in is_supported_msr()
 | 
| /Linux-v5.10/tools/testing/selftests/kvm/lib/x86_64/ | 
| D | processor.c | 788 	buffer.header.nmsrs = 1;  in vcpu_get_msr()824 	buffer.header.nmsrs = 1;  in _vcpu_set_msr()
 923 	struct kvm_msr_list nmsrs;  in kvm_get_num_msrs_fd()  local
 926 	nmsrs.nmsrs = 0;  in kvm_get_num_msrs_fd()
 927 	r = ioctl(kvm_fd, KVM_GET_MSR_INDEX_LIST, &nmsrs);  in kvm_get_num_msrs_fd()
 931 	return nmsrs.nmsrs;  in kvm_get_num_msrs_fd()
 942 	int nmsrs, r, kvm_fd;  in kvm_get_msr_index_list()  local
 948 	nmsrs = kvm_get_num_msrs_fd(kvm_fd);  in kvm_get_msr_index_list()
 949 	list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0]));  in kvm_get_msr_index_list()
 950 	list->nmsrs = nmsrs;  in kvm_get_msr_index_list()
 [all …]
 
 | 
| /Linux-v5.10/arch/x86/include/uapi/asm/ | 
| D | kvm.h | 183 	__u32 nmsrs; /* number of msrs in entries */  member191 	__u32 nmsrs; /* number of msrs in entries */  member
 203 	__u32 nmsrs; /* number of msrs in bitmap */  member
 
 | 
| /Linux-v5.10/tools/arch/x86/include/uapi/asm/ | 
| D | kvm.h | 183 	__u32 nmsrs; /* number of msrs in entries */  member191 	__u32 nmsrs; /* number of msrs in entries */  member
 203 	__u32 nmsrs; /* number of msrs in bitmap */  member
 
 | 
| /Linux-v5.10/arch/x86/kvm/ | 
| D | x86.c | 1515 		u32 end = start + ranges[i].nmsrs;  in kvm_msr_allowed()3621 	for (i = 0; i < msrs->nmsrs; ++i)  in __msr_io()
 3648 	if (msrs.nmsrs >= MAX_IO_MSRS)  in msr_io()
 3651 	size = sizeof(struct kvm_msr_entry) * msrs.nmsrs;  in msr_io()
 3832 		n = msr_list.nmsrs;  in kvm_arch_dev_ioctl()
 3833 		msr_list.nmsrs = num_msrs_to_save + num_emulated_msrs;  in kvm_arch_dev_ioctl()
 3837 		if (n < msr_list.nmsrs)  in kvm_arch_dev_ioctl()
 3885 		n = msr_list.nmsrs;  in kvm_arch_dev_ioctl()
 3886 		msr_list.nmsrs = num_msr_based_features;  in kvm_arch_dev_ioctl()
 3890 		if (n < msr_list.nmsrs)  in kvm_arch_dev_ioctl()
 [all …]
 
 | 
| /Linux-v5.10/arch/x86/include/asm/ | 
| D | kvm_host.h | 882 	u32 nmsrs;  member
 | 
| /Linux-v5.10/Documentation/virt/kvm/ | 
| D | api.rst | 211 	__u32 nmsrs; /* number of msrs in entries */215 The user fills in the size of the indices array in nmsrs, and in return
 216 kvm adjusts nmsrs to reflect the actual number of msrs and fills in the
 621 	__u32 nmsrs; /* number of msrs in entries */
 633 Application code should set the 'nmsrs' member (which indicates the
 650 Application code should set the 'nmsrs' member (which indicates the
 4725 	__u32 nmsrs; /* number of msrs in bitmap */
 4780 Calling this ioctl with an empty set of ranges (all nmsrs == 0) disables MSR
 4798 The range goes from MSR index [base .. base+nmsrs]. The flags field
 
 |