From owner-freebsd-current@FreeBSD.ORG Wed Jul 20 12:33:08 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 744FE1065670 for ; Wed, 20 Jul 2011 12:33:08 +0000 (UTC) (envelope-from decke@FreeBSD.org) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 0CA278FC0A for ; Wed, 20 Jul 2011 12:33:07 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 1D5F9D; Wed, 20 Jul 2011 14:33:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Wed, 20 Jul 2011 14:33:07 +0200 From: Bernhard Froehlich To: John Baldwin In-Reply-To: <201107200741.26362.jhb@freebsd.org> References: <4E263EFE.3040200@FreeBSD.org> <201107200741.26362.jhb@freebsd.org> Message-ID: <565082b8e8b3e358266054e58e591e12@bluelife.at> X-Sender: decke@FreeBSD.org User-Agent: Roundcube Webmail/0.5.3 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B0209.4E26CB02.0088,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: Steve Wills , freebsd-current@freebsd.org Subject: Re: em problem in virtualbox since the weekend X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2011 12:33:08 -0000 On Wed, 20 Jul 2011 07:41:26 -0400, John Baldwin wrote: > On Tuesday, July 19, 2011 10:35:42 pm Steve Wills wrote: >> Hi, >> >> While testing some other things, I found -CURRENT from yesterday doesn't >> work with the em0 in my VirtualBox 4.0.8 (a little out of date >> admittedly). It worked Friday or Saturday I think. Anyone else seen this >> or should I open a PR? Has the code changed or am I perhaps >> misremembering dates? The error reported is: >> >> em0: Unable to allocate bus resource: memory >> em0: Allocation of PCI resources failed > > This is due to a bug in VirtualBox's BIOS implementation. Someone > should file > a bug report with VirtualBox to ask them to fix their BIOS. The problem is > that they claim that the Host-PCI bridge in their system only decodes > addresses 0xa0000-0xbffff (i.e. the VGA window) via the "Producer" resources > in the _CRS method of the Host-PCI bridge device. This tells the OS > that all > the existing PCI devices are using invalid memory address ranges but that > there is also no available address space to allocate for PCI devices such as > em0. > > You can workaround this by setting "debug.acpi.disabled=hostres" until > VirtualBox fixes their code. I'm happy to provide further > clarification to an > existing VirtaulBox bug report if needed. Thanks a lot for the analysis! I've talked to one of the virtualbox developers about that but they are not aware of such problems with Linux or Windows guests yet. So they are currently unsure if it's a VirtualBox or FreeBSD fault and if it's their fault why it works fine with other guests. I'm also unsure because I haven't heard of that problem before and now multiple people complain. That looks more like a FreeBSD related problem on current or stable. I think it would be good if someone could try to reproduce that with emulators/virtualbox-ose-legacy which is 3.2.12 to get some vbox dev look into the problem again. -- Bernhard Froehlich http://www.bluelife.at/