aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lguest/lguest.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2013-10-08 11:43:00 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-10-08 11:43:00 -0400
commite3c55d406bd8df1a878546002c93db90c42be10c (patch)
treeefb0ba2707c95fd7166cf1b76887c43c977e37dd /tools/lguest/lguest.c
parent4d6e482675f13e33599fc3d18fc723959be0a9b6 (diff)
parentd0e639c9e06d44e713170031fe05fb60ebe680af (diff)
Merge tag 'v3.12-rc4' into next
Merge with mainline to bring in changes to input subsystem that were committed through other trees.
Diffstat (limited to 'tools/lguest/lguest.c')
-rw-r--r--tools/lguest/lguest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c
index 68f67cf3d318..32cf2ce15d69 100644
--- a/tools/lguest/lguest.c
+++ b/tools/lguest/lguest.c
@@ -42,6 +42,10 @@
42#include <pwd.h> 42#include <pwd.h>
43#include <grp.h> 43#include <grp.h>
44 44
45#ifndef VIRTIO_F_ANY_LAYOUT
46#define VIRTIO_F_ANY_LAYOUT 27
47#endif
48
45/*L:110 49/*L:110
46 * We can ignore the 43 include files we need for this program, but I do want 50 * We can ignore the 43 include files we need for this program, but I do want
47 * to draw attention to the use of kernel-style types. 51 * to draw attention to the use of kernel-style types.
@@ -1544,6 +1548,8 @@ static void setup_tun_net(char *arg)
1544 add_feature(dev, VIRTIO_NET_F_HOST_ECN); 1548 add_feature(dev, VIRTIO_NET_F_HOST_ECN);
1545 /* We handle indirect ring entries */ 1549 /* We handle indirect ring entries */
1546 add_feature(dev, VIRTIO_RING_F_INDIRECT_DESC); 1550 add_feature(dev, VIRTIO_RING_F_INDIRECT_DESC);
1551 /* We're compliant with the damn spec. */
1552 add_feature(dev, VIRTIO_F_ANY_LAYOUT);
1547 set_config(dev, sizeof(conf), &conf); 1553 set_config(dev, sizeof(conf), &conf);
1548 1554
1549 /* We don't need the socket any more; setup is done. */ 1555 /* We don't need the socket any more; setup is done. */