master
c 24 lines 575 Bytes
Raw
1 /*
2 * QEMU Plugin system-emulation helpers
3 *
4 * Helpers that are specific to system emulation.
5 *
6 * Copyright (C) 2017, Emilio G. Cota <cota@braap.org>
7 * Copyright (C) 2019-2025, Linaro
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #include "qemu/osdep.h"
13 #include "qemu/plugin.h"
14 #include "hw/core/boards.h"
15
16 #include "plugin.h"
17
18 void qemu_plugin_fillin_mode_info(qemu_info_t *info)
19 {
20 MachineState *ms = MACHINE(qdev_get_machine());
21 info->system_emulation = true;
22 info->system.smp_vcpus = ms->smp.cpus;
23 info->system.max_vcpus = ms->smp.max_cpus;
24 }