[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v12 47/65] target/arm: move kvm post init initialization to kvm cpu
From: |
Claudio Fontana |
Subject: |
[RFC v12 47/65] target/arm: move kvm post init initialization to kvm cpu accel |
Date: |
Fri, 26 Mar 2021 20:36:43 +0100 |
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
target/arm/cpu.c | 4 ----
target/arm/kvm/kvm-cpu.c | 1 +
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index 5a76461e5b..5e0f6bd01d 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -778,10 +778,6 @@ void arm_cpu_post_init(Object *obj)
qdev_property_add_static(DEVICE(cpu), &arm_cpu_gt_cntfrq_property);
}
- if (kvm_enabled()) {
- kvm_arm_add_vcpu_properties(obj);
- }
-
#ifndef CONFIG_USER_ONLY
if (arm_feature(&cpu->env, ARM_FEATURE_AARCH64) &&
cpu_isar_feature(aa64_mte, cpu)) {
diff --git a/target/arm/kvm/kvm-cpu.c b/target/arm/kvm/kvm-cpu.c
index 5fbb127e61..9f65010c0c 100644
--- a/target/arm/kvm/kvm-cpu.c
+++ b/target/arm/kvm/kvm-cpu.c
@@ -63,6 +63,7 @@ static void kvm_cpu_instance_init(CPUState *cs)
* the same interface as non-KVM CPUs.
*/
qdev_init_gpio_in(DEVICE(cs), arm_cpu_kvm_set_irq, 4);
+ kvm_arm_add_vcpu_properties(OBJECT(cs));
}
static bool kvm_cpu_realizefn(CPUState *cs, Error **errp)
--
2.26.2
- Re: [RFC v12 41/65] tests: restrict TCG-only arm-cpu-features tests to TCG builds, (continued)
- [RFC v12 27/65] target/arm: split a15 cpu model and 32bit class functions to cpu32.c, Claudio Fontana, 2021/03/26
- [RFC v12 34/65] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled(), Claudio Fontana, 2021/03/26
- [RFC v12 37/65] target/arm: cleanup cpu includes, Claudio Fontana, 2021/03/26
- [RFC v12 42/65] tests: do not run test-hmp on all machines for ARM KVM-only, Claudio Fontana, 2021/03/26
- [RFC v12 44/65] tests: do not run qom-test on all machines for ARM KVM-only, Claudio Fontana, 2021/03/26
- [RFC v12 47/65] target/arm: move kvm post init initialization to kvm cpu accel,
Claudio Fontana <=
- [RFC v12 43/65] tests: device-introspect-test: cope with ARM TCG-only devices, Claudio Fontana, 2021/03/26
- [RFC v12 48/65] target/arm: add tcg cpu accel class, Claudio Fontana, 2021/03/26
- [RFC v12 45/65] Revert "target/arm: Restrict v8M IDAU to TCG", Claudio Fontana, 2021/03/26
- [RFC v12 49/65] target/arm: move TCG gt timer creation code in tcg/, Claudio Fontana, 2021/03/26
- [RFC v12 50/65] target/arm: cpu-sve: new module, Claudio Fontana, 2021/03/26