[Qemu-devel] [PATCH] hw/pci: Add e1000e NIC as command line argument

lukas.humbel@inf.ethz.ch posted 1 patch 6 years, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1508169816-5993-1-git-send-email-lukas.humbel@inf.ethz.ch
Test checkpatch passed
Test docker passed
Test s390x passed
hw/pci/pci.c | 2 ++
1 file changed, 2 insertions(+)
[Qemu-devel] [PATCH] hw/pci: Add e1000e NIC as command line argument
Posted by lukas.humbel@inf.ethz.ch 6 years, 6 months ago
From: Lukas Humbel <lukas.humbel@inf.ethz.ch>

Signed-off-by: Lukas Humbel <lukas.humbel@inf.ethz.ch>
---
 hw/pci/pci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 1e6fb88..9d6cd04 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -1819,6 +1819,7 @@ static const char * const pci_nic_models[] = {
     "i82559er",
     "rtl8139",
     "e1000",
+    "e1000e",
     "pcnet",
     "virtio",
     "sungem",
@@ -1832,6 +1833,7 @@ static const char * const pci_nic_names[] = {
     "i82559er",
     "rtl8139",
     "e1000",
+    "e1000e",
     "pcnet",
     "virtio-net-pci",
     "sungem",
-- 
2.7.4


Re: [Qemu-devel] [PATCH] hw/pci: Add e1000e NIC as command line argument
Posted by Michael S. Tsirkin 6 years, 6 months ago
On Mon, Oct 16, 2017 at 06:03:36PM +0200, lukas.humbel@inf.ethz.ch wrote:
> From: Lukas Humbel <lukas.humbel@inf.ethz.ch>
> 
> Signed-off-by: Lukas Humbel <lukas.humbel@inf.ethz.ch>

We keep these around for legacy reasons but I'm not sure we need to add
to the list.  What's wrong with just creating them with -device e1000e?

> ---
>  hw/pci/pci.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/hw/pci/pci.c b/hw/pci/pci.c
> index 1e6fb88..9d6cd04 100644
> --- a/hw/pci/pci.c
> +++ b/hw/pci/pci.c
> @@ -1819,6 +1819,7 @@ static const char * const pci_nic_models[] = {
>      "i82559er",
>      "rtl8139",
>      "e1000",
> +    "e1000e",
>      "pcnet",
>      "virtio",
>      "sungem",
> @@ -1832,6 +1833,7 @@ static const char * const pci_nic_names[] = {
>      "i82559er",
>      "rtl8139",
>      "e1000",
> +    "e1000e",
>      "pcnet",
>      "virtio-net-pci",
>      "sungem",
> -- 
> 2.7.4

Re: [Qemu-devel] [PATCH] hw/pci: Add e1000e NIC as command line argument
Posted by Lukas Humbel 6 years, 6 months ago
On 16.10.2017 19:02, Michael S. Tsirkin wrote:
> On Mon, Oct 16, 2017 at 06:03:36PM +0200, lukas.humbel@inf.ethz.ch wrote:
>> From: Lukas Humbel <lukas.humbel@inf.ethz.ch>
>>
>> Signed-off-by: Lukas Humbel <lukas.humbel@inf.ethz.ch>
> We keep these around for legacy reasons but I'm not sure we need to add
> to the list.  What's wrong with just creating them with -device e1000e?
Ah, I didn't realize that the -net argument is considered legacy. I
think there is nothing stopping me from using -device...

Thanks,
Lukas
>
>> ---
>>  hw/pci/pci.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/hw/pci/pci.c b/hw/pci/pci.c
>> index 1e6fb88..9d6cd04 100644
>> --- a/hw/pci/pci.c
>> +++ b/hw/pci/pci.c
>> @@ -1819,6 +1819,7 @@ static const char * const pci_nic_models[] = {
>>      "i82559er",
>>      "rtl8139",
>>      "e1000",
>> +    "e1000e",
>>      "pcnet",
>>      "virtio",
>>      "sungem",
>> @@ -1832,6 +1833,7 @@ static const char * const pci_nic_names[] = {
>>      "i82559er",
>>      "rtl8139",
>>      "e1000",
>> +    "e1000e",
>>      "pcnet",
>>      "virtio-net-pci",
>>      "sungem",
>> -- 
>> 2.7.4

-- 
Lukas Humbel