提交 440c1544 编写于 作者: D Daniel P. Berrange 提交者: Cole Robinson

Fix handling of itanium arch name in QEMU driver

For historical compat we use 'itanium' as the arch name, so
if the QEMU binary suffix is 'ia64' we need to translate it
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 3887afbb)
上级 eed4cb36
......@@ -1940,6 +1940,10 @@ qemuCapsPtr qemuCapsNewForBinary(const char *binary)
tmp = strstr(binary, QEMU_SYSTEM_PREFIX);
if (tmp) {
tmp += strlen(QEMU_SYSTEM_PREFIX);
/* For historical compat we use 'itanium' as arch name */
if (STREQ(tmp, "ia64"))
tmp = "itanium";
} else {
uname_normalize(&ut);
tmp = ut.machine;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册