|
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 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100505 Fedora/3.0.4-2.el6 Thunderbird/3.0.4 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |