Skip to content

vighnesh-sawant/e1000-userspace-network-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qemu-system-x86_64 -machine 'q35' -cpu 'Nehalem' -m 1G -drive file=image.qcow2 -device e1000,netdev=net0 -kernel kernel -initrd initrd -nographic -append "root=LABEL=rootfs console=ttyS0" -device intel-iommu,intremap=on,caching-mode=on -netdev tap,id=net0,ifname=tap0,script=no,downscript=no modprobe vfio modprobe vfio-pci

Get PCI Address (e.g., 0000:00:02.0)

lspci -nn | grep Ethernet

Unbind from kernel driver (e1000)

you will lose connectivity from that interface on running the command

echo "0000:00:02.0" > /sys/bus/pci/devices/0000:00:02.0/driver/unbind

Bind to vfio-pci

$ lspci -n -s 0000:00:02.0 00:02.0 0200: 8086:100e (rev 03) $ echo 8086 100e > /sys/bus/pci/drivers/vfio-pci/new_id

About

A vfio based network driver (tested on qemu)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages