Received: from eggs.gnu.org ([2001:4830:134:3::10]:44985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9b35-0001Ur-ON for qemu-devel@nongnu.org; Thu, 17 Dec 2015 11:05:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9b30-0002z6-EM for qemu-devel@nongnu.org; Thu, 17 Dec 2015 11:04:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9b30-0002ym-95 for qemu-devel@nongnu.org; Thu, 17 Dec 2015 11:04:54 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 9A6AEC07753C for ; Thu, 17 Dec 2015 16:04:53 +0000 (UTC) Date: Thu, 17 Dec 2015 14:04:51 -0200 From: Eduardo Habkost Message-ID: <20151217160451.GP3774@thinpad.lan.raisama.net> References: <1449859353-1574-1-git-send-email-ehabkost@redhat.com> <1449859353-1574-12-git-send-email-ehabkost@redhat.com> <56702367.4050800@redhat.com> <20151216194809.GO3774@thinpad.lan.raisama.net> <56728317.3000808@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56728317.3000808@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 11/14] pc: Remove PcGuestInfo.isapc_ram_fw field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: Igor Mammedov , Marcel Apfelbaum , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Thu, Dec 17, 2015 at 11:40:39AM +0200, Marcel Apfelbaum wrote: > On 12/16/2015 09:48 PM, Eduardo Habkost wrote: > >On Tue, Dec 15, 2015 at 04:27:51PM +0200, Marcel Apfelbaum wrote: > >>On 12/11/2015 08:42 PM, Eduardo Habkost wrote: > >[...] > >>>@@ -131,8 +130,7 @@ static void pc_q35_init(MachineState *machine) > >>> rom_memory = get_system_memory(); > >>> } > >>> > >>>- guest_info = pc_guest_info_init(pcms); > >>>- guest_info->isapc_ram_fw = false; > >> > >>This may not be an issue, I just want be sure. > >>For Q35 isapc_ram_fw is always false, but now we are always querying > >>!pcmc->pci_enabled. > >> > >>Now we have a Q35 case when !pcmc->pci_enabled *can* be true. > > > >Do we? pcmc->pci_enabled is always true in Q35. > > OK, thanks, so all the pcmc->pci_enabled "if" clauses in > pc_q35_init are not necessary, right? They are not necessary, but keeping them helps us identify duplicate code in pc_q35.c:pc_q35_init() and pc_piix.c:pc_init1() more easily (so we can move it to common code later). -- Eduardo