qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] CMOS file support


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] CMOS file support
Date: Fri, 17 Sep 2010 12:58:22 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Iceowl/1.0b1 Icedove/3.0.6

Am 17.09.2010 08:42, schrieb Mathias Krause:
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.


The benefit of smaller sizes is not saving RAM but precision
of the emulation.

A BIOS or an operating system might be designed to support
CMOS  with 128 bytes or 256 bytes and try guessing the size
by probing (many systems do something like this for RAM or
other memory types).

Testing the support of the small CMOS will be impossible
if the emulation always emulates 256 bytes. Filling the
additional 128 bytes with zero bytes won't help because
the system will access them successfully although writes
should fail.


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]