aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-02-07 17:19:47 +0100
committerEduardo Habkost <ehabkost@redhat.com>2020-02-28 14:57:19 -0500
commitea0ac7f6f8f313f810858dd1ba4e7fae602e01bd (patch)
treec822cde3a88cdef15c4fc32d1de8f8546d0debdd /include
parentabcbc4eeca50bc4fa2963f8cc6308c3aad51148a (diff)
downloadqemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.zip
qemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.tar.gz
qemu-ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd.tar.bz2
hw: Make MachineClass::is_default a boolean type
There's no good reason for it to be type int, change it to bool. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200207161948.15972-3-philmd@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/boards.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index 142b86d..9bc42df 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -81,6 +81,8 @@ typedef struct {
* @max_cpus: maximum number of CPUs supported. Default: 1
* @min_cpus: minimum number of CPUs supported. Default: 1
* @default_cpus: number of CPUs instantiated if none are specified. Default: 1
+ * @is_default:
+ * If true QEMU will use this machine by default if no '-M' option is given.
* @get_hotplug_handler: this function is called during bus-less
* device hotplug. If defined it returns pointer to an instance
* of HotplugHandler object, which handles hotplug operation
@@ -181,7 +183,7 @@ struct MachineClass {
no_sdcard:1,
pci_allow_0_address:1,
legacy_fw_cfg_order:1;
- int is_default;
+ bool is_default;
const char *default_machine_opts;
const char *default_boot_order;
const char *default_display;