|
@@ -764,8 +764,6 @@ void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id);
|
|
|
#ifdef CONFIG_KVM_DEVICE_ASSIGNMENT
|
|
|
int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot);
|
|
|
void kvm_iommu_unmap_pages(struct kvm *kvm, struct kvm_memory_slot *slot);
|
|
|
-int kvm_iommu_map_guest(struct kvm *kvm);
|
|
|
-int kvm_iommu_unmap_guest(struct kvm *kvm);
|
|
|
int kvm_assign_device(struct kvm *kvm,
|
|
|
struct kvm_assigned_dev_kernel *assigned_dev);
|
|
|
int kvm_deassign_device(struct kvm *kvm,
|
|
@@ -781,11 +779,6 @@ static inline void kvm_iommu_unmap_pages(struct kvm *kvm,
|
|
|
struct kvm_memory_slot *slot)
|
|
|
{
|
|
|
}
|
|
|
-
|
|
|
-static inline int kvm_iommu_unmap_guest(struct kvm *kvm)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
#endif
|
|
|
|
|
|
static inline void kvm_guest_enter(void)
|
|
@@ -1005,25 +998,6 @@ static inline bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu) { return true; }
|
|
|
|
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_KVM_DEVICE_ASSIGNMENT
|
|
|
-
|
|
|
-long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
|
|
|
- unsigned long arg);
|
|
|
-
|
|
|
-void kvm_free_all_assigned_devices(struct kvm *kvm);
|
|
|
-
|
|
|
-#else
|
|
|
-
|
|
|
-static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
|
|
|
- unsigned long arg)
|
|
|
-{
|
|
|
- return -ENOTTY;
|
|
|
-}
|
|
|
-
|
|
|
-static inline void kvm_free_all_assigned_devices(struct kvm *kvm) {}
|
|
|
-
|
|
|
-#endif
|
|
|
-
|
|
|
static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu)
|
|
|
{
|
|
|
set_bit(req, &vcpu->requests);
|