aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
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 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
583long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
584 unsigned long arg);
585
586#else
587
588static 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