qemu.tests.cfg: Enable qemu_guest_agent tests on newer Fedora host

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.cfg: Update qemu guest agent config

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests: Fix module import problem in qemu_guest_agent_snapshot test

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.qemu_guest_agent: Update fsfreeze/fsthaw workflow

The original flow of freeze/thaw testing will make autotest
hang when rebooting/shutdown guest after freeze guest fs.
This patch moves guest reboot/shutdown operation after guest
is thawed.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.guest_agent: Remove qemu monitor operation from this module

This module should not depend on qemu monitor interfaces.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.guest_agent: Remove vm related operation in this module

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.guest_agent: Update vm name arguments in exception classes

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.guest_agent: Define constant for guest agent serial type

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.guest_agent: Remove VAgentNotSupportedSerialError

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.qemu_guest_agent: Update QemuAgent initiation code

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.qemu_guest_agent: Fix test error message

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.utils_net: move net related functions to utils_net

Move the net related function to utils_net to ignore the
loop import problems.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.utils_net: Convert windows format ip to linux ip format in update_mac_ip_address

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.utils_misc: Smbios test support in kvm autotest

    this patch modify smbios_table, add smbios three smbios type
and machine type test(-M) support.
    you can run smbios_table using "-smbios type=0" "-smbios type=1"
or both of them in test,and you can run test using diff machine type.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Move cpu related functions together

move get_cpu_model function under other cpu related functions

Signed-off-by: Suqin Huang <shuang@redhat.com>
Update cpu_model related in utils_misc.py

1. add haswell/G5 model in get_cpu_model
2. drop duplicate in get_cpu_model()
3. add more cpu flag alias
4. remove use_default_cpu_model, and and auto_cpu_model judging, otherwise
   -cpu host cannot be used

Change from v1:
1. move get_cpu_model under other cpu related function is send with
   seperate patch
2. add G5 cpu model

Change from v2:
update host-os.cfg.sample not host-os

Signed-off-by: Suqin Huang <shuang@redhat.com>
move check_if_vm_vcpu_match() to utils_misc

Changelog From V1:
using logging instead of error.context in function

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
utils_misc: Update vendor name used in cpu_types

get_cpu_vendor will return intel, amd, ibm or unknown

Signed-off-by: Feng Yang <fyang@redhat.com>
Acked-by: Suqin Huang <shuang@redhat.com>
virttest.utils_misc: small bugs fix

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.bootstrap.py: Correct number_variants in get_directory_structure

The old method of caculate number_variants will give a wrong number if
there is more than one sub directory in a cfg directory and each sub directory
has different depth.

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