aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWeidong Han <weidong.han@intel.com>2008-12-02 08:24:23 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 08:02:19 -0500
commit0a920356748df4fb06e86c21c23d2ed6d31d37ad (patch)
tree545bf8591b48b8f33af3f03f50a536424853a259 /include
parent260782bcfdaaa7850f29d6bb2ec6603019168c57 (diff)
KVM: support device deassignment
Support device deassignment, it can be used in device hotplug. Signed-off-by: Weidong Han <weidong.han@intel.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index c96739b4b7a3..ce5d1c17ce26 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -334,6 +334,8 @@ int kvm_iommu_map_guest(struct kvm *kvm);
334int kvm_iommu_unmap_guest(struct kvm *kvm); 334int kvm_iommu_unmap_guest(struct kvm *kvm);
335int kvm_assign_device(struct kvm *kvm, 335int kvm_assign_device(struct kvm *kvm,
336 struct kvm_assigned_dev_kernel *assigned_dev); 336 struct kvm_assigned_dev_kernel *assigned_dev);
337int kvm_deassign_device(struct kvm *kvm,
338 struct kvm_assigned_dev_kernel *assigned_dev);
337#else /* CONFIG_DMAR */ 339#else /* CONFIG_DMAR */
338static inline int kvm_iommu_map_pages(struct kvm *kvm, 340static inline int kvm_iommu_map_pages(struct kvm *kvm,
339 gfn_t base_gfn, 341 gfn_t base_gfn,
@@ -357,6 +359,12 @@ static inline int kvm_assign_device(struct kvm *kvm,
357{ 359{
358 return 0; 360 return 0;
359} 361}
362
363static inline int kvm_deassign_device(struct kvm *kvm,
364 struct kvm_assigned_dev_kernel *assigned_dev)
365{
366 return 0;
367}
360#endif /* CONFIG_DMAR */ 368#endif /* CONFIG_DMAR */
361 369
362static inline void kvm_guest_enter(void) 370static inline void kvm_guest_enter(void)