From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52532 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwUex-0004Gv-9l for qemu-devel@nongnu.org; Fri, 17 Sep 2010 02:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwUev-0007Aa-Fk for qemu-devel@nongnu.org; Fri, 17 Sep 2010 02:42:59 -0400 Received: from a.mx.secunet.com ([195.81.216.161]:42616) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwUev-00079x-Az for qemu-devel@nongnu.org; Fri, 17 Sep 2010 02:42:57 -0400 Message-ID: <4C930DED.5050601@secunet.com> Date: Fri, 17 Sep 2010 08:42:53 +0200 From: Mathias Krause MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] CMOS file support References: <1284645517-32743-1-git-send-email-mathias.krause@secunet.com> <4C924AB5.1030802@mail.berlios.de> In-Reply-To: <4C924AB5.1030802@mail.berlios.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org Am 16.09.2010 18:49, Stefan Weil schrieb: > The intention of this patch is ok. Loading CMOS with initial data > is needed. I just want to add two questions / remarks how the > implementation might be improved. > > Are there use cases where having a smaller CMOS size is better? > For example, when I want to emulate a system with 128 byte CMOS? > The size of CMOS could be derived from the size of the data > or specified by an additional parameter. I cannot image cases where smaller sizes would be a benefit. The saved disk space is negligible and you can always pad your CMOS configuration uo to 256 bytes by filling the gap with zero bytes. If the system just accesses the first 128 bytes the additional 128 zero bytes shouldn't hurt. > Using QEMU's block devices instead of a simple file would be > more consistent with the rest of QEMU and allow reading the > CMOS data not only from a file but also from an URL or other > sources. Thanks for the hint. Since this is my first contribution to the project I'm not that familiar with the code. Looking at other places, e.g. how the -kernel option gets handled, I just see FILE everywhere. Can you give me some pointers how to use this interface? Thanks for the review! Mathias