|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH] CMOS file support |
Date: | Thu, 23 Sep 2010 14:12:47 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.3 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |