aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeonid Bloch <leonid.bloch@ravellosystems.com>2015-11-11 15:52:47 +0200
committerJason Wang <jasowang@redhat.com>2015-11-12 15:26:54 +0800
commitba63ec8594a5dd412182aced07b4bf042403766a (patch)
tree532a2a2ebbc33acc0c02bafde9c0921ee4801b5a /include
parent3b27430177498a1728b6765c70b455900f93d73a (diff)
e1000: Introducing backward compatibility command line parameter
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 <leonid.bloch@ravellosystems.com> Signed-off-by: Dmitry Fleytman <dmitry.fleytman@ravellosystems.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/compat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hw/compat.h b/include/hw/compat.h
index 93e71afb4a..896a1b0508 100644
--- a/include/hw/compat.h
+++ b/include/hw/compat.h
@@ -6,7 +6,11 @@
.driver = "virtio-blk-device",\
.property = "scsi",\
.value = "true",\
- },
+ },{\
+ .driver = "e1000",\
+ .property = "extra_mac_registers",\
+ .value = "off",\
+ },
#define HW_COMPAT_2_3 \
{\