[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v9 38/50] target/arm: move kvm cpu properties setting to kvm-cpu
From: |
Claudio Fontana |
Subject: |
[RFC v9 38/50] target/arm: move kvm cpu properties setting to kvm-cpu |
Date: |
Wed, 17 Mar 2021 19:30:01 +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 v9 15/50] target/arm: add temporary stub for arm_rebuild_hflags, (continued)
- [RFC v9 15/50] target/arm: add temporary stub for arm_rebuild_hflags, Claudio Fontana, 2021/03/17
- [RFC v9 14/50] target/arm: move cpsr_read, cpsr_write to cpu_common, Claudio Fontana, 2021/03/17
- [RFC v9 17/50] target/arm: move arm_mmu_idx* to cpu-mmu, Claudio Fontana, 2021/03/17
- [RFC v9 20/50] target/arm: move arm_cpu_list to common_cpu, Claudio Fontana, 2021/03/17
- [RFC v9 13/50] target/arm: kvm: add stubs for some helpers, Claudio Fontana, 2021/03/17
- [RFC v9 18/50] target/arm: move sve_zcr_len_for_el to common_cpu, Claudio Fontana, 2021/03/17
- [RFC v9 21/50] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code, Claudio Fontana, 2021/03/17
- [RFC v9 27/50] target/arm: remove kvm include file for PSCI and arm-powerctl, Claudio Fontana, 2021/03/17
- [RFC v9 32/50] tests: restrict TCG-only arm-cpu-features tests to TCG builds, Claudio Fontana, 2021/03/17
- [RFC v9 35/50] tests: do not run qom-test on all machines for ARM KVM-only, Claudio Fontana, 2021/03/17
- [RFC v9 38/50] target/arm: move kvm cpu properties setting to kvm-cpu,
Claudio Fontana <=
- [RFC v9 43/50] target/arm: cpu-sve: new module, Claudio Fontana, 2021/03/17
- [RFC v9 26/50] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled(), Claudio Fontana, 2021/03/17
- [RFC v9 23/50] target/arm: move sve_exception_el out of TCG helpers, Claudio Fontana, 2021/03/17
- [RFC v9 25/50] target/arm: cpu: fix style, Claudio Fontana, 2021/03/17
- [RFC v9 29/50] target/arm: cleanup cpu includes, Claudio Fontana, 2021/03/17
- [RFC v9 33/50] tests: do not run test-hmp on all machines for ARM KVM-only, Claudio Fontana, 2021/03/17
- [RFC v9 30/50] target/arm: remove broad "else" statements when checking accels, Claudio Fontana, 2021/03/17