[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Question about making system thread like kthread in Linux kernel



On Tue, Dec 11, 2018 at 09:40:35PM +0900, Minjun Hong wrote:
> Hi. While I review the result of my research, suddenly a good idea comes
> up, and I am looking for how to make threads in Xen like kthread in Linux
> kernel.
> 
> However, after googling and searching for the source code by grep, I have
> found only some information regarding stub domain and daemons, such as
> xenconsoled and xenbus.
> 
> I want a simple thread in Xen to offload some works which is being executed
> in the Credit scheduler.
> 
> Is there any data structure or API for that purpose in the Xen source code ?

There is no concept of threads in Xen.  You may be able to offload work
to a softirq.

Because Xen deals with domains and vcpus, another idea is to create
"worker" domains / vcpus inside the hypervisor to carry out work. But
that would involve a lot of changes if you want to make the APIs
generic.

Wei.

> 
> Thanks!
> Regards.

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/mailman/listinfo/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.