[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v8 38/44] target/arm: move kvm cpu properties setting to kvm-cpu
From: |
Claudio Fontana |
Subject: |
[RFC v8 38/44] target/arm: move kvm cpu properties setting to kvm-cpu |
Date: |
Tue, 16 Mar 2021 19:36:56 +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 3d6501c2c5..ac01fa0bae 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -786,10 +786,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 b3e97080cc..3b8a8de30f 100644
--- a/target/arm/kvm/kvm-cpu.c
+++ b/target/arm/kvm/kvm-cpu.c
@@ -89,6 +89,7 @@ static void host_cpu_instance_init(Object *obj)
if (arm_feature(&cpu->env, ARM_FEATURE_AARCH64)) {
aarch64_add_sve_properties(obj);
}
+ kvm_arm_add_vcpu_properties(obj);
arm_cpu_post_init(obj);
}
--
2.26.2
- [RFC v8 44/44] target/arm: cpu-sve: split TCG and KVM functionality, (continued)
- [RFC v8 44/44] target/arm: cpu-sve: split TCG and KVM functionality, Claudio Fontana, 2021/03/16
- [RFC v8 27/44] target/arm: remove kvm include file for PSCI and arm-powerctl, Claudio Fontana, 2021/03/16
- [RFC v8 40/44] accel: add double dispatch mechanism for class initialization, Claudio Fontana, 2021/03/16
- [RFC v8 43/44] target/arm: cpu-sve: new module, Claudio Fontana, 2021/03/16
- [RFC v8 30/44] target/arm: remove broad "else" statements when checking accels, Claudio Fontana, 2021/03/16
- [RFC v8 36/44] Revert "target/arm: Restrict v8M IDAU to TCG", Claudio Fontana, 2021/03/16
- [RFC v8 35/44] tests: do not run qom-test on all machines for ARM KVM-only, Claudio Fontana, 2021/03/16
- [RFC v8 41/44] target/arm: add tcg cpu accel class, Claudio Fontana, 2021/03/16
- [RFC v8 39/44] accel: move call to accel_init_interfaces, Claudio Fontana, 2021/03/16
- [RFC v8 42/44] target/arm: move TCG gt timer creation code in tcg/, Claudio Fontana, 2021/03/16
- [RFC v8 38/44] target/arm: move kvm cpu properties setting to kvm-cpu,
Claudio Fontana <=