Received: from eggs.gnu.org ([2001:4830:134:3::10]:58719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9zRs-00017M-Km for qemu-devel@nongnu.org; Fri, 18 Dec 2015 13:08:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9zRo-0003V4-Gq for qemu-devel@nongnu.org; Fri, 18 Dec 2015 13:08:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9zRo-0003Ug-CT for qemu-devel@nongnu.org; Fri, 18 Dec 2015 13:08:08 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 1C345425AF for ; Fri, 18 Dec 2015 18:08:08 +0000 (UTC) Date: Fri, 18 Dec 2015 16:08:05 -0200 From: Eduardo Habkost Message-ID: <20151218180805.GW3774@thinpad.lan.raisama.net> References: <1449859353-1574-1-git-send-email-ehabkost@redhat.com> <1449859353-1574-8-git-send-email-ehabkost@redhat.com> <5670093A.1010600@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5670093A.1010600@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 07/14] acpi: Remove guest_info parameters from functions 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 Tue, Dec 15, 2015 at 02:36:10PM +0200, Marcel Apfelbaum wrote: > On 12/11/2015 08:42 PM, Eduardo Habkost wrote: > >We can use PC_MACHINE(qdev_get_machine())->acpi_guest_info to get > >guest_info. > > Hi Eduardo, > > I like the idea of using qdev_get_machine() to get the machine instead of > keeping the reference around, however only in places we cannot get a reference > to it otherwise. I was unsure if I should go to the extreme of removing all the guest_info parameters, when doing that. I agree with your suggestions, but v3 will have to wait until I get back from vacations in Jan 18th. At least we will have less conflicts with Igor's AML series. :) Thanks! -- Eduardo