virttest: Update several cpu related functions in utils_misc

Find in utils_misc the cpu vendor and flag check code are duplicate.
Remove the duplicate one and update related scripts need to update.

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