[libvirt-users] vcpupin and kvm

Daniel P. Berrange berrange at redhat.com
Wed Apr 4 08:53:36 UTC 2012


On Wed, Apr 04, 2012 at 10:37:34AM +0200, Geoff Galitz wrote:
> 
> 
> Hi.
> 
> Can anyone confirm if vcpupin works correctly with kvm?  If set I
> pin a vcpu it shows up correctly via vcpuinfo, but querying via
> taskset shows the cpu is not pinned.

Are you sure you're looking at the right PID with taskset ?

In KVM you have a main thread leader, with each VCPU as a
separate thread. When you pin a VCPU, only the corresponding
VCPU thread is pinned. The main KVM thread leader remains
unpinned. So if you query with taskset, make sure you look
at the VCPU PID, and not the main KVM thread leader PID


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvirt-users mailing list