Re: [PATCH 2/5] conf: add domain NIC model enum macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/16/2013 11:43 PM, Daniel P. Berrange wrote:
On Sun, Jan 13, 2013 at 11:34:32PM +0800, Guannan Ren wrote:
---
  src/conf/domain_conf.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
  src/conf/domain_conf.h | 36 ++++++++++++++++++++++++++++++++++++
  2 files changed, 80 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 068c224..6e6ad85 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -694,6 +694,50 @@ VIR_ENUM_IMPL(virDomainNumatuneMemPlacementMode,
                "static",
                "auto");
+/* For NIC model macro, a comment marks the start of a model
+ * group which ends with the model just before next comment
+ * or extends to the end of list.
+ */
+VIR_ENUM_IMPL(virDomainNICModel,
+              VIR_DOMAIN_NIC_MODEL_LAST,
+              "default",
+              "i82550",   /* qemu */
+              "i82551",
+              "i82557a",
+              "i82557b",
+              "i82557c",
+              "i82558a",
+              "i82558b",
+              "i82559a",
+              "i82559b",
+              "i82559c",
+              "i82559er",
+              "i82562",
+              "i82801",
I'm a little skeptical that we need to include all these
i8* NICs here. I think just the ones you have below are
suffiucient.

    Okay, if so, the docs need to explicitly state libvirt only supports
    seven nic models for qemu/kvm
    spapr-vlan,  virtio, ne2k_isa, ne2k_pci, pcnet, rtl8139,e1000.

    For the rest qemu emulated NICs, libvirt don't support any more.

    Guannan

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]