diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-09 13:20:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-09 13:20:54 -0400 |
commit | d8cacd3a259bf522ea5e6c4c60eba67ba22f599c (patch) | |
tree | 24af775fc95240a5be8fdc7bbdb4c25d44ed644c /tools | |
parent | d75671e36e14b73d7c0d3cec49328dcd984af699 (diff) | |
parent | 9e266ece2178784a1027e04a56c8547dc51b15ce (diff) |
Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Pull virtio update from Rusty Russell:
"More console fixes; these are the theoretical ones which didn't get
CC:stable. But for that reason, I did a merge with master partway
through to avoid an unnecessary conflict.
Also: a fun lguest bug turns out if you don't clear the TF flag when
trapping Bad Things happen to the guest kernel as the stack
overflows..."
* tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
lguest: fix GPF in guest when using gdb.
lguest: fix guest kernel stack overflow when TF bit set.
lguest: fix BUG_ON() in invalid guest page table.
virtio: console: prevent use-after-free of port name in port unplug
virtio: console: cleanup an error message
virtio: console: fix locking around send_sigio_to_port()
virtio: console: add locking in port unplug path
virtio: console: add locks around buffer removal in port unplug path
tools/lguest: offer VIRTIO_F_ANY_LAYOUT for net device.
virtio tools: add .gitignore
lguest: Point to the right directory for the lguest launcher
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lguest/lguest.c | 6 | ||||
-rw-r--r-- | tools/virtio/.gitignore | 3 |
2 files changed, 9 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. */ |
diff --git a/tools/virtio/.gitignore b/tools/virtio/.gitignore new file mode 100644 index 000000000000..1cfbb0157a46 --- /dev/null +++ b/tools/virtio/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | *.d | ||
2 | virtio_test | ||
3 | vringh_test | ||