From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui5H1-000720-P4 for qemu-devel@nongnu.org; Thu, 30 May 2013 12:00:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui5BF-0000xq-P2 for qemu-devel@nongnu.org; Thu, 30 May 2013 11:54:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui5BF-0000xm-HC for qemu-devel@nongnu.org; Thu, 30 May 2013 11:54:21 -0400 Message-ID: <51A776B7.6010301@redhat.com> Date: Thu, 30 May 2013 17:56:39 +0200 From: Laszlo Ersek 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> <51A77319.9090702@redhat.com> In-Reply-To: <51A77319.9090702@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: Paolo Bonzini Cc: Hu Tao , qemu-devel@nongnu.org, "Michael S. Tsirkin" On 05/30/13 17:41, Paolo Bonzini wrote: > 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. Clearly an evil trick by a devious mind. Thanks :) Laszlo