Commit ec2c7bce authored by Avi Kivity's avatar Avi Kivity

KVM: Move assigned device code to own file

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent b0118f49
......@@ -581,12 +581,13 @@ static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu)
#ifdef __KVM_HAVE_DEVICE_ASSIGNMENT
long kvm_assigned_dev_ioctl(struct kvm *kvm, unsigned ioctl, unsigned long arg);
long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
unsigned long arg);
#else
static inline
long kvm_assigned_dev_ioctl(struct kvm *kvm, unsigned ioctl, unsigned long arg)
static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
unsigned long arg)
{
return -ENOTTY;
}
......
......@@ -1493,7 +1493,7 @@ static long kvm_vm_ioctl(struct file *filp,
default:
r = kvm_arch_vm_ioctl(filp, ioctl, arg);
if (r == -ENOTTY)
r = kvm_assigned_dev_ioctl(kvm, ioctl, arg);
r = kvm_vm_ioctl_assigned_device(kvm, ioctl, arg);
}
out:
return r;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment