Thank You, Brian and Stefan!

-a


On Thu, Oct 2, 2014 at 11:15 AM, Stefan Hajnoczi <stefa...@gmail.com> wrote:

> On Tue, Sep 30, 2014 at 01:44:48PM -0400, Al Patel wrote:
> > In the current system, what are the extra threads?
>
> The set of thread is dynamic because worker threads are started and
> terminated depending on guest activity.  You cannot make assumptions
> about threads and QEMU provides monitor commands that expose the tids.
>
> > Secondly, I am currently not using libvirt and having to start qemu from
> > command line. I still want to pin the vcpu to a pcpu and want to use
> > taskset on a thread. Unless I know which thread is emulating the vcpu
> > how can I pin that thread?
> >
> > Do you have any other thoughts on the pinning part?
>
> Use libvirt if you can.  It will save you a ton of time.
>
> If you really cannot use it, you can still look at its source code to
> understand how it does what it does.  See qemuProcessDetectVcpuPIDs() in
> libvirt and the QEMU query-cpus QMP command.
>
> Stefan
>

Reply via email to