mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
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: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 3887afbb6b
)
This commit is contained in:
parent
eed4cb360b
commit
440c15444a
@ -1940,6 +1940,10 @@ qemuCapsPtr qemuCapsNewForBinary(const char *binary)
|
|||||||
tmp = strstr(binary, QEMU_SYSTEM_PREFIX);
|
tmp = strstr(binary, QEMU_SYSTEM_PREFIX);
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
tmp += strlen(QEMU_SYSTEM_PREFIX);
|
tmp += strlen(QEMU_SYSTEM_PREFIX);
|
||||||
|
|
||||||
|
/* For historical compat we use 'itanium' as arch name */
|
||||||
|
if (STREQ(tmp, "ia64"))
|
||||||
|
tmp = "itanium";
|
||||||
} else {
|
} else {
|
||||||
uname_normalize(&ut);
|
uname_normalize(&ut);
|
||||||
tmp = ut.machine;
|
tmp = ut.machine;
|
||||||
|
Loading…
Reference in New Issue
Block a user