]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
lguest: Convert net device to virtio 1.0 PCI.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 04:46:01 +0000 (15:16 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 06:17:39 +0000 (16:47 +1030)
commitbf6d40344d7006f29da1a2782f45188cdbbb0904
tree888df89d98db9d07d6e4d9c90489fc9fda102e26
parent5051654764d55a101747b5b2a695bcecae75fa4c
lguest: Convert net device to virtio 1.0 PCI.

The only real change here (other than using the PCI bus) is that we
didn't negotiate VIRTIO_NET_F_MRG_RXBUF before, so the format of the
packet header changed with virtio 1.0; we need TUNSETVNETHDRSZ on the
tun fd to tell it about the extra two bytes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/lguest/lguest.c