Skip to contentSkip to conversation

Exposing different e1000 models through cmdline

Qemu-devel Peter Lieven 2 participants 2 messages Jan 20, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I found that vmware emulates a 82545em per default and so some special crafted appliances only work with that card. I was wondering if the below is the right approach to make the models selectable via cmdline without changing the default:

hw/pci/pci.c +6 -0
index 371699c..632c4ba 100644
@@ -1578,6 +1578,9 @@ static const char * const pci_nic_models[] = {
     "i82559er",
     "rtl8139",
     "e1000",
+    "e1000-82540em",
+    "e1000-82544gc",
+    "e1000-82545em",
     "pcnet",
     "virtio",
     NULL
@@ -1590,6 +1593,9 @@ static const char * const pci_nic_names[] = {
     "i82559er",
     "rtl8139",
     "e1000",
+    "e1000-82540em",
+    "e1000-82544gc",
+    "e1000-82545em",
     "pcnet",
     "virtio-net-pci",
     NULL

Thanks,
Peter

#1 lore raw
Quoted 5 lines · Peter Lieven

Hi,

I found that vmware emulates a 82545em per default and so some special crafted appliances only work with that card. I was wondering if the below is the right approach to make the models selectable via cmdline without changing the default:

No - please just use -device to create devices.

Quoted 28 lines
hw/pci/pci.c +6 -0
index 371699c..632c4ba 100644
@@ -1578,6 +1578,9 @@ static const char * const pci_nic_models[] = {
     "i82559er",
     "rtl8139",
     "e1000",
+    "e1000-82540em",
+    "e1000-82544gc",
+    "e1000-82545em",
     "pcnet",
     "virtio",
     NULL
@@ -1590,6 +1593,9 @@ static const char * const pci_nic_names[] = {
     "i82559er",
     "rtl8139",
     "e1000",
+    "e1000-82540em",
+    "e1000-82544gc",
+    "e1000-82545em",
     "pcnet",
     "virtio-net-pci",
     NULL

Thanks,
Peter