From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56917 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OykfV-0006qI-8v for qemu-devel@nongnu.org; Thu, 23 Sep 2010 08:12:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OykfU-0005BJ-Ak for qemu-devel@nongnu.org; Thu, 23 Sep 2010 08:12:53 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:56178) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OykfU-0005BD-7P for qemu-devel@nongnu.org; Thu, 23 Sep 2010 08:12:52 -0400 Received: by yxs7 with SMTP id 7so688945yxs.4 for ; Thu, 23 Sep 2010 05:12:51 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4C9B443F.90209@redhat.com> Date: Thu, 23 Sep 2010 14:12:47 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1284645517-32743-1-git-send-email-mathias.krause@secunet.com> <4C9251C6.2090705@codemonkey.ws> <4C930F9B.5010007@secunet.com> <4C936CDC.1030207@codemonkey.ws> <4C9A5C61.7030508@secunet.com> In-Reply-To: <4C9A5C61.7030508@secunet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] CMOS file support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mathias Krause Cc: qemu-devel@nongnu.org, Markus Armbruster On 09/22/2010 09:43 PM, Mathias Krause wrote: > I managed to add the nvram option but how do I get a reference to the > drive back in the RTC code? Would I just loop with drive_get(IF_NONE, 0, > i) until the id of the returned drive is "nvram"? Doesn't sound right > but I've found no better solution due to the lack of an > drive_get_by_id() function. You can write one. :) It's going to be very similar to drive_get_by_blockdev. Paolo