[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 20/33] accel: move call to accel_init_interfaces
From: |
Paolo Bonzini |
Subject: |
[PULL 20/33] accel: move call to accel_init_interfaces |
Date: |
Tue, 11 May 2021 04:13:37 -0400 |
From: Claudio Fontana <cfontana@suse.de>
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>
Message-Id: <20210322132800.7470-23-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
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 36a889d084..715129e624 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -913,8 +913,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 0f5ce43d0c..1bf0e687b9 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -1234,6 +1234,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 57ba1b45ab..7995b6e7a6 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -729,8 +729,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 307944aef3..93e78469bc 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3595,7 +3595,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
- [PULL 02/33] target/i386: Split out do_fsave, do_frstor, do_fxsave, do_fxrstor, (continued)
- [PULL 02/33] target/i386: Split out do_fsave, do_frstor, do_fxsave, do_fxrstor, Paolo Bonzini, 2021/05/11
- [PULL 01/33] target/i386: Rename helper_fldt, helper_fstt, Paolo Bonzini, 2021/05/11
- [PULL 08/33] i386: split off sysemu-only functionality in tcg-cpu, Paolo Bonzini, 2021/05/11
- [PULL 03/33] i386: split cpu accelerators from cpu.c, using AccelCPUClass, Paolo Bonzini, 2021/05/11
- [PULL 09/33] i386: split smm helper (sysemu), Paolo Bonzini, 2021/05/11
- [PULL 07/33] accel-cpu: make cpu_realizefn return a bool, Paolo Bonzini, 2021/05/11
- [PULL 06/33] target/i386: fix host_cpu_adjust_phys_bits error handling, Paolo Bonzini, 2021/05/11
- [PULL 05/33] accel: introduce new accessor functions, Paolo Bonzini, 2021/05/11
- [PULL 18/33] target/i386: gdbstub: only write CR0/CR2/CR3/EFER for sysemu, Paolo Bonzini, 2021/05/11
- [PULL 19/33] i386: make cpu_load_efer sysemu-only, Paolo Bonzini, 2021/05/11
- [PULL 20/33] accel: move call to accel_init_interfaces,
Paolo Bonzini <=
- [PULL 23/33] target/i386: move paging mode constants from SVM to cpu.h, Paolo Bonzini, 2021/05/11
- [PULL 17/33] target/i386: gdbstub: introduce aux functions to read/write CS64 regs, Paolo Bonzini, 2021/05/11
- [PULL 14/33] i386: split svm_helper into sysemu and stub-only user, Paolo Bonzini, 2021/05/11
- [PULL 11/33] i386: move TCG bpt_helper into sysemu/, Paolo Bonzini, 2021/05/11
- [PULL 10/33] i386: split tcg excp_helper into sysemu and user parts, Paolo Bonzini, 2021/05/11
- [PULL 12/33] i386: split misc helper user stubs and sysemu part, Paolo Bonzini, 2021/05/11
- [PULL 15/33] i386: split seg_helper into user-only and sysemu parts, Paolo Bonzini, 2021/05/11
- [PULL 13/33] i386: separate fpu_helper sysemu-only parts, Paolo Bonzini, 2021/05/11
- [PULL 22/33] target/i386: merge SVM_NPTEXIT_* with PF_ERROR_* constants, Paolo Bonzini, 2021/05/11
- [PULL 32/33] configure: fix detection of gdbus-codegen, Paolo Bonzini, 2021/05/11