rust-vmm / vmm-reference

A VMM implementation based of rust-vmm components
Apache License 2.0
146 stars 61 forks source link

fix testcase test_run_reference_vmm.py::test_reference_vmm_num_vcpus #211

Closed iscas-glm closed 2 years ago

iscas-glm commented 2 years ago

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.

andreeaflorescu commented 2 years ago

Closing this due to lack of activity. Feel free to re-open it if you want to continue to work on it.