From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui4yz-0007Nj-Dd for qemu-devel@nongnu.org; Thu, 30 May 2013 11:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui4yu-0002Vp-GB for qemu-devel@nongnu.org; Thu, 30 May 2013 11:41:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui4yu-0002VU-8B for qemu-devel@nongnu.org; Thu, 30 May 2013 11:41:36 -0400 Message-ID: <51A77319.9090702@redhat.com> Date: Thu, 30 May 2013 17:41:13 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1369920427-18274-1-git-send-email-mst@redhat.com> <1369920427-18274-2-git-send-email-mst@redhat.com> <51A76ACF.9050800@redhat.com> In-Reply-To: <51A76ACF.9050800@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/3] pvpanic: use FWCfgState explicitly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: Hu Tao , qemu-devel@nongnu.org, "Michael S. Tsirkin" Il 30/05/2013 17:05, Laszlo Ersek ha scritto: > But, again object_resolve_path() returns pointer-to-Object. I'm checking > "struct Object" in "include/qom/object.h", and it suggests that derived > structs should embed Object as first member. However FWCfgState is *not* > such a derived member. What's going on here? > > http://thread.gmane.org/gmane.comp.emulators.qemu/201544/focus=201564 > http://thread.gmane.org/gmane.comp.emulators.qemu/204452/focus=204450 FWCfgState embeds Object via SysBusDevice and DeviceState. Paolo