提交 82ddd0b1 编写于 作者: J Jiri Denemark

cpu: Use virCPUData.arch in cpuDecode

virCPUDef.arch is not required to be filled in for guest CPU
definitions. It doesn't make sense to artificially mandate it to be set
when cpuDecode is called especially when virCPUData.arch passed to
cpuDecode already contains the architecture.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 4cd9545d
......@@ -240,7 +240,7 @@ cpuDecode(virCPUDefPtr cpu,
return -1;
}
if ((driver = cpuGetSubDriver(cpu->arch)) == NULL)
if ((driver = cpuGetSubDriver(data->arch)) == NULL)
return -1;
if (driver->decode == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册