Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/lguest: offer VIRTIO_F_ANY_LAYOUT for net device.

We don't care about layout, so advertise that fact.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

+6
+6
tools/lguest/lguest.c
··· 42 42 #include <pwd.h> 43 43 #include <grp.h> 44 44 45 + #ifndef VIRTIO_F_ANY_LAYOUT 46 + #define VIRTIO_F_ANY_LAYOUT 27 47 + #endif 48 + 45 49 /*L:110 46 50 * We can ignore the 43 include files we need for this program, but I do want 47 51 * to draw attention to the use of kernel-style types. ··· 1548 1544 add_feature(dev, VIRTIO_NET_F_HOST_ECN); 1549 1545 /* We handle indirect ring entries */ 1550 1546 add_feature(dev, VIRTIO_RING_F_INDIRECT_DESC); 1547 + /* We're compliant with the damn spec. */ 1548 + add_feature(dev, VIRTIO_F_ANY_LAYOUT); 1551 1549 set_config(dev, sizeof(conf), &conf); 1552 1550 1553 1551 /* We don't need the socket any more; setup is done. */