Re: [RFC 0/2] To introduce xenwatch multithreading (xen mtwatch)

From: Juergen Gross
Date: Sat Apr 07 2018 - 07:59:24 EST


On 07/04/18 13:25, Dongli Zhang wrote:
> This is to introduce "xenwatch multithreading" (or "multithreaded xenwatch",
> abbreviated as 'mtwatch'). The implementation of xen mtwatch involves below
> components:
>
> * dom0 linux kernel
> * xen toolstack
>
> Here are what the RFC is going to discuss:
>
> - what is the problem
> - what is the objective
> - what is the solution

Instead of creating one thread per domU, wouldn't it make much more
sense to use another mechanism, e.g. a workqueue, to deliver the
watch events? This would be one central place, wouldn't need any
changes in Xen tools or complex mechanisms to select the correct
thread, save resources, and domUs would benefit, too.


Juergen