Merge "QEMU/KVM: accept vmxnet3 NIC"

This commit is contained in:
Zuul 2020-08-30 12:55:42 +00:00 committed by Gerrit Code Review
commit b3bbcafe54
3 changed files with 15 additions and 4 deletions

View File

@ -840,14 +840,16 @@ class LibvirtVifTestCase(test.NoDBTestCase):
network_model.VIF_MODEL_RTL8139, network_model.VIF_MODEL_RTL8139,
network_model.VIF_MODEL_E1000, network_model.VIF_MODEL_E1000,
network_model.VIF_MODEL_E1000E, network_model.VIF_MODEL_E1000E,
network_model.VIF_MODEL_SPAPR_VLAN) network_model.VIF_MODEL_SPAPR_VLAN,
network_model.VIF_MODEL_VMXNET3)
else: else:
supported = (network_model.VIF_MODEL_NE2K_PCI, supported = (network_model.VIF_MODEL_NE2K_PCI,
network_model.VIF_MODEL_PCNET, network_model.VIF_MODEL_PCNET,
network_model.VIF_MODEL_RTL8139, network_model.VIF_MODEL_RTL8139,
network_model.VIF_MODEL_E1000, network_model.VIF_MODEL_E1000,
network_model.VIF_MODEL_E1000E, network_model.VIF_MODEL_E1000E,
network_model.VIF_MODEL_SPAPR_VLAN) network_model.VIF_MODEL_SPAPR_VLAN,
network_model.VIF_MODEL_VMXNET3)
for model in supported: for model in supported:
image_meta = objects.ImageMeta.from_dict( image_meta = objects.ImageMeta.from_dict(
{'properties': {'hw_vif_model': model}}) {'properties': {'hw_vif_model': model}})

View File

@ -67,7 +67,8 @@ SUPPORTED_VIF_MODELS = {
network_model.VIF_MODEL_E1000, network_model.VIF_MODEL_E1000,
network_model.VIF_MODEL_E1000E, network_model.VIF_MODEL_E1000E,
network_model.VIF_MODEL_LAN9118, network_model.VIF_MODEL_LAN9118,
network_model.VIF_MODEL_SPAPR_VLAN], network_model.VIF_MODEL_SPAPR_VLAN,
network_model.VIF_MODEL_VMXNET3],
'kvm': [ 'kvm': [
network_model.VIF_MODEL_VIRTIO, network_model.VIF_MODEL_VIRTIO,
network_model.VIF_MODEL_NE2K_PCI, network_model.VIF_MODEL_NE2K_PCI,
@ -75,7 +76,8 @@ SUPPORTED_VIF_MODELS = {
network_model.VIF_MODEL_RTL8139, network_model.VIF_MODEL_RTL8139,
network_model.VIF_MODEL_E1000, network_model.VIF_MODEL_E1000,
network_model.VIF_MODEL_E1000E, network_model.VIF_MODEL_E1000E,
network_model.VIF_MODEL_SPAPR_VLAN], network_model.VIF_MODEL_SPAPR_VLAN,
network_model.VIF_MODEL_VMXNET3],
'xen': [ 'xen': [
network_model.VIF_MODEL_NETFRONT, network_model.VIF_MODEL_NETFRONT,
network_model.VIF_MODEL_NE2K_PCI, network_model.VIF_MODEL_NE2K_PCI,

View File

@ -0,0 +1,7 @@
---
features:
- |
Add the ability to use ``vmxnet3`` NIC on a host using the QEMU/KVM driver. This allows
the migration of an ESXi VM to QEMU/KVM, without any driver changes. ``vmxnet3``
comes with better performance and lower latency comparing to an emulated driver like
``e1000``.