From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui5KU-0006UN-CK for qemu-devel@nongnu.org; Thu, 30 May 2013 12:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui5KO-00067m-Cr for qemu-devel@nongnu.org; Thu, 30 May 2013 12:03:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui5KO-00067R-4H for qemu-devel@nongnu.org; Thu, 30 May 2013 12:03:48 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4UG3lqU026423 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 30 May 2013 12:03:47 -0400 Message-ID: <51A778F1.7070304@redhat.com> Date: Thu, 30 May 2013 18:06:09 +0200 From: Laszlo Ersek MIME-Version: 1.0 References: <1369920427-18274-1-git-send-email-mst@redhat.com> <1369920427-18274-3-git-send-email-mst@redhat.com> In-Reply-To: <1369920427-18274-3-git-send-email-mst@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] fw_cfg: add API to find FW cfg object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org On 05/30/13 15:28, Michael S. Tsirkin wrote: > diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c > index 1483f27..910e44f 100644 > --- a/hw/misc/pvpanic.c > +++ b/hw/misc/pvpanic.c > @@ -96,7 +96,7 @@ static int pvpanic_isa_initfn(ISADevice *dev) > isa_register_ioport(dev, &s->io, s->ioport); > > if (!port_configured) { > - fw_cfg = object_resolve_path("/machine/fw_cfg", NULL); > + fw_cfg = fw_cfg_find(); > if (fw_cfg) { > fw_cfg_add_file(fw_cfg, "etc/pvpanic-port", > g_memdup(&s->ioport, sizeof(s->ioport)), Explains 1/3 too, OK. Laszlo