On 10/08/2013 09:49 AM, Pranavkumar Sawargaonkar wrote:
Parse qemu capabilities AArch64 just like arm 32bit.
Signed-off-by: Anup Patel <anup.patel(a)linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar(a)linaro.org>
---
src/qemu/qemu_capabilities.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 7c39c1c..1eae4ba 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -300,6 +300,8 @@ static virArch virQEMUCapsArchFromString(const char *arch)
return VIR_ARCH_I686;
if (STREQ(arch, "arm"))
return VIR_ARCH_ARMV7L;
+ if (STREQ(arch, "aarch64"))
+ return VIR_ARCH_AARCH64;
return virArchFromString(arch);
}
@@ -311,6 +313,8 @@ static const char *virQEMUCapsArchToString(virArch arch)
return "i386";
else if (arch == VIR_ARCH_ARMV7L)
return "arm";
+ else if (arch == VIR_ARCH_AARCH64)
+ return "aarch64";
return virArchToString(arch);
}
ACK
- Cole