Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c954 const struct kvm_msr_list *msr_list = kvm_get_msr_index_list(); in vcpu_save_state() local
975 state = malloc(sizeof(*state) + msr_list->nmsrs * sizeof(state->msrs.entries[0])); in vcpu_save_state()
999 state->msrs.nmsrs = msr_list->nmsrs; in vcpu_save_state()
1000 for (i = 0; i < msr_list->nmsrs; i++) in vcpu_save_state()
1001 state->msrs.entries[i].index = msr_list->indices[i]; in vcpu_save_state()
/linux-6.6.21/arch/x86/kvm/
Dx86.c4693 struct kvm_msr_list msr_list; in kvm_arch_dev_ioctl() local
4697 if (copy_from_user(&msr_list, user_msr_list, sizeof(msr_list))) in kvm_arch_dev_ioctl()
4699 n = msr_list.nmsrs; in kvm_arch_dev_ioctl()
4700 msr_list.nmsrs = num_msrs_to_save + num_emulated_msrs; in kvm_arch_dev_ioctl()
4701 if (copy_to_user(user_msr_list, &msr_list, sizeof(msr_list))) in kvm_arch_dev_ioctl()
4704 if (n < msr_list.nmsrs) in kvm_arch_dev_ioctl()
4746 struct kvm_msr_list msr_list; in kvm_arch_dev_ioctl() local
4750 if (copy_from_user(&msr_list, user_msr_list, sizeof(msr_list))) in kvm_arch_dev_ioctl()
4752 n = msr_list.nmsrs; in kvm_arch_dev_ioctl()
4753 msr_list.nmsrs = num_msr_based_features; in kvm_arch_dev_ioctl()
[all …]