Re: [Qemu-devel] [RFC v2 4/5] timer: associate three timerlists with AioContext

2013-07-29 Thread Paolo Bonzini
Il 29/07/2013 05:16, Liu Ping Fan ha scritto: Currently, timers run on iothread inside QBL, this limits the usage of timers in some case, e.g. virtio-blk-dataplane. In order to run timers on private thread based on different clocksource, we arm each AioContext with three timer lists in

Re: [Qemu-devel] [RFC v2 4/5] timer: associate three timerlists with AioContext

2013-07-29 Thread liu ping fan
On Mon, Jul 29, 2013 at 2:32 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 29/07/2013 05:16, Liu Ping Fan ha scritto: Currently, timers run on iothread inside QBL, this limits the usage of timers in some case, e.g. virtio-blk-dataplane. In order to run timers on private thread based on

Re: [Qemu-devel] [RFC v2 4/5] timer: associate three timerlists with AioContext

2013-07-29 Thread Paolo Bonzini
Il 29/07/2013 10:20, liu ping fan ha scritto: Another issue is that deadline computation is not using the AioContext's timer lists. Sorry, can not catch the meaning. When AioContext has its own timer lists, it will have its own deadline(for ppoll timeout). So the computation should be

Re: [Qemu-devel] [RFC v2 4/5] timer: associate three timerlists with AioContext

2013-07-29 Thread liu ping fan
On Mon, Jul 29, 2013 at 9:11 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 29/07/2013 10:20, liu ping fan ha scritto: Another issue is that deadline computation is not using the AioContext's timer lists. Sorry, can not catch the meaning. When AioContext has its own timer lists, it will

[Qemu-devel] [RFC v2 4/5] timer: associate three timerlists with AioContext

2013-07-28 Thread Liu Ping Fan
Currently, timers run on iothread inside QBL, this limits the usage of timers in some case, e.g. virtio-blk-dataplane. In order to run timers on private thread based on different clocksource, we arm each AioContext with three timer lists in according to three clocksource (QemuClock). A little