I guess commit message provides enough information, but I want
to share some testing info. So, with qemu driver I get:
virsh # vcpuinfo qemu
VCPU: 0
CPU: 0
State: running
CPU Affinity: yyyy
virsh #
Check the corresponding process using cpuset(1) tool from base
system:
sudo cpuset -g -p 1308
pid 1308 mask: 0, 1, 2, 3
virsh # vcpupin qemu --vcpu 0 --live 2,3
virsh # vcpuinfo qemu
VCPU: 0
CPU: 0
State: running
CPU Affinity: --yy
virsh #
Now cpuset(1) says:
sudo cpuset -g -p 1308
pid 1308 mask: 2, 3
Now, do:
sudo cpuset -l 0-3 -p 1308
And check back again:
virsh # vcpuinfo qemu
VCPU: 0
CPU: 0
State: running
CPU Affinity: yyyy
virsh #
Roman Bogorodskiy (1):
BSD: implement virProcess{Get,Set}Affinity
src/util/virprocess.c | 39 +++++++++++++++++++++++++++++++++------
1 file changed, 33 insertions(+), 6 deletions(-)
--
1.8.4.3