From: Stefan Weil <weil@mail.berlios.de>
To: Juan Quintela <quintela@trasno.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH] eepro100: Remove unused device status entries
Date: Sat, 19 Sep 2009 17:58:20 +0200 [thread overview]
Message-ID: <4AB4FF9C.80005@mail.berlios.de> (raw)
In-Reply-To: <m3d45naqws.fsf@neno.mitica>
Juan Quintela schrieb:
> Stefan Weil <weil@mail.berlios.de> wrote:
>> A lot of entries are unused (they were added by copy + paste
>> from other drivers during development of eepro100.c).
>>
>> Removing them from nic_save, nic_load makes any
>> old saved status incompatible, so a new version
>> for the virtual machine data was needed, too.
>>
>> This patch is a step to synchronize my maintainer version
>> of eepro100.c (git://repo.or.cz/qemu/ar7.git) with the
>> version integrated in QEMU.
>>
>> +/* Parameters for nic_save, nic_load. */
>> +static const int eepro100_instance = -1;
>> +static const int eepro100_version = 20090807;
>
>
> Please, don't make version big numbers, idea is that versions are small
> numbers.
>
> Why do you want to be incompatible with the old saved state? We are
> going to big troubles to make everythnig backwards compatible, removing
> fields just makes everybody life worse. You can just rename as:
>
> s/foo/foo_dummy/ or /foo_vmstate/ and let it into the state.
>
> Later, Juan.
hi Juan
backward compatibility is ok for widely used features in stable software
releases,
and for a short moment I had thought about implementing it. Reading dummies
would have been sufficient (no need to keep dummies in the state).
But I decided against it.
I doubt that anybody is using saved machine states with eepro100 driver
data,
because those network cards are not QEMU's default, and they are still
unfinished.
So backward compatibility would have been an unnecessary burden here.
It is also better not to pretend that there is any backward compatibility
when it is nearly impossible to test this (and I am sure that there are
severe
faults in it).
My patch aims at finishing (or at least fixing and completing) this driver.
Some more patches are still needed for this goal (see my version on
repo.or.cz).
Personally, I prefer version numbers which express something, for example
the date of a change (as in my case). If it helps, I promise to send a patch
which sets the version number to 4 as soon as the rest of eepro100.c is ok.
Antony, please take the patch for now as it is, because I won't send a
new one
just to change the version number.
Regards
Stefan
next prev parent reply other threads:[~2009-09-19 15:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-19 11:41 [Qemu-devel] [PATCH] eepro100: Remove unused device status entries Stefan Weil
[not found] ` <m3d45naqws.fsf@neno.mitica>
2009-09-19 15:58 ` Stefan Weil [this message]
2009-10-05 13:20 ` [Qemu-devel] " Anthony Liguori
2009-10-08 6:15 ` [Qemu-devel] " Stefan Weil
2009-10-08 19:00 ` Stuart Brady
2009-10-08 19:19 ` Stefan Weil
2009-10-09 17:49 ` Stefan Weil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AB4FF9C.80005@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=qemu-devel@nongnu.org \
--cc=quintela@trasno.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).