diff options
author | Shmulik Ladkani <shmulik.ladkani@ravellosystems.com> | 2015-12-24 09:17:37 +0200 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:28:23 -0600 |
commit | e53c012d20da33b69df111624fccf2ebe08a3e97 (patch) | |
tree | 6b616d0fbecfea72dafb9b7c9ca5281c35cc8acf /hw/net | |
parent | d80e6ec79a82379826dd2654f86f17e8bbb00c98 (diff) | |
download | hqemu-e53c012d20da33b69df111624fccf2ebe08a3e97.zip hqemu-e53c012d20da33b69df111624fccf2ebe08a3e97.tar.gz |
vmxnet3: Introduce 'x-old-msi-offsets' back-compat property
Following the previous patches, where vmxnet3's pci's msi/msix
capability offsets and msix's PBA table offsets have been changed, this
patch introduces a boolean property 'x-old-msi-offsets' to vmxnet3,
whose default is false.
Setting 'x-old-msi-offsets' to 'on' preserves the old offsets behavior,
which allows migration to older versions.
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/vmxnet3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 4e1534b..f398dea 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -2593,6 +2593,8 @@ static const VMStateDescription vmstate_vmxnet3 = { static Property vmxnet3_properties[] = { DEFINE_NIC_PROPERTIES(VMXNET3State, conf), + DEFINE_PROP_BIT("x-old-msi-offsets", VMXNET3State, compat_flags, + VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT, false), DEFINE_PROP_END_OF_LIST(), }; |