From 1bef228474482e70b2750832e8d67eacf3135c74 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Wed, 26 Jul 2017 02:18:37 -0400 Subject: 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 Signed-off-by: Yun Liu Message-Id: <1501049917-4701-3-git-send-email-wang.yi59@zte.com.cn> Signed-off-by: Eduardo Habkost --- hmp-commands-info.hx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hmp-commands-info.hx') diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index d9df238a5f..4ab7fcee98 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 -- cgit v1.2.1