svn commit: r243391 - projects/bhyve/usr.sbin/bhyve
Neel Natu
neel at FreeBSD.org
Thu Nov 22 04:17:33 UTC 2012
Author: neel
Date: Thu Nov 22 04:17:32 2012
New Revision: 243391
URL: http://svnweb.freebsd.org/changeset/base/243391
Log:
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
Modified:
projects/bhyve/usr.sbin/bhyve/pci_passthru.c
Modified: projects/bhyve/usr.sbin/bhyve/pci_passthru.c
==============================================================================
--- projects/bhyve/usr.sbin/bhyve/pci_passthru.c Thu Nov 22 04:07:18 2012 (r243390)
+++ projects/bhyve/usr.sbin/bhyve/pci_passthru.c Thu Nov 22 04:17:32 2012 (r243391)
@@ -672,7 +672,7 @@ passthru_write(struct vmctx *ctx, int vc
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 vcp
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);
More information about the svn-src-projects
mailing list