mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
accel: Pass MachineState object to accel init functions
Most of the machine options and machine state information is in the MachineState object, not on the MachineClass. This will allow init functions to use the MachineState object directly instead of qemu_get_machine_opts() or the current_machine global. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
0d15da8e6f
commit
f6a1ef6440
8 changed files with 14 additions and 13 deletions
|
@ -39,7 +39,7 @@ typedef struct AccelClass {
|
|||
const char *opt_name;
|
||||
const char *name;
|
||||
int (*available)(void);
|
||||
int (*init_machine)(MachineClass *mc);
|
||||
int (*init_machine)(MachineState *ms);
|
||||
bool *allowed;
|
||||
} AccelClass;
|
||||
|
||||
|
@ -57,6 +57,6 @@ typedef struct AccelClass {
|
|||
|
||||
extern int tcg_tb_size;
|
||||
|
||||
int configure_accelerator(MachineClass *mc);
|
||||
int configure_accelerator(MachineState *ms);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue