search for: vhost_attach_cgroups_work

Displaying 20 results from an estimated 22 matches for "vhost_attach_cgroups_work".

2013 Jun 05
4
[PATCH] vhost_net: clear msg.control for non-zerocopy case during tx
..._slowpath_common+0x6b/0xa0 [<ffffffff8103d6b5>] warn_slowpath_null+0x15/0x20 [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffff81061f46>] kthread+0xc6/0xd0 [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0 [<ffffffff81061e80>] ? kthrea...
2013 Jun 05
4
[PATCH] vhost_net: clear msg.control for non-zerocopy case during tx
..._slowpath_common+0x6b/0xa0 [<ffffffff8103d6b5>] warn_slowpath_null+0x15/0x20 [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffff81061f46>] kthread+0xc6/0xd0 [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0 [<ffffffff81061e80>] ? kthrea...
2013 Jun 06
1
[PATCH] vhost_net: clear msg.control for non-zerocopy case during tx
...ffff8103d6b5>] warn_slowpath_null+0x15/0x20 >> [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] >> [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] >> [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] >> [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] >> [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] >> [<ffffffff81061f46>] kthread+0xc6/0xd0 >> [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 >> [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0...
2013 Jun 06
1
[PATCH] vhost_net: clear msg.control for non-zerocopy case during tx
...ffff8103d6b5>] warn_slowpath_null+0x15/0x20 >> [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] >> [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] >> [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] >> [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] >> [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] >> [<ffffffff81061f46>] kthread+0xc6/0xd0 >> [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 >> [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0...
2013 Jun 05
0
[PATCH] vhost_net: clear msg.control for non-zerocopy case during tx
...0 > [<ffffffff8103d6b5>] warn_slowpath_null+0x15/0x20 > [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] > [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] > [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] > [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] > [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] > [<ffffffff81061f46>] kthread+0xc6/0xd0 > [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 > [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0 > [<fffff...
2013 Jun 06
0
[PATCH V2] vhost_net: clear msg.control for non-zerocopy case during tx
..._slowpath_common+0x6b/0xa0 [<ffffffff8103d6b5>] warn_slowpath_null+0x15/0x20 [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffff81061f46>] kthread+0xc6/0xd0 [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0 [<ffffffff81061e80>] ? kthrea...
2013 Jun 05
0
[PATCH] vhost_net: clear msg.control for non-zerocopy case during tx
...0 > [<ffffffff8103d6b5>] warn_slowpath_null+0x15/0x20 > [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] > [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] > [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] > [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] > [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] > [<ffffffff81061f46>] kthread+0xc6/0xd0 > [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 > [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0 > [<fffff...
2013 Jun 06
0
[PATCH V2] vhost_net: clear msg.control for non-zerocopy case during tx
..._slowpath_common+0x6b/0xa0 [<ffffffff8103d6b5>] warn_slowpath_null+0x15/0x20 [<ffffffffa0197627>] handle_tx+0x477/0x4b0 [vhost_net] [<ffffffffa0197690>] handle_tx_kick+0x10/0x20 [vhost_net] [<ffffffffa019541e>] vhost_worker+0xfe/0x1a0 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffffa0195320>] ? vhost_attach_cgroups_work+0x30/0x30 [vhost_net] [<ffffffff81061f46>] kthread+0xc6/0xd0 [<ffffffff81061e80>] ? kthread_freezable_should_stop+0x70/0x70 [<ffffffff817a1aec>] ret_from_fork+0x7c/0xb0 [<ffffffff81061e80>] ? kthrea...
2010 Sep 05
0
[PATCH] vhost: fix attach to cgroups regression
...uct vhost_virtqueue *vq) { @@ -236,6 +247,29 @@ long vhost_dev_check_owner(struct vhost_dev *dev) return dev->mm == current->mm ? 0 : -EPERM; } +struct vhost_attach_cgroups_struct { + struct vhost_work work; + struct task_struct *owner; + int ret; +}; + +static void vhost_attach_cgroups_work(struct vhost_work *work) +{ + struct vhost_attach_cgroups_struct *s; + s = container_of(work, struct vhost_attach_cgroups_struct, work); + s->ret = cgroup_attach_task_all(s->owner, current); +} + +static int vhost_attach_cgroups(struct vhost_dev *dev) +{ + struct v...
2010 Sep 05
0
[PATCH] vhost: fix attach to cgroups regression
...uct vhost_virtqueue *vq) { @@ -236,6 +247,29 @@ long vhost_dev_check_owner(struct vhost_dev *dev) return dev->mm == current->mm ? 0 : -EPERM; } +struct vhost_attach_cgroups_struct { + struct vhost_work work; + struct task_struct *owner; + int ret; +}; + +static void vhost_attach_cgroups_work(struct vhost_work *work) +{ + struct vhost_attach_cgroups_struct *s; + s = container_of(work, struct vhost_attach_cgroups_struct, work); + s->ret = cgroup_attach_task_all(s->owner, current); +} + +static int vhost_attach_cgroups(struct vhost_dev *dev) +{ + struct v...
2020 Sep 22
0
[PATCH 7/8] vhost: remove work arg from vhost_work_flush
..._flush(poll->dev, &poll->work); > + vhost_work_dev_flush(poll->dev); > } > EXPORT_SYMBOL_GPL(vhost_poll_flush); > > @@ -542,7 +542,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev) > attach.owner = current; > vhost_work_init(&attach.work, vhost_attach_cgroups_work); > vhost_work_queue(dev, &attach.work); > - vhost_work_flush(dev, &attach.work); > + vhost_work_dev_flush(dev); > return attach.ret; > } > > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > index 3d30b3d..b91efb5 100644 > --- a/drivers/vhos...
2014 Aug 10
0
[PATCH] vhost: Add polling mode
...N, dev); > + POLLIN, vq); > } > } > EXPORT_SYMBOL_GPL(vhost_dev_init); > @@ -350,7 +532,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev) > struct vhost_attach_cgroups_struct attach; > > attach.owner = current; > - vhost_work_init(&attach.work, vhost_attach_cgroups_work); > + vhost_work_init(&attach.work, NULL, vhost_attach_cgroups_work); > vhost_work_queue(dev, &attach.work); > vhost_work_flush(dev, &attach.work); > return attach.ret; > @@ -444,6 +626,26 @@ void vhost_dev_stop(struct vhost_dev *dev) > } > EXPORT_SYMBOL_GPL...
2014 Aug 20
0
[PATCH] vhost: Add polling mode
...N, dev); > + POLLIN, vq); > } > } > EXPORT_SYMBOL_GPL(vhost_dev_init); > @@ -350,7 +532,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev) > struct vhost_attach_cgroups_struct attach; > > attach.owner = current; > - vhost_work_init(&attach.work, vhost_attach_cgroups_work); > + vhost_work_init(&attach.work, NULL, vhost_attach_cgroups_work); > vhost_work_queue(dev, &attach.work); > vhost_work_flush(dev, &attach.work); > return attach.ret; > @@ -444,6 +626,26 @@ void vhost_dev_stop(struct vhost_dev *dev) > } > EXPORT_SYMBOL_GPL...
2014 Aug 10
7
[PATCH] vhost: Add polling mode
...;vq->poll, vq->handle_kick, - POLLIN, dev); + POLLIN, vq); } } EXPORT_SYMBOL_GPL(vhost_dev_init); @@ -350,7 +532,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev) struct vhost_attach_cgroups_struct attach; attach.owner = current; - vhost_work_init(&attach.work, vhost_attach_cgroups_work); + vhost_work_init(&attach.work, NULL, vhost_attach_cgroups_work); vhost_work_queue(dev, &attach.work); vhost_work_flush(dev, &attach.work); return attach.ret; @@ -444,6 +626,26 @@ void vhost_dev_stop(struct vhost_dev *dev) } EXPORT_SYMBOL_GPL(vhost_dev_stop); +/* shutdown_vq...
2014 Aug 10
7
[PATCH] vhost: Add polling mode
...;vq->poll, vq->handle_kick, - POLLIN, dev); + POLLIN, vq); } } EXPORT_SYMBOL_GPL(vhost_dev_init); @@ -350,7 +532,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev) struct vhost_attach_cgroups_struct attach; attach.owner = current; - vhost_work_init(&attach.work, vhost_attach_cgroups_work); + vhost_work_init(&attach.work, NULL, vhost_attach_cgroups_work); vhost_work_queue(dev, &attach.work); vhost_work_flush(dev, &attach.work); return attach.ret; @@ -444,6 +626,26 @@ void vhost_dev_stop(struct vhost_dev *dev) } EXPORT_SYMBOL_GPL(vhost_dev_stop); +/* shutdown_vq...
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
...tory. + +import curses +import sys, os, time, optparse + +work_types = { + "handle_rx_kick" : "rx_kick", + "handle_tx_kick" : "tx_kick", + "handle_rx_net" : "rx_net", + "handle_tx_net" : "tx_net", + "vhost_attach_cgroups_work": "cg_attach" + } + +addr = {} + +kallsyms = file("/proc/kallsyms").readlines() +for kallsym in kallsyms: + entry = kallsym.split() + if entry[2] in work_types.keys(): + addr["0x%s" % entry[0]] = work_types[entry[2]] + +copy_modes = { + 1 : '...
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2014 Mar 21
5
[PATCH RFC V2 0/4] Adding tracepoints to vhost/net
Recent debugging on vhost net zerocopy shows the need of tracepoints. So to help in vhost{net} debugging and performance analyzing, the following series adding basic tracepoints to vhost. Operations of both vhost and vhost_net were traced in current implementation. A top-like satistics displaying script were introduced to help the troubleshooting: vhost statistics vhost_virtio_update_used_idx
2014 Mar 21
5
[PATCH RFC V2 0/4] Adding tracepoints to vhost/net
Recent debugging on vhost net zerocopy shows the need of tracepoints. So to help in vhost{net} debugging and performance analyzing, the following series adding basic tracepoints to vhost. Operations of both vhost and vhost_net were traced in current implementation. A top-like satistics displaying script were introduced to help the troubleshooting: vhost statistics vhost_virtio_update_used_idx