From 504ce60f458b62fc00b44735704c5b77ec87ed5a Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Mon, 15 Jul 2013 09:27:07 +0930 Subject: virtio tools: add .gitignore Signed-off-by: Ramkumar Ramachandra Acked-by: Michael S. Tsirkin Signed-off-by: Rusty Russell --- tools/virtio/.gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/virtio/.gitignore (limited to 'tools') diff --git a/tools/virtio/.gitignore b/tools/virtio/.gitignore new file mode 100644 index 00000000000..1cfbb0157a4 --- /dev/null +++ b/tools/virtio/.gitignore @@ -0,0 +1,3 @@ +*.d +virtio_test +vringh_test -- cgit v1.2.3-18-g5258 From 927cfb9788475abd5cf5e6566bb1cf46d29b0694 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 15 Jul 2013 10:50:13 +0930 Subject: 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 --- tools/lguest/lguest.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c index 68f67cf3d31..32cf2ce15d6 100644 --- a/tools/lguest/lguest.c +++ b/tools/lguest/lguest.c @@ -42,6 +42,10 @@ #include #include +#ifndef VIRTIO_F_ANY_LAYOUT +#define VIRTIO_F_ANY_LAYOUT 27 +#endif + /*L:110 * We can ignore the 43 include files we need for this program, but I do want * to draw attention to the use of kernel-style types. @@ -1544,6 +1548,8 @@ static void setup_tun_net(char *arg) add_feature(dev, VIRTIO_NET_F_HOST_ECN); /* We handle indirect ring entries */ add_feature(dev, VIRTIO_RING_F_INDIRECT_DESC); + /* We're compliant with the damn spec. */ + add_feature(dev, VIRTIO_F_ANY_LAYOUT); set_config(dev, sizeof(conf), &conf); /* We don't need the socket any more; setup is done. */ -- cgit v1.2.3-18-g5258