On 2016/2/8 20:40, Christoffer Dall wrote:
+ case KVM_SET_DEVICE_ATTR: {
>+ if (copy_from_user(&attr, argp, sizeof(attr)))
>+ return -EFAULT;
>+ return kvm_arm_vcpu_set_attr(vcpu, &attr);
>+ }
>+ case KVM_GET_DEVICE_ATTR: {
>+ if (copy_from_user(&attr, argp, sizeof(attr)))
>+ return -EFAULT;
>+ return kvm_arm_vcpu_get_attr(vcpu, &attr);
>+ }
>+ case KVM_HAS_DEVICE_ATTR: {
>+ if (copy_from_user(&attr, argp, sizeof(attr)))
>+ return -EFAULT;
>+ return kvm_arm_vcpu_has_attr(vcpu, &attr);
>+ }
do we share the ioctl number space across device, VM, and VCPU file
descriptors?
Yeah, they're shared across device, VM, and VCPU.
Thanks,
--
Shannon
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html