提交 648e1054 编写于 作者: Y Yiqiao Pu

qemu.tests: Add flags for add_flag test

Some flags need to be added depends on the host type for the add_flag
test of boot_cpu_model.
Signed-off-by: NYiqiao Pu <ypu@redhat.com>
上级 d1f706a1
......@@ -26,6 +26,11 @@ def run_boot_cpu_model(test, params, env):
model_list = params.get("cpu_model_%s" % cpu_vendor,
host_model[-1])
extra_flags = params.get("cpu_model_flags_%s" % cpu_vendor, "")
if extra_flags:
cpu_flags = params.get("cpu_model_flags", "") + extra_flags
params["cpu_model_flags"] = cpu_flags
if model_list:
model_list = model_list.split(" ")
for model in model_list:
......
......@@ -43,6 +43,8 @@
cpu_model_GenuineIntel = "Westmere"
cpu_model_AuthenticAMD = "Opteron_G2"
cpu_model_flags = ",+xsave,+sse4a,+aes,+sep,+sse4.2"
cpu_model_flags_GenuineIntel = ",+smep,+rdrand,+erms"
cpu_model_flags_AuthenticAMD = ",+vmcb_clean,+flushbyasid,+tsc_scale,+decodeassists"
- remove_flag:
cpu_model_GenuineIntel = "SandyBridge"
cpu_model_AuthenticAMD = "Opteron_G3"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册