diff options
author | 2013-09-22 09:58:46 +0000 | |
---|---|---|
committer | 2013-09-22 09:58:46 +0000 | |
commit | 2d1c7d47da99a7f42083d70cdb8c150301913750 (patch) | |
tree | 937ca250203b45cb762256a3b9ea61ee479d0980 | |
parent | The readdir vop should set uio_offset to the cookie of the entry (diff) | |
download | wireguard-openbsd-2d1c7d47da99a7f42083d70cdb8c150301913750.tar.xz wireguard-openbsd-2d1c7d47da99a7f42083d70cdb8c150301913750.zip |
Support MSI for virtio. This is useful for bhyve.
-rw-r--r-- | sys/dev/pci/virtio_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/virtio_pci.c b/sys/dev/pci/virtio_pci.c index 89adc968f11..978107178f7 100644 --- a/sys/dev/pci/virtio_pci.c +++ b/sys/dev/pci/virtio_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtio_pci.c,v 1.6 2013/03/10 21:58:02 sf Exp $ */ +/* $OpenBSD: virtio_pci.c,v 1.7 2013/09/22 09:58:46 sf Exp $ */ /* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */ /* @@ -211,7 +211,7 @@ virtio_pci_attach(struct device *parent, struct device *self, void *aux) goto fail_1; } - if (pci_intr_map(pa, &ih)) { + if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih)) { printf("%s: couldn't map interrupt\n", vsc->sc_dev.dv_xname); goto fail_2; } |