Lines Matching refs:kvm_regs
4092 struct kvm_regs *kvm_regs; in kvm_vcpu_ioctl() local
4095 kvm_regs = kzalloc(sizeof(struct kvm_regs), GFP_KERNEL_ACCOUNT); in kvm_vcpu_ioctl()
4096 if (!kvm_regs) in kvm_vcpu_ioctl()
4098 r = kvm_arch_vcpu_ioctl_get_regs(vcpu, kvm_regs); in kvm_vcpu_ioctl()
4102 if (copy_to_user(argp, kvm_regs, sizeof(struct kvm_regs))) in kvm_vcpu_ioctl()
4106 kfree(kvm_regs); in kvm_vcpu_ioctl()
4110 struct kvm_regs *kvm_regs; in kvm_vcpu_ioctl() local
4112 kvm_regs = memdup_user(argp, sizeof(*kvm_regs)); in kvm_vcpu_ioctl()
4113 if (IS_ERR(kvm_regs)) { in kvm_vcpu_ioctl()
4114 r = PTR_ERR(kvm_regs); in kvm_vcpu_ioctl()
4117 r = kvm_arch_vcpu_ioctl_set_regs(vcpu, kvm_regs); in kvm_vcpu_ioctl()
4118 kfree(kvm_regs); in kvm_vcpu_ioctl()