Skip to content

Commit

Permalink
KVM: define KVM_CAP_DEVICE_DEASSIGNMENT
Browse files Browse the repository at this point in the history
define KVM_CAP_DEVICE_DEASSIGNMENT and KVM_DEASSIGN_PCI_DEVICE
for device deassignment.

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

Acked-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Weidong Han authored and Avi Kivity committed Mar 24, 2009
1 parent b0a1835 commit 2df8a40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2df8a40

Please sign in to comment.