diff options
author | Avi Kivity <avi@redhat.com> | 2009-08-26 14:57:50 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 09:32:09 +0200 |
commit | bfd99ff5d483b11c32bca49fbff7a5ac59038b0a (patch) | |
tree | e48d9dbf89f6f3940133f7b80559740152af3f7b /include/linux | |
parent | 367e1319b229110a27c53221c2fa32a6aa86d4a9 (diff) | |
download | linux-bfd99ff5d483b11c32bca49fbff7a5ac59038b0a.tar.gz linux-bfd99ff5d483b11c32bca49fbff7a5ac59038b0a.tar.bz2 linux-bfd99ff5d483b11c32bca49fbff7a5ac59038b0a.zip |
KVM: Move assigned device code to own file
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm_host.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 4aa5e1d9a797..c0a1cc35f080 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 + |