Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2012 04:17:32 +0000 (UTC)
From:      Neel Natu <neel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r243391 - projects/bhyve/usr.sbin/bhyve
Message-ID:  <201211220417.qAM4HWM6091499@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211220417.qAM4HWM6091499>