mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
New QMP command query-cpu-max and HMP command cpu_max
These commands return the maximum number of CPUs supported by the currently running emulator instance, as defined in its QEMUMachine struct. Signed-off-by: Michal Novotny <minovotn@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
e5ecec7bad
commit
4d700430a2
7 changed files with 56 additions and 0 deletions
|
@ -2745,6 +2745,13 @@ static mon_cmd_t info_cmds[] = {
|
|||
.help = "show the TPM device",
|
||||
.mhandler.cmd = hmp_info_tpm,
|
||||
},
|
||||
{
|
||||
.name = "cpu_max",
|
||||
.args_type = "",
|
||||
.params = "",
|
||||
.help = "Get maximum number of VCPUs supported by machine",
|
||||
.mhandler.cmd = hmp_query_cpu_max,
|
||||
},
|
||||
{
|
||||
.name = NULL,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue