From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 6 17:44:22 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8D0D1065717; Mon, 6 Apr 2009 17:44:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 800DD8FC24; Mon, 6 Apr 2009 17:44:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 30A4146BC6; Mon, 6 Apr 2009 13:44:22 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 01AAE8A04D; Mon, 6 Apr 2009 13:44:21 -0400 (EDT) From: John Baldwin To: Ivan Voras Date: Mon, 6 Apr 2009 13:42:21 -0400 User-Agent: KMail/1.9.7 References: <1366225354.253456.1238948619308.JavaMail.root@vms124.mailsrvcs.net> <200904061154.19601.jhb@freebsd.org> <9bbcef730904061007y66a8440al3c43a6a6b6cd6ed6@mail.gmail.com> In-Reply-To: <9bbcef730904061007y66a8440al3c43a6a6b6cd6ed6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200904061342.22000.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 06 Apr 2009 13:44:21 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=4.2 tests=RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org, Sergey Babkin Subject: Re: Patch for MS Hyper V (virtualization) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2009 17:44:23 -0000 On Monday 06 April 2009 1:07:38 pm Ivan Voras wrote: > 2009/4/6 John Baldwin : > > On Sunday 05 April 2009 12:23:39 pm Sergey Babkin wrote: >=20 > > Hmm, the problem is we need to be able to write to BARs to size them. = =C2=A0Any=20 OS > > needs to be able to do this to know what address space regions are being > > decoded by devices. =C2=A0We can't avoid writing to BARs. >=20 > I have only vague idea what BARs are and if it's the correct diagnosis > in this case, but the fact is that other operating systems (Windows, > Linux tested) work, so either there is a way around it or the original > premise is wrong-ish. Every OS writes to BARs to size them during boot. It's the defined procedu= re=20 for sizing them. A BAR is a base address register, and it is how a PCI=20 device gets memory and I/O port resources. OS (or BIOS) writes a starting= =20 address into the register to tell the PCI device where a given=20 resource "starts". =2D-=20 John Baldwin