Amit Shah wrote:
+#ifdef KVM_CAP_DEVICE_ASSIGNMENT
+int kvm_assign_pci_device(kvm_context_t kvm,
+                         struct kvm_assigned_pci_dev *assigned_dev)
+{
+       return ioctl(kvm->vm_fd, KVM_ASSIGN_PCI_DEVICE, assigned_dev);

Convert -1s to -errno, to avoid problems with errno being overwritten later.

+}
+
+int kvm_assign_irq(kvm_context_t kvm,
+                  struct kvm_assigned_irq *assigned_irq)
+{
+       return ioctl(kvm->vm_fd, KVM_ASSIGN_IRQ, assigned_irq);
+}
+#endif


--
error compiling committee.c: too many arguments to function

--
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