diff options
author | neel <neel@FreeBSD.org> | 2012-11-22 04:17:32 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2012-11-22 04:17:32 +0000 |
commit | 76430d4106c5cb90837c5f728272d9f249e085c4 (patch) | |
tree | fac180b2d41c933779a23a4e33297c869c82a9fe | |
parent | d8bfa0f5754e3a60b0d0e1d425a6038be554e73d (diff) | |
download | FreeBSD-src-76430d4106c5cb90837c5f728272d9f249e085c4.zip FreeBSD-src-76430d4106c5cb90837c5f728272d9f249e085c4.tar.gz |
MSI-X does not need to be enabled in the message control register for the
guest to access the MSI-x tables.
Obtained from: NetApp
-rw-r--r-- | usr.sbin/bhyve/pci_passthru.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/pci_passthru.c b/usr.sbin/bhyve/pci_passthru.c index 94e4416..7ac6e3d 100644 --- a/usr.sbin/bhyve/pci_passthru.c +++ b/usr.sbin/bhyve/pci_passthru.c @@ -672,7 +672,7 @@ passthru_write(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx, sc = pi->pi_arg; - if (pi->pi_msix.enabled && pi->pi_msix.table_bar == baridx) { + if (pi->pi_msix.table_bar == baridx) { msix_table_write(ctx, vcpu, sc, offset, size, value); } else { assert(pi->pi_bar[baridx].type == PCIBAR_IO); @@ -696,7 +696,7 @@ passthru_read(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx, sc = pi->pi_arg; - if (pi->pi_msix.enabled && pi->pi_msix.table_bar == baridx) { + if (pi->pi_msix.table_bar == baridx) { val = msix_table_read(sc, offset, size); } else { assert(pi->pi_bar[baridx].type == PCIBAR_IO); |