-/* $OpenBSD: virtio.c,v 1.67 2018/09/11 13:45:29 ccardenas Exp $ */
+/* $OpenBSD: virtio.c,v 1.68 2018/09/13 04:23:36 pd Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
return (-1);
}
vmmci.vm_id = vm_id;
+ vmmci.irq = pci_get_dev_irq(vmmci.pci_id);
memset(&vmmci.timeout, 0, sizeof(struct event));
evtimer_set(&vmmci.timeout, vmmci_timeout, NULL);
return (0);
return (-1);
}
viornd.vm_id = vcp->vcp_id;
+ viornd.irq = pci_get_dev_irq(viornd.pci_id);
return (0);
}
vionet[i].rx_pending = 0;
vionet[i].vm_id = vcp->vcp_id;
vionet[i].vm_vmid = vm->vm_vmid;
+ vionet[i].irq = pci_get_dev_irq(vionet[i].pci_id);
memset(&vionet[i].event, 0, sizeof(struct event));
event_set(&vionet[i].event, vionet[i].fd,
__func__);
return (-1);
}
+ vioblk[i].vm_id = vcp->vcp_id;
+ vioblk[i].irq = pci_get_dev_irq(vioblk[i].pci_id);
}
return (0);
}
log_warnx("%s: unable to determine iso format", __func__);
return (-1);
}
+ vioscsi->vm_id = vcp->vcp_id;
+ vioscsi->irq = pci_get_dev_irq(vioscsi->pci_id);
return (0);
}