[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v7 38/42] target/arm: move kvm cpu properties setting to kvm-cpu
From: |
Claudio Fontana |
Subject: |
[RFC v7 38/42] target/arm: move kvm cpu properties setting to kvm-cpu |
Date: |
Fri, 12 Mar 2021 18:22:39 +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 v7 30/42] target/arm: remove broad "else" statements when checking accels, (continued)
- [RFC v7 30/42] target/arm: remove broad "else" statements when checking accels, Claudio Fontana, 2021/03/12
- [RFC v7 40/42] accel: add double dispatch mechanism for class initialization, Claudio Fontana, 2021/03/12
- [RFC v7 37/42] target/arm: create kvm cpu accel class, Claudio Fontana, 2021/03/12
- [RFC v7 41/42] target/arm: add tcg cpu accel class, Claudio Fontana, 2021/03/12
- [RFC v7 34/42] tests: device-introspect-test: cope with ARM TCG-only devices, Claudio Fontana, 2021/03/12
- [RFC v7 35/42] tests: do not run qom-test on all machines for ARM KVM-only, Claudio Fontana, 2021/03/12
- [RFC v7 39/42] accel: move call to accel_init_interfaces, Claudio Fontana, 2021/03/12
- [RFC v7 36/42] Revert "target/arm: Restrict v8M IDAU to TCG", Claudio Fontana, 2021/03/12
- [RFC v7 33/42] tests: do not run test-hmp on all machines for ARM KVM-only, Claudio Fontana, 2021/03/12
- [RFC v7 38/42] target/arm: move kvm cpu properties setting to kvm-cpu,
Claudio Fontana <=
- [RFC v7 32/42] tests: restrict TCG-only arm-cpu-features tests to TCG builds, Claudio Fontana, 2021/03/12
- [RFC v7 42/42] target/arm: move TCG gt timer creation code in tcg/, Claudio Fontana, 2021/03/12