Commit-ID: 1b443e6b2e0bb0fa325fab273f05d288370515f0 Gitweb: http://git.kernel.org/tip/1b443e6b2e0bb0fa325fab273f05d288370515f0 Author: Anup Patel <anup.patel@xxxxxxxxxx> AuthorDate: Mon, 6 Oct 2014 12:15:17 +0100 Committer: Will Deacon <will.deacon@xxxxxxx> CommitDate: Fri, 10 Oct 2014 11:19:46 +0100 kvmtool: ARM64: Add target type potenza for aarch64 The VCPU target type KVM_ARM_TARGET_XGENE_POTENZA is available in latest Linux-3.16-rcX or higher hence register aarch64 target type for it. This patch enables us to run KVMTOOL on X-Gene Potenza host. Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@xxxxxxxxxx> Signed-off-by: Anup Patel <anup.patel@xxxxxxxxxx> Reviewed-by: Andre Przywara <andre.przywara@xxxxxxx> [will: reworded comment for clarity] Signed-off-by: Will Deacon <will.deacon@xxxxxxx> --- tools/kvm/arm/aarch64/arm-cpu.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/kvm/arm/aarch64/arm-cpu.c b/tools/kvm/arm/aarch64/arm-cpu.c index 88970de..8efe877 100644 --- a/tools/kvm/arm/aarch64/arm-cpu.c +++ b/tools/kvm/arm/aarch64/arm-cpu.c @@ -46,12 +46,24 @@ static struct kvm_arm_target target_cortex_a57 = { .init = arm_cpu__vcpu_init, }; +/* + * We really don't need to register a target for every + * new CPU. The target for Potenza CPU is only registered + * to enable compatibility with older host kernels. + */ +static struct kvm_arm_target target_potenza = { + .id = KVM_ARM_TARGET_XGENE_POTENZA, + .compatible = "arm,arm-v8", + .init = arm_cpu__vcpu_init, +}; + static int arm_cpu__core_init(struct kvm *kvm) { kvm_cpu__set_kvm_arm_generic_target(&target_generic_v8); return (kvm_cpu__register_kvm_arm_target(&target_aem_v8) || kvm_cpu__register_kvm_arm_target(&target_foundation_v8) || - kvm_cpu__register_kvm_arm_target(&target_cortex_a57)); + kvm_cpu__register_kvm_arm_target(&target_cortex_a57) || + kvm_cpu__register_kvm_arm_target(&target_potenza)); } core_init(arm_cpu__core_init); -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |