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)
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

Simple merge