From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35789 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMjZw-00058n-KP for qemu-devel@nongnu.org; Thu, 10 Jun 2010 11:22:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMjZv-0002ht-GM for qemu-devel@nongnu.org; Thu, 10 Jun 2010 11:22:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9936) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjZv-0002hh-9g for qemu-devel@nongnu.org; Thu, 10 Jun 2010 11:21:59 -0400 Subject: Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field From: Alex Williamson In-Reply-To: <201006101549.14094.paul@codesourcery.com> References: <20100608191447.4451.47795.stgit@localhost.localdomain> <4C10A106.1050108@redhat.com> <1276180408.2992.12.camel@x201> <201006101549.14094.paul@codesourcery.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 10 Jun 2010 09:21:44 -0600 Message-ID: <1276183304.3100.9.camel@x201> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: chrisw@redhat.com, kvm@vger.kernel.org, quintela@redhat.com, qemu-devel@nongnu.org, Gerd Hoffmann On Thu, 2010-06-10 at 15:49 +0100, Paul Brook wrote: > > On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: > > > > I may have been a bit misleading here. What we really want to do is use > > > > the same matching algorithm as is used by the rest of the device > > > > state. Currently this is a vmstate name and [arbitrary] numeric id. I > > > > don't remember whether there's a convenient link from a device to its > > > > associated vmstate - if there isn't there probably should be. > > > > > > DeviceState->info->vmsd->name for the name. > > > Dunno about the numeric id, I think savevm.c doesn't export it. > > > > Ok, we can certainly do name>.instance>\. > > It seems like this highlights a deficiency in the vmstate matching > > Why are you forcing this to be a string? It seemed like a good way to send an identifier. What do you suggest? Alex