From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0kgm-00015g-2u for qemu-devel@nongnu.org; Fri, 07 Dec 2007 16:24:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J0kgk-00012Y-Qc for qemu-devel@nongnu.org; Fri, 07 Dec 2007 16:24:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0kgk-00012E-Fl for qemu-devel@nongnu.org; Fri, 07 Dec 2007 16:24:50 -0500 Received: from an-out-0708.google.com ([209.85.132.248]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J0kgk-0001FM-E2 for qemu-devel@nongnu.org; Fri, 07 Dec 2007 16:24:50 -0500 Received: by an-out-0708.google.com with SMTP id b38so456753ana for ; Fri, 07 Dec 2007 13:24:49 -0800 (PST) Message-ID: <4759BA16.2020007@codemonkey.ws> Date: Fri, 07 Dec 2007 15:24:38 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [kvm-devel] [PATCH 1 of 3] export SMBIOS/DMI tables to PC machines References: <37bf559ffcf74bfe62ec.1197059815@localhost.localdomain> <4759B1A9.5080302@codemonkey.ws> <20071207205250.GF23913@us.ibm.com> <4759B559.1070405@codemonkey.ws> <20071207211318.GG23913@us.ibm.com> In-Reply-To: <20071207211318.GG23913@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ryan Harper Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org Ryan Harper wrote: > * Anthony Liguori [2007-12-07 15:07]: > >> Ryan Harper wrote: >> >>> * Anthony Liguori [2007-12-07 14:49]: >>> >>> >>>>> + >>>>> +CPUState *first_cpu; >>>>> >>>>> >>>>> >>>> This should probably be static. >>>> >>>> >>> doh, should be extern actually since it's defined elsewhere. >>> >>> >> Perhaps you want cpu_single_env instead of first_cpu? >> > > I wasn't quite sure given the comments surrounding its declaration: > > from exec.c: > > CPUState *first_cpu; > /* current CPU in the current thread. It is only valid inside > cpu_exec() */ > CPUState *cpu_single_env; > Yeah, I guess since you build this at init time, first_cpu is more appropriate. Regards, Anthony Liguori