From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7Xzo-00066W-1f for qemu-devel@nongnu.org; Fri, 22 May 2009 12:53:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7Xzj-00066K-HP for qemu-devel@nongnu.org; Fri, 22 May 2009 12:53:23 -0400 Received: from [199.232.76.173] (port=59294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Xzj-00066H-Et for qemu-devel@nongnu.org; Fri, 22 May 2009 12:53:19 -0400 Received: from mail-bw0-f175.google.com ([209.85.218.175]:35319) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7Xzj-0008Rp-0l for qemu-devel@nongnu.org; Fri, 22 May 2009 12:53:19 -0400 Received: by bwz23 with SMTP id 23so1623523bwz.34 for ; Fri, 22 May 2009 09:53:17 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4A16D44C.7000805@codemonkey.ws> References: <4A1609CD.4000904@codemonkey.ws> <4A16D44C.7000805@codemonkey.ws> Date: Fri, 22 May 2009 19:53:17 +0300 Message-ID: Subject: Re: [Qemu-devel] Windows runtime error From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Consul , qemu-devel@nongnu.org On 5/22/09, Anthony Liguori wrote: > Blue Swirl wrote: > > > On 5/22/09, Anthony Liguori wrote: > > > > > > > Consul wrote: > > > > > > > > > > > > > This commit breaks Windows giving runtime error "Unknown device > > > > > > > > > > > 'virtio-balloon-pci'" > > > > > > > > > > ec6bd8dea77478f32981a5df49f66ca2430ad19d > > > > > > > > Author: Blue Swirl 2009-05-21 11:22:59 > > > > Committer: Blue Swirl 2009-05-21 11:22:59 > > > > Parent: 2567f5796c38238d6f2055f074e347a0338140ce > (Compile > > > > > > > > > > > most Xen files only once) > > > > > > > > > > Fix arm-softmmu breakage > > > > > > > > Don't use whole-archive for hwlib or libqemu objects > > > > > > > > Signed-off-by: Blue Swirl > > > > > > > > > > > > > > > hwlib definitely needs whole-archive. > > > > > > > > > > No, it works fine without it. > > > > > > virtio-pci has a constructor and all static functions. It'll be removed > from the archive without whole-archive. This is failure that we're seeing. Oh, I see now! Sorry for the noise. > In general, hwlib will need whole-archive because hwlib will contain things > with constructors. Right. > > > > > Why did this break arm-softmmu? It builds fine for me. > > > > > > > > > > Because fdc.o was forced to be linked in with whole-archive but the > > stuff that it depends on may be undefined on ARM. With whole-archive > > removed from hwlib, fdc.o is not referenced in anywhere in arm-softmmu > > and it will not be pulled in. > > > > > fdc.o shouldn't be in hwlib if it depends on stuff not defined in a > particular architecture. It would be nice to avoid this restriction. For example, fdc init could take pointers to the DMA functions as parameters.