From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field Date: Thu, 10 Jun 2010 10:23:34 +0200 Message-ID: <4C10A106.1050108@redhat.com> References: <20100608191447.4451.47795.stgit@localhost.localdomain> <201006091318.49556.paul@codesourcery.com> <1276101449.3079.74.camel@x201> <201006092136.38569.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Alex Williamson , Anthony Liguori , qemu-devel@nongnu.org, chrisw@redhat.com, kvm@vger.kernel.org, quintela@redhat.com To: Paul Brook Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59570 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752064Ab0FJIX5 (ORCPT ); Thu, 10 Jun 2010 04:23:57 -0400 In-Reply-To: <201006092136.38569.paul@codesourcery.com> Sender: kvm-owner@vger.kernel.org List-ID: > 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. cheers, Gerd