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
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm