Skip to content

RFC: vcpu pinning at qemu start

Glauber Costa kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8add thread id to vcpu structureqemu/qemu-kvm.c+1 -00 replies
2/8provide a gettid functionqemu/qemu-kvm.c+6 -00 replies
3/8get thread id at thread's creationqemu/qemu-kvm.c+2 -00 replies
4/8store and set cpu affinitiesqemu/qemu-kvm.c+17 -00 replies
5/8initialize affinitiesqemu/vl.c+3 -00 replies
6/8stabilish default affinity for newly created cpusqemu/qemu-kvm.c+8 -00 replies
7/8process a cpu affinity maskqemu/vl.c+17 -00 replies
8/8provide -cpu-map optionqemu/vl.c+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] RFC: vcpu pinning at qemu start

Hi guys,

Here's a first series of patch aiming at vcpu pinning support in qemu. Ideally, as vcpu as just normal threads, the usual userspace tools can be used to set cpu affinities mask.

However, It makes it very difficult to _start_ a vm with vcpus pinned, since we don't know the thread ids from qemu in advance, nor do we know when are the vcpus created.

The patches introduce a -cpu-map option, that, if specified, starts the virtual cpus with the specified affinities.

Comments? Welcome. Random rants? Not welcome, but... how can I stop you? So go ahead!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/