Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c960 const struct kvm_msr_list *msr_list = kvm_get_msr_index_list(); in vcpu_save_state() local
981 state = malloc(sizeof(*state) + msr_list->nmsrs * sizeof(state->msrs.entries[0])); in vcpu_save_state()
1004 state->msrs.nmsrs = msr_list->nmsrs; in vcpu_save_state()
1005 for (i = 0; i < msr_list->nmsrs; i++) in vcpu_save_state()
1006 state->msrs.entries[i].index = msr_list->indices[i]; in vcpu_save_state()
/linux-6.1.9/arch/x86/kvm/
Dx86.c4577 struct kvm_msr_list msr_list; in kvm_arch_dev_ioctl() local
4581 if (copy_from_user(&msr_list, user_msr_list, sizeof(msr_list))) in kvm_arch_dev_ioctl()
4583 n = msr_list.nmsrs; in kvm_arch_dev_ioctl()
4584 msr_list.nmsrs = num_msrs_to_save + num_emulated_msrs; in kvm_arch_dev_ioctl()
4585 if (copy_to_user(user_msr_list, &msr_list, sizeof(msr_list))) in kvm_arch_dev_ioctl()
4588 if (n < msr_list.nmsrs) in kvm_arch_dev_ioctl()
4630 struct kvm_msr_list msr_list; in kvm_arch_dev_ioctl() local
4634 if (copy_from_user(&msr_list, user_msr_list, sizeof(msr_list))) in kvm_arch_dev_ioctl()
4636 n = msr_list.nmsrs; in kvm_arch_dev_ioctl()
4637 msr_list.nmsrs = num_msr_based_features; in kvm_arch_dev_ioctl()
[all …]