virttest.qemu_vm: Raise VMConfigMissingError for 9p cfgs

The original VMCreateError exception arguments are incorrect.
And actually these 2 places should raise a VMConfigMissingError.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.qemu_monitor: Implement MonitorConnectError class

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.qemu_vm: Add missing definition of exception

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.utils_test: get_linux_ifname - Make sys_method more robust

Sometimes, /sys/class/net may contain files (such as bonding_masters,
if the bonding module is loaded). So, let's handle the ShellCmdErrors
that might arise when trying to list the mac address of the interfaces.

Also, if no suitable interfaces were found, just return None.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.utils_test: get_linux_ifname - Introduce ip link method

Try to use ip link in case ifconfig didn't work. Looking
on /sys would be the last resource.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt tests.cfg: Remove OS definition

Since this prevents running things with the test runner
with other guests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.utils_misc:fix 'unknown' CPU for IBM Power architecture

Currently, autotest support amd and intel's X86 cpu type, IBM Power
cpus will be configure as 'unknown'.

Add pattern to deal with the cpuinfo of power, so that can figure
out the vendor IBM.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
virttest.utils_misc:Fix get_host_cpu_models to return ppc64

Currently, the function get_host_cpu_models just return
the models for intel and amd's X86 cpus.

Add ppc64 model return for IBM Power architecture

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
virttest.utils_misc:fix qemu-system-ppc64 cpu model list

Currently, the regular expression in extract_qemu_cpu_models is just
able to work with X86 qemu.

Add check if X86 pattern return none, will use PowerPC pattern to
get qemu support cpu model.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
fix of assigning multiple netdev_extra_params

Currently we added a comma for netdev_extra_params in framework,
if we want to add multiple parameters in more than one times,
we should not use comma prefix in first parameter string.

eg. add multiple parameters more than one times:
  netdev_extra_params = "vhost=on"
  netdev_extra_params += ",sndbuf=512"

This patch moved the comma out of framework, then we can
set the parameter conveniently. We don't care about if it's the
first assignment, just using comma prefix for all params strings.

Signed-off-by: Amos Kong <akong@redhat.com>
virt-libvirt: Be helpful with old-libvirt installs

Signed-off-by: Chris Evich <cevich@redhat.com>