From owner-svn-src-head@FreeBSD.ORG Mon Jun 9 19:55:51 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4718F5FC; Mon, 9 Jun 2014 19:55:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 340E52BF3; Mon, 9 Jun 2014 19:55:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s59Jtp96000815; Mon, 9 Jun 2014 19:55:51 GMT (envelope-from tychon@svn.freebsd.org) Received: (from tychon@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s59JtpL9000814; Mon, 9 Jun 2014 19:55:51 GMT (envelope-from tychon@svn.freebsd.org) Message-Id: <201406091955.s59JtpL9000814@svn.freebsd.org> From: Tycho Nightingale Date: Mon, 9 Jun 2014 19:55:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267294 - head/usr.sbin/bhyve X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 19:55:51 -0000 Author: tychon Date: Mon Jun 9 19:55:50 2014 New Revision: 267294 URL: http://svnweb.freebsd.org/changeset/base/267294 Log: r267169 should apply to 64-bit BARs as well. Reviewed by: neel Modified: head/usr.sbin/bhyve/pci_emul.c Modified: head/usr.sbin/bhyve/pci_emul.c ============================================================================== --- head/usr.sbin/bhyve/pci_emul.c Mon Jun 9 19:36:08 2014 (r267293) +++ head/usr.sbin/bhyve/pci_emul.c Mon Jun 9 19:55:50 2014 (r267294) @@ -376,7 +376,7 @@ pci_emul_mem_handler(struct vmctx *ctx, offset = addr - pdi->pi_bar[bidx].addr; if (dir == MEM_F_WRITE) { - if (pdi->pi_bar[bidx].type == PCIBAR_MEM32 && size == 8) { + if (size == 8) { (*pe->pe_barwrite)(ctx, vcpu, pdi, bidx, offset, 4, *val & 0xffffffff); (*pe->pe_barwrite)(ctx, vcpu, pdi, bidx, offset + 4, @@ -386,7 +386,7 @@ pci_emul_mem_handler(struct vmctx *ctx, size, *val); } } else { - if (pdi->pi_bar[bidx].type == PCIBAR_MEM32 && size == 8) { + if (size == 8) { *val = (*pe->pe_barread)(ctx, vcpu, pdi, bidx, offset, 4); *val |= (*pe->pe_barread)(ctx, vcpu, pdi, bidx,