mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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>
This commit is contained in:
@@ -1943,6 +1943,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;
|
||||
|
||||
Reference in New Issue
Block a user