From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nx3Vf-0000dD-Na for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:23:27 -0400 Received: from [140.186.70.92] (port=53234 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nx3Ve-0000aw-BZ for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:23:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nx3Vc-00066x-ND for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:23:26 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:64128) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx3Vc-00066d-Gq for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:23:24 -0400 Received: by pvc21 with SMTP id 21so31010pvc.4 for ; Wed, 31 Mar 2010 12:23:23 -0700 (PDT) Message-ID: <4BB3A127.20301@codemonkey.ws> Date: Wed, 31 Mar 2010 14:23:19 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 7/7] Refactor target specific handling, compile vl.c only once References: <4BB397A1.2000508@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel On 03/31/2010 02:19 PM, Blue Swirl wrote: > On 3/31/10, Anthony Liguori wrote: > >> On 03/27/2010 05:11 PM, Blue Swirl wrote: >> >> >>> Move target specific functions and RAM handling to arch_init.c. >>> >>> Add a flag to QEMUOptions structure to indicate for which >>> architectures the option is allowed, check the flag >>> in run time and remove conditional code in option handling. >>> >>> Now that no target dependencies remain, compile vl.c only once >>> for all targets. >>> >>> Signed-off-by: Blue Swirl >>> >>> >>> >> This causes -enable-kvm to seg fault. >> > Variable kvm_state is used but it has not been initialized. This is > because kvm_init is not called. And this happens because CONFIG_KVM is > not set by config.h when included from vl.c. > I've got this fixed locally. Will push soon. The CONFIG_KVM in kvm.h was one problem. Another problem was a thinko in acpi.c. Regards, Anthony Liguori