diff options
author | Yi Wang <wang.yi59@zte.com.cn> | 2017-07-26 02:18:37 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-09-01 11:54:24 -0300 |
commit | 1bef228474482e70b2750832e8d67eacf3135c74 (patch) | |
tree | a221070cbcad896f81d966c1a62f55eb8c9ddc66 /hmp-commands-info.hx | |
parent | 5ce46cb34eecec0bc94a4b1394763f9a1bbe20c3 (diff) | |
download | qemu-1bef228474482e70b2750832e8d67eacf3135c74.zip qemu-1bef228474482e70b2750832e8d67eacf3135c74.tar.gz qemu-1bef228474482e70b2750832e8d67eacf3135c74.tar.bz2 |
hmp: allow apic-id for "info lapic"
Add [apic-id] support for hmp command "info lapic", which is
useful when debugging ipi and so on. Current behavior is not
changed when the parameter isn't specified.
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Yun Liu <liu.yunh@zte.com.cn>
Message-Id: <1501049917-4701-3-git-send-email-wang.yi59@zte.com.cn>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hmp-commands-info.hx')
-rw-r--r-- | hmp-commands-info.hx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index d9df238..4ab7fce 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -115,9 +115,10 @@ ETEXI #if defined(TARGET_I386) { .name = "lapic", - .args_type = "", - .params = "", - .help = "show local apic state", + .args_type = "apic-id:i?", + .params = "[apic-id]", + .help = "show local apic state (apic-id: local apic to read, default is which of current CPU)", + .cmd = hmp_info_local_apic, }, #endif |