summaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-08-26 14:57:50 +0300
committerAvi Kivity <avi@redhat.com>2009-12-03 09:32:09 +0200
commitbfd99ff5d483b11c32bca49fbff7a5ac59038b0a (patch)
treee48d9dbf89f6f3940133f7b80559740152af3f7b /include/linux/kvm_host.h
parent367e1319b229110a27c53221c2fa32a6aa86d4a9 (diff)
downloadop-kernel-dev-bfd99ff5d483b11c32bca49fbff7a5ac59038b0a.zip
op-kernel-dev-bfd99ff5d483b11c32bca49fbff7a5ac59038b0a.tar.gz
KVM: Move assigned device code to own file
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 4aa5e1d..c0a1cc3 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -577,4 +577,21 @@ static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu)
return vcpu->kvm->bsp_vcpu_id == vcpu->vcpu_id;
}
#endif
+
+#ifdef __KVM_HAVE_DEVICE_ASSIGNMENT
+
+long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
+ unsigned long arg);
+
+#else
+
+static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
+ unsigned long arg)
+{
+ return -ENOTTY;
+}
+
#endif
+
+#endif
+
OpenPOWER on IntegriCloud