qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Question on qemu threads


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] Question on qemu threads
Date: Thu, 2 Oct 2014 16:15:52 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

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

Attachment: pgp18U9NKpSqF.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]