From owner-svn-src-projects@FreeBSD.ORG Thu Nov 22 04:17:32 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD940619; Thu, 22 Nov 2012 04:17:32 +0000 (UTC) (envelope-from neel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C2ACB8FC0C; Thu, 22 Nov 2012 04:17:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAM4HWRV091500; Thu, 22 Nov 2012 04:17:32 GMT (envelope-from neel@svn.freebsd.org) Received: (from neel@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAM4HWM6091499; Thu, 22 Nov 2012 04:17:32 GMT (envelope-from neel@svn.freebsd.org) Message-Id: <201211220417.qAM4HWM6091499@svn.freebsd.org> From: Neel Natu Date: Thu, 22 Nov 2012 04:17:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r243391 - projects/bhyve/usr.sbin/bhyve X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 04:17:33 -0000 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);