From: Satheesh Rajendran <[email protected]>
This patch tests the virsh vcpupin command, which inturn address
the below changes.
Satheesh Rajendran (3):
client.shared.base_utils.py: Added utility functions
cpu_affinity_by_task(): to get the cpu affinity of vcpu
count_cpu(): to get the number of host cpus
modified: client/shared/base_utils.py
client.virt.libvirt_vm.py: Added the functions to support virsh_vcpupin
testcase
vcpupin(): function to pin the vcpu to cpu
get_vcpus_pid(): function get the vcpu pid
virsh_qemu_monitor_command(): implements virsh qemu-monitor-command
virsh_vcpupin(): implements virsh vcpupin command
virsh_vcpuinfo(): implements virsh vcpuinfo command
virsh_vcpucount_live(): implements vcpucount command
modified: client/virt/libvirt_vm.py
libvirt.tests: to test virsh vcpupin test case
new file: client/tests/libvirt/tests/virsh_vcpupin.py
modified: client/virt/subtests.cfg.sample
client/shared/base_utils.py | 21 +++++
client/tests/libvirt/tests/virsh_vcpupin.py | 115 +++++++++++++++++++++++++++
client/virt/libvirt_vm.py | 61 ++++++++++++++
client/virt/subtests.cfg.sample | 3 +
4 files changed, 200 insertions(+), 0 deletions(-)
create mode 100644 client/tests/libvirt/tests/virsh_vcpupin.py
--
1.7.5.4
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest