aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kvm/arm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index 9c697db2787e..cc5adb9349ef 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -797,6 +797,19 @@ long kvm_arch_vm_ioctl(struct file *filp,
797 return -EFAULT; 797 return -EFAULT;
798 return kvm_vm_ioctl_set_device_addr(kvm, &dev_addr); 798 return kvm_vm_ioctl_set_device_addr(kvm, &dev_addr);
799 } 799 }
800 case KVM_ARM_PREFERRED_TARGET: {
801 int err;
802 struct kvm_vcpu_init init;
803
804 err = kvm_vcpu_preferred_target(&init);
805 if (err)
806 return err;
807
808 if (copy_to_user(argp, &init, sizeof(init)))
809 return -EFAULT;
810
811 return 0;
812 }
800 default: 813 default:
801 return -EINVAL; 814 return -EINVAL;
802 } 815 }