Added virtio network device.
authorKyle Milka <kmilka1995@gmail.com>
Fri, 1 Jul 2016 16:19:32 +0000 (09:19 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 6 Jul 2016 15:41:41 +0000 (11:41 -0400)
commit2e3ed2b51a35ba227a1fa87f6076692aa5b86d72
treea2298d56fc28656b1fb2dfc9dacfeced0f6a8920
parent22c2a880932b00f709b43399ca5c4ab6eae383a8
Added virtio network device.

We were able to get Linux to send a ping through the virtio device. Used
linux/lguest.c as a starting point and virtio_lguest_console.c for finding
the names of our version of the functions. This included adding the
network device struct and transmit and receive functions.

Fixes: b/29178446
Change-Id: I840c0acc617d238fb2b24b5662ee76f615bc743f
Signed-off-by: Kyle Milka <kmilka@google.com>
[checkpatch touchups, moved write() outside assert()]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tests/vmm/vmrunkernel.c
user/vmm/include/vmm/virtio_net.h
user/vmm/include/vmm/vmm.h
user/vmm/virtio.c
user/vmm/virtio_net.c [new file with mode: 0644]