summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorPaolo Bonzini2020-10-21 12:49:31 +0200
committerPaolo Bonzini2020-12-10 18:15:11 +0100
commit3df8c4f31a60101c61d7f49ce0a3635690bed579 (patch)
tree568bf40f3354244a5cac19b2202c2509a409fa08 /include/hw
parenttreewide: do not use short-form boolean options (diff)
downloadqemu-3df8c4f31a60101c61d7f49ce0a3635690bed579.tar.gz
qemu-3df8c4f31a60101c61d7f49ce0a3635690bed579.tar.xz
qemu-3df8c4f31a60101c61d7f49ce0a3635690bed579.zip
vl: extract validation of -smp to machine.c
Once smp_parse is done, the validation operates on the MachineState. There is no reason for that code to be in vl.c. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/boards.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index f94f4ad5d8..3a1968d035 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -26,6 +26,7 @@ OBJECT_DECLARE_TYPE(MachineState, MachineClass, MACHINE)
extern MachineState *current_machine;
void machine_run_board_init(MachineState *machine);
+bool machine_smp_parse(MachineState *ms, QemuOpts *opts, Error **errp);
bool machine_usb(MachineState *machine);
int machine_phandle_start(MachineState *machine);
bool machine_dump_guest_core(MachineState *machine);