Searched refs:msr_list (Results 1 – 2 of 2) sorted by relevance
960 const struct kvm_msr_list *msr_list = kvm_get_msr_index_list(); in vcpu_save_state() local981 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()
4577 struct kvm_msr_list msr_list; in kvm_arch_dev_ioctl() local4581 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() local4634 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 …]