mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
machine: make memory-backend a link property
Handle HostMemoryBackend creation and setting of ms->ram entirely in machine_run_board_init. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220414165300.555321-5-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ce9d03fb3f
commit
26f88d84da
5 changed files with 74 additions and 69 deletions
|
@ -25,7 +25,7 @@ OBJECT_DECLARE_TYPE(MachineState, MachineClass, MACHINE)
|
|||
|
||||
extern MachineState *current_machine;
|
||||
|
||||
void machine_run_board_init(MachineState *machine);
|
||||
void machine_run_board_init(MachineState *machine, const char *mem_path, Error **errp);
|
||||
bool machine_usb(MachineState *machine);
|
||||
int machine_phandle_start(MachineState *machine);
|
||||
bool machine_dump_guest_core(MachineState *machine);
|
||||
|
@ -339,7 +339,7 @@ struct MachineState {
|
|||
bool suppress_vmdesc;
|
||||
bool enable_graphics;
|
||||
ConfidentialGuestSupport *cgs;
|
||||
char *ram_memdev_id;
|
||||
HostMemoryBackend *memdev;
|
||||
/*
|
||||
* convenience alias to ram_memdev_id backend memory region
|
||||
* or to numa container memory region
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue