This series add support querying local apic through apic-id for 'info lapic'. As cpu_index will not be used afterwards, so extend 'info registers' firstly to get apic-id through monitor commands.
v1 -> v2: * PATCH 01: Make the code simpler [Igor] * PATCH 02: use cpu_by_arch_id() to obtain CPU [Eduardo] Yi Wang (2): hmp: dump ids including socket-id, core-id and so on for 'info registers' hmp: allow apic-id for "info lapic" hmp-commands-info.hx | 7 ++++--- include/qom/cpu.h | 10 ++++++++++ qom/cpu.c | 11 ++++++++--- target/i386/helper.c | 8 ++++++++ target/i386/monitor.c | 10 +++++++++- 5 files changed, 39 insertions(+), 7 deletions(-)