From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwVqM-0001gy-I7 for qemu-devel@nongnu.org; Wed, 11 Nov 2015 08:53:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwVqB-0007iX-LE for qemu-devel@nongnu.org; Wed, 11 Nov 2015 08:53:46 -0500 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:33582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwVqB-0007iN-Fb for qemu-devel@nongnu.org; Wed, 11 Nov 2015 08:53:35 -0500 Received: by wmec201 with SMTP id c201so182509167wme.0 for ; Wed, 11 Nov 2015 05:53:35 -0800 (PST) From: Leonid Bloch Date: Wed, 11 Nov 2015 15:52:47 +0200 Message-Id: <1447249967-10932-10-git-send-email-leonid.bloch@ravellosystems.com> In-Reply-To: <1447249967-10932-1-git-send-email-leonid.bloch@ravellosystems.com> References: <1447249967-10932-1-git-send-email-leonid.bloch@ravellosystems.com> Subject: [Qemu-devel] [PATCH v6 9/9] e1000: Introducing backward compatibility command line parameter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Dmitry Fleytman , Jason Wang , Leonid Bloch , Shmulik Ladkani This follows the previous patches, where support for migrating the entire MAC registers' array, and some new MAC registers were introduced. This patch introduces the e1000-specific boolean parameter "extra_mac_registers", which is on by default. Setting it to off will enable migration to older versions of QEMU, but will disable the read and write access to the new registers, that were introduced since adding the ability to migrate the entire MAC array. Example for usage to enable backward compatibility and to disable the new MAC registers: qemu-system-x86_64 -device e1000,extra_mac_registers=off,... ... As mentioned above, the default value is "on". Signed-off-by: Leonid Bloch Signed-off-by: Dmitry Fleytman --- hw/net/e1000.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 793286a..c877e06 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -1854,6 +1854,8 @@ static Property e1000_properties[] = { compat_flags, E1000_FLAG_AUTONEG_BIT, true), DEFINE_PROP_BIT("mitigation", E1000State, compat_flags, E1000_FLAG_MIT_BIT, true), + DEFINE_PROP_BIT("extra_mac_registers", E1000State, + compat_flags, E1000_FLAG_MAC_BIT, true), DEFINE_PROP_END_OF_LIST(), }; -- 2.4.3