[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v8 39/44] accel: move call to accel_init_interfaces
From: |
Claudio Fontana |
Subject: |
[RFC v8 39/44] accel: move call to accel_init_interfaces |
Date: |
Tue, 16 Mar 2021 19:36:57 +0100 |
move the call for sysemu specifically in machine_run_board_init,
mirror the calling sequence for user mode too.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
bsd-user/main.c | 2 +-
hw/core/machine.c | 1 +
linux-user/main.c | 2 +-
softmmu/vl.c | 1 -
4 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 798aba512c..ae0fd75aa1 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -914,8 +914,8 @@ int main(int argc, char **argv)
{
AccelClass *ac = ACCEL_GET_CLASS(current_accel());
- ac->init_machine(NULL);
accel_init_interfaces(ac);
+ ac->init_machine(NULL);
}
cpu = cpu_create(cpu_type);
env = cpu->env_ptr;
diff --git a/hw/core/machine.c b/hw/core/machine.c
index 257a664ea2..678558b9ac 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -1216,6 +1216,7 @@ void machine_run_board_init(MachineState *machine)
"on", false);
}
+ accel_init_interfaces(ACCEL_GET_CLASS(machine->accelerator));
machine_class->init(machine);
phase_advance(PHASE_MACHINE_INITIALIZED);
}
diff --git a/linux-user/main.c b/linux-user/main.c
index f956afccab..3ad442b82e 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -730,8 +730,8 @@ int main(int argc, char **argv, char **envp)
{
AccelClass *ac = ACCEL_GET_CLASS(current_accel());
- ac->init_machine(NULL);
accel_init_interfaces(ac);
+ ac->init_machine(NULL);
}
cpu = cpu_create(cpu_type);
env = cpu->env_ptr;
diff --git a/softmmu/vl.c b/softmmu/vl.c
index b7673b9613..b97a0e44eb 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3540,7 +3540,6 @@ void qemu_init(int argc, char **argv, char **envp)
current_machine->cpu_type = parse_cpu_option(cpu_option);
}
/* NB: for machine none cpu_type could STILL be NULL here! */
- accel_init_interfaces(ACCEL_GET_CLASS(current_machine->accelerator));
qemu_resolve_machine_memdev();
parse_numa_opts(current_machine);
--
2.26.2
- [RFC v8 34/44] tests: device-introspect-test: cope with ARM TCG-only devices, (continued)
- [RFC v8 34/44] tests: device-introspect-test: cope with ARM TCG-only devices, Claudio Fontana, 2021/03/16
- [RFC v8 37/44] target/arm: create kvm cpu accel class, Claudio Fontana, 2021/03/16
- [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 <=
- [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, 2021/03/16