[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v10 38/49] target/arm: move kvm post init initialization to kvm cpu
From: |
Claudio Fontana |
Subject: |
[RFC v10 38/49] target/arm: move kvm post init initialization to kvm cpu accel |
Date: |
Mon, 22 Mar 2021 15:01:55 +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
- [RFC v10 21/49] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code, (continued)
- [RFC v10 21/49] target/arm: move aarch64_sync_32_to_64 (and vv) to cpu code, Claudio Fontana, 2021/03/22
- [RFC v10 27/49] target/arm: remove kvm include file for PSCI and arm-powerctl, Claudio Fontana, 2021/03/22
- [RFC v10 28/49] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Claudio Fontana, 2021/03/22
- [RFC v10 33/49] tests: do not run test-hmp on all machines for ARM KVM-only, Claudio Fontana, 2021/03/22
- [RFC v10 22/49] target/arm: split a15 cpu model and 32bit class functions to cpu32.c, Claudio Fontana, 2021/03/22
- [RFC v10 30/49] target/arm: remove broad "else" statements when checking accels, Claudio Fontana, 2021/03/22
- [RFC v10 31/49] tests/qtest: skip bios-tables-test test_acpi_oem_fields_virt for KVM, Claudio Fontana, 2021/03/22
- [RFC v10 32/49] tests: restrict TCG-only arm-cpu-features tests to TCG builds, Claudio Fontana, 2021/03/22
- [RFC v10 34/49] tests: device-introspect-test: cope with ARM TCG-only devices, Claudio Fontana, 2021/03/22
- [RFC v10 36/49] Revert "target/arm: Restrict v8M IDAU to TCG", Claudio Fontana, 2021/03/22
- [RFC v10 38/49] target/arm: move kvm post init initialization to kvm cpu accel,
Claudio Fontana <=
- [RFC v10 29/49] target/arm: cleanup cpu includes, Claudio Fontana, 2021/03/22
- [RFC v10 40/49] target/arm: move TCG gt timer creation code in tcg/, Claudio Fontana, 2021/03/22
- [RFC v10 39/49] target/arm: add tcg cpu accel class, Claudio Fontana, 2021/03/22
- [RFC v10 37/49] target/arm: create kvm cpu accel class, Claudio Fontana, 2021/03/22
- [RFC v10 35/49] tests: do not run qom-test on all machines for ARM KVM-only, Claudio Fontana, 2021/03/22
- [RFC v10 44/49] target/arm: arch_dump: restrict ELFCLASS64 to AArch64, Claudio Fontana, 2021/03/22
- [RFC v10 43/49] target/arm: make is_aa64 and arm_el_is_aa64 a macro for !TARGET_AARCH64, Claudio Fontana, 2021/03/22
- [RFC v10 46/49] target/arm: tcg: restrict ZCR cpregs to TARGET_AARCH64, Claudio Fontana, 2021/03/22