diff options
author | Avi Kivity <avi@redhat.com> | 2009-08-26 07:57:50 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:09 -0500 |
commit | bfd99ff5d483b11c32bca49fbff7a5ac59038b0a (patch) | |
tree | e48d9dbf89f6f3940133f7b80559740152af3f7b /include/linux | |
parent | 367e1319b229110a27c53221c2fa32a6aa86d4a9 (diff) |
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) | |||
577 | return vcpu->kvm->bsp_vcpu_id == vcpu->vcpu_id; | 577 | return vcpu->kvm->bsp_vcpu_id == vcpu->vcpu_id; |
578 | } | 578 | } |
579 | #endif | 579 | #endif |
580 | |||
581 | #ifdef __KVM_HAVE_DEVICE_ASSIGNMENT | ||
582 | |||
583 | long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, | ||
584 | unsigned long arg); | ||
585 | |||
586 | #else | ||
587 | |||
588 | static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, | ||
589 | unsigned long arg) | ||
590 | { | ||
591 | return -ENOTTY; | ||
592 | } | ||
593 | |||
580 | #endif | 594 | #endif |
595 | |||
596 | #endif | ||
597 | |||