QEMU/KVM: accept vmxnet3 NIC
Add the ability to use vmxnet3 NIC on a host using the QEMU/KVM driver. Qemu supports the driver since version 1.5, and Libvirt can expose it properly. This allow the migration of an ESXi VM to QEMU/KVM, this without any driver changes. vmxnet3 comes with better performance, and lower latency comparing to an emulated driver like e1000. Change-Id: I95203af4ded9a4dbecfb7981b400f0fb988f2d47
This commit is contained in:
parent
d4c857dfcb
commit
7ba8f40134
@ -840,14 +840,16 @@ class LibvirtVifTestCase(test.NoDBTestCase):
|
||||
network_model.VIF_MODEL_RTL8139,
|
||||
network_model.VIF_MODEL_E1000,
|
||||
network_model.VIF_MODEL_E1000E,
|
||||
network_model.VIF_MODEL_SPAPR_VLAN)
|
||||
network_model.VIF_MODEL_SPAPR_VLAN,
|
||||
network_model.VIF_MODEL_VMXNET3)
|
||||
else:
|
||||
supported = (network_model.VIF_MODEL_NE2K_PCI,
|
||||
network_model.VIF_MODEL_PCNET,
|
||||
network_model.VIF_MODEL_RTL8139,
|
||||
network_model.VIF_MODEL_E1000,
|
||||
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:
|
||||
image_meta = objects.ImageMeta.from_dict(
|
||||
{'properties': {'hw_vif_model': model}})
|
||||
|
@ -67,7 +67,8 @@ SUPPORTED_VIF_MODELS = {
|
||||
network_model.VIF_MODEL_E1000,
|
||||
network_model.VIF_MODEL_E1000E,
|
||||
network_model.VIF_MODEL_LAN9118,
|
||||
network_model.VIF_MODEL_SPAPR_VLAN],
|
||||
network_model.VIF_MODEL_SPAPR_VLAN,
|
||||
network_model.VIF_MODEL_VMXNET3],
|
||||
'kvm': [
|
||||
network_model.VIF_MODEL_VIRTIO,
|
||||
network_model.VIF_MODEL_NE2K_PCI,
|
||||
@ -75,7 +76,8 @@ SUPPORTED_VIF_MODELS = {
|
||||
network_model.VIF_MODEL_RTL8139,
|
||||
network_model.VIF_MODEL_E1000,
|
||||
network_model.VIF_MODEL_E1000E,
|
||||
network_model.VIF_MODEL_SPAPR_VLAN],
|
||||
network_model.VIF_MODEL_SPAPR_VLAN,
|
||||
network_model.VIF_MODEL_VMXNET3],
|
||||
'xen': [
|
||||
network_model.VIF_MODEL_NETFRONT,
|
||||
network_model.VIF_MODEL_NE2K_PCI,
|
||||
|
7
releasenotes/notes/qemu-accept-vmxnet3-nic.yaml
Normal file
7
releasenotes/notes/qemu-accept-vmxnet3-nic.yaml
Normal 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``.
|
Loading…
x
Reference in New Issue
Block a user