]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: process: Refactor and fix virProcessSetAffinity
authorPeter Krempa <pkrempa@redhat.com>
Tue, 2 Jun 2015 06:34:50 +0000 (08:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Jun 2015 12:20:25 +0000 (14:20 +0200)
commit825df8c3158cfaf5f398418471f10f4ff3c3515a
tree961cbaeba4699abb11adc199847a613371534aad
parent99cc11b924548ae58b60e80e14467387baf61e42
util: process: Refactor and fix virProcessSetAffinity

Refactor the function to return the bitmap instead of an integer and the
inner workings so that they make more sense.

This patch also fixes possible segfault on old systems that was
introduced by commit:

commit f1a43a8e4139b028257ef4ed05a81cfb5f8a8741
Author: Hu Tao <hutao@cn.fujitsu.com>
Date:   Fri Sep 14 15:46:59 2012 +0800

    use virBitmap to store cpu affinity info
src/qemu/qemu_driver.c
src/util/virprocess.c
src/util/virprocess.h