Avi Kivity wrote:
> Han, Weidong wrote:
>>> Need a KVM_CAP_ to indicate this is available.
>>> 
>>> 
>> 
>> KVM_ASSIGN_PCI_DEVICE and KVM_ASSIGN_IRQ don't need a KVM_CAP_xxx.
>> Why do you need it for KVM_DEASSIGN_PCI_DEVICE? 
>> 
>> 
> 
> #define KVM_CAP_DEVICE_ASSIGNMENT 17

Do you mean add it like that:

#ifdef KVM_CAP_DEVICE_ASSIGNMENT
#define KVM_ASSIGN_PCI_DEVICE _IOR(KVMIO, 0x69, \
                                                struct kvm_assigned_pci_dev)
#define KVM_ASSIGN_IRQ _IOR(KVMIO, 0x70, \
                                     struct kvm_assigned_irq)
#define KVM_DEASSIGN_PCI_DEVICE _IOR(KVMIO, 0x71, \
                                                     struct 
kvm_assigned_pci_dev)
#endif

Regards,
Weidong--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to