in test_reference_vmm_num_vcpus testcase,it calls real check function expect_vcpus(vmm_process, expected_vcpus)
which extracts "siblings" in /proc/cpuinfo file,while the number of siblings on a processor is the total number of execution units within that processor,not the meaning of real physical vcpus.
Early I started by trying to send the following command from the test function to the child process that started the VM
cat /proc/cpuinfo| grep "physical id"|wc -l
But it seems that the vmm_process.stdin.write() function can only write 32 characters to the terminal, and I don't know why.
I ended up getting the number of virtual machine instance cpus in a different way.
in test_reference_vmm_num_vcpus testcase,it calls real check function expect_vcpus(vmm_process, expected_vcpus) which extracts "siblings" in /proc/cpuinfo file,while the number of siblings on a processor is the total number of execution units within that processor,not the meaning of real physical vcpus.
Early I started by trying to send the following command from the test function to the child process that started the VM
cat /proc/cpuinfo| grep "physical id"|wc -l
But it seems that the vmm_process.stdin.write() function can only write 32 characters to the terminal, and I don't know why.
I ended up getting the number of virtual machine instance cpus in a different way.