Skip to contentSkip to conversation

Add virtio-net driver

PATCH Superseded Laurent Vivier 2 participants 6 messages Jun 10, 2008 – Aug 5, 2008 KVM

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add virtio-net driver

This patch allows to boot from network using the virtio-net adapter provided by KVM.

It applies on etherboot-5.4 sources from

git://git.etherboot.org/scm/etherboot.git

[why etherboot-5.4 ?
because it doesn't hang like gPXE and ROM size is only 32 KB]

---
 src/Families                  |    5 +
 src/drivers/net/virtio-net.c  |  476 +++++++++++++++++++++++++++++++++++++++++
 src/drivers/net/virtio-net.h  |   41 ++++
 src/drivers/net/virtio-pci.h  |   91 ++++++++
 src/drivers/net/virtio-ring.h |   90 ++++++++
 5 files changed, 703 insertions(+), 0 deletions(-)
 create mode 100644 src/drivers/net/virtio-net.c
 create mode 100644 src/drivers/net/virtio-net.h
 create mode 100644 src/drivers/net/virtio-pci.h
 create mode 100644 src/drivers/net/virtio-ring.h
src/Families +5 -0
index ee47d13..160c4ee 100644
@@ -148,3 +148,8 @@ family      drivers/net/mlx_ipoib/mt25218
 family		drivers/net/via-velocity
 
 family		drivers/net/etherfabric
+
+# KVM virtio
+
+family		drivers/net/virtio-net
+virtio-net	-		Virtio  Network Interface
src/drivers/net/virtio-net.c new file +476 -0

476 lines not on this page · raw message

src/drivers/net/virtio-net.h new file +41 -0

41 lines not on this page · raw message

src/drivers/net/virtio-pci.h new file +91 -0

91 lines not on this page · raw message

src/drivers/net/virtio-ring.h new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
1.5.2.4
#1 lore raw

[ROM] virtio-net etherboot ROM

You can find attached to this e-mail an etherboot ROM supporting virtio-net device.

Laurent

Signature · 3 lines
------------- [email protected] ---------------
"The best way to predict the future is to invent it."
- Alan Kay
#2 lore raw

PATCH v2 1/1 virtio-net etherboot ROM

This new version of virtio-net etherboot ROM clears the ISR on reset, and thus allows linux to use it again (on Qemu/KVM).

Laurent

Signature · 3 lines
------------- [email protected] ---------------
"The best way to predict the future is to invent it."
- Alan Kay
#3 lore raw

Re: [ROM][v2] virtio-net etherboot ROM

Quoted 3 lines · Laurent Vivier

This new version of virtio-net etherboot ROM clears the ISR on reset, and thus allows linux to use it again (on Qemu/KVM).

What's the status of upstreaming this? Didn't see it on etherboot.git.

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
#4 lore raw

Re: [ROM][v2] virtio-net etherboot ROM

Quoted 6 lines · Avi Kivity
Quoted 3 lines · Laurent Vivier

This new version of virtio-net etherboot ROM clears the ISR on reset, and thus allows linux to use it again (on Qemu/KVM).

What's the status of upstreaming this? Didn't see it on etherboot.git.

I have no answer from etherboot maintainers...

Regards,
Laurent

Signature · 3 lines
------------- [email protected] ---------------
"The best way to predict the future is to invent it."
- Alan Kay
#5 lore raw

Re: [ROM][v2] virtio-net etherboot ROM

In reply to Avi Kivity
Quoted 6 lines · Avi Kivity
Quoted 3 lines · Laurent Vivier

This new version of virtio-net etherboot ROM clears the ISR on reset, and thus allows linux to use it again (on Qemu/KVM).

What's the status of upstreaming this? Didn't see it on etherboot.git.

Virtio-net driver is now included in etherboot git and gPXE git (thank you to Stefan Hajnoczi for his work on this)

So, virtio-net ROM image is now available from http://rom-o-matic.net.

Regards,
Laurent

Signature · 3 lines
----------------- [email protected]  ------------------
  "La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry