]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: define KVM_CAP_DEVICE_DEASSIGNMENT
authorWeidong Han <weidong.han@intel.com>
Fri, 13 Feb 2009 02:50:56 +0000 (10:50 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:12 +0000 (11:03 +0200)
define KVM_CAP_DEVICE_DEASSIGNMENT and KVM_DEASSIGN_PCI_DEVICE
for device deassignment.

the ioctl has been already implemented in the
commit: 0a920356748df4fb06e86c21c23d2ed6d31d37ad

Acked-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm.h

index dd48225d182406e1a6c447983b09216c993cf399..0d94b274c3aef969eca5a3acec48fbba48a1b032 100644 (file)
@@ -406,6 +406,9 @@ struct kvm_trace_rec {
 #define KVM_CAP_IRQ_ROUTING 25
 #endif
 #define KVM_CAP_IRQ_INJECT_STATUS 26
+#ifdef __KVM_HAVE_DEVICE_ASSIGNMENT
+#define KVM_CAP_DEVICE_DEASSIGNMENT 27
+#endif
 
 #ifdef KVM_CAP_IRQ_ROUTING
 
@@ -480,6 +483,8 @@ struct kvm_irq_routing {
 #define KVM_ASSIGN_IRQ _IOR(KVMIO, 0x70, \
                            struct kvm_assigned_irq)
 #define KVM_REINJECT_CONTROL      _IO(KVMIO, 0x71)
+#define KVM_DEASSIGN_PCI_DEVICE _IOR(KVMIO, 0x72, \
+                                    struct kvm_assigned_pci_dev)
 
 /*
  * ioctls for vcpu fds