virttest: Add some numa test related functions

Add a class NumaInfo in utils_misc and some related functions to
get the host numa structure and information.

Also add a function in utils_test to get qemu process's memory
and cpu use status in each node.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.qemu_vm: Add -numa to qemu command line

Add the command line to simulate a multi node NUMA system in guest.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Add a numa basic test

Get host numa topology. Start and bind guest to the cpu in each node
one by one. Then check the memory status for qemu process.
The qemu process should mainly used the memory from the node that it
is binded to.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Add a numa consistency test

Boot up a guest have the same number of node as host. Each node in guest
only have 1 cpu. Try to malloc inside the guest with taksset. The memory
allocated in host should also in the same node as the cpu thread.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Add numa stress test

Boot up a guest and malloc memory in host to force it to move
among the nodes of host.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.utils_misc: Use real path in is_mounted

As /etc/mtab will always use the real patch, so get the real path for
mount_point and src. Otherwise it will make mistake when we try to
find the mounted file system from mtab.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>