From: "Denis V. Lunev" <den@openvz.org>
Cc: "Denis V. Lunev" <den@openvz.org>,
"Andreas Färber" <andreas.faerber@web.de>,
"Paolo Bonzini" <pbonzini@redhat.com>,
qemu-devel@nongnu.org, "Pavel Butsykin" <pbutsykin@virtuozzo.com>
Subject: [Qemu-devel] [PATCH v2 0/9] hmp command IO- and Local APIC dump state
Date: Tue, 15 Sep 2015 12:22:59 +0300 [thread overview]
Message-ID: <1442308988-653-1-git-send-email-den@openvz.org> (raw)
Added the hmp command to query IO- and Local APIC registers state,
it can be very useful to identify problems related to the emulation devices.
(qemu) info apic-local
apic.lvt 00-timer 000300fd int=fd .H.EMP delmod=0:Fixed
apic.lvt 00-thermal 00010000 int=00 .H.EM. delmod=0:Fixed
apic.lvt 00-perfmon 000000fe int=fe .H.E.. delmod=0:Fixed
apic.lvt 00-LINT0 0001001f int=1f .H.EM. delmod=0:Fixed
apic.lvt 00-LINT1 000004ff int=ff .H.E.. delmod=4:NMI
apic.lvt 00-Error 000000e3 int=e3 .H.E.. delmod=0:Fixed
apic.error 00 esr 00000000 S:... R:... .
apic.timer 00 DCR=0000000b(b) initial_count=1000090000
apic.icr 00 02000000000c00d1: int=d1 delmod=0:Fixed P..E shorthand=3:all dest=2
apic.prio 00 apr=00(0:0) tpr=40(4:0)
apic.dest 00 dfr=f0(f) ldr=01(01)
apic.svr 00 0000011f vec=1f on focus=off
apic.interrupt 00 065:R.E
(qemu) info apic-io
ioapic ID=00 IRR=00000000 SEL=18
ioapic 00 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 01 0300000000000993: int=93 delmod=1:LowPri L.H.E. dest=3
ioapic 02 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 03 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 04 0300000000000992: int=92 delmod=1:LowPri L.H.E. dest=3
ioapic 05 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 06 02000000000109b3: int=b3 delmod=1:LowPri L.H.EM dest=2
ioapic 07 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 08 01000000000008d1: int=d1 delmod=0:Fixed L.H.E. dest=1
ioapic 09 03000000000089b1: int=b1 delmod=1:LowPri L.H.L. dest=3
ioapic 10 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 11 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 12 03000000000009a3: int=a3 delmod=1:LowPri L.H.E. dest=3
ioapic 13 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 14 0300000000000962: int=62 delmod=1:LowPri L.H.E. dest=3
ioapic 15 0300000000000982: int=82 delmod=1:LowPri L.H.E. dest=3
ioapic 16 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 17 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 18 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 19 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 20 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 21 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 22 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
ioapic 23 00000000000100ff: int=ff delmod=0:Fixed P.H.EM dest=0
Changes from v1:
- implementation of hmp commands moved to the target-i386 part
- the cpu_dump_apic_local_state interface moved to the target-i386 part
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Andreas Färber <andreas.faerber@web.de>
CC: Paolo Bonzini <pbonzini@redhat.com>
Pavel Butsykin (9):
apic_internal.h: move apic_get_bit(), apic_set_bit() to
apic_internal.h
apic_internal.h: rename ESR_ILLEGAL_ADDRESS to
APIC_ESR_ILLEGAL_ADDRESS
apic_internal.h: added more constants
apic_internal.h: fix formatting and drop unused consts
monitor: make monitor_fprintf and mon_get_cpu externally visible
hmp: added local apic dump state
ioapic_internal.h: added more constants
hmp: added io apic dump state
hmp: implemented io apic dump state for TCG
disas.c | 10 ---
hmp-commands-info.hx | 32 ++++++++
hw/i386/kvm/ioapic.c | 10 +++
hw/intc/apic.c | 20 +----
hw/intc/ioapic.c | 12 +++
hw/intc/ioapic_common.c | 31 ++++++++
include/hw/i386/apic_internal.h | 90 +++++++++++++++++++---
include/hw/i386/ioapic_internal.h | 7 ++
include/hw/i386/pc.h | 5 ++
include/monitor/monitor-common.h | 3 +
include/monitor/monitor.h | 1 +
monitor.c | 5 +-
target-i386/cpu.h | 3 +
target-i386/helper.c | 155 ++++++++++++++++++++++++++++++++++++++
target-i386/monitor.c | 17 +++++
15 files changed, 359 insertions(+), 42 deletions(-)
--
2.1.4
next reply other threads:[~2015-09-15 9:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 9:22 Denis V. Lunev [this message]
2015-09-15 9:23 ` [Qemu-devel] [PATCH 1/9] apic_internal.h: move apic_get_bit(), apic_set_bit() to apic_internal.h Denis V. Lunev
2015-09-15 9:23 ` [Qemu-devel] [PATCH 2/9] apic_internal.h: rename ESR_ILLEGAL_ADDRESS to APIC_ESR_ILLEGAL_ADDRESS Denis V. Lunev
2015-09-15 9:23 ` [Qemu-devel] [PATCH 3/9] apic_internal.h: added more constants Denis V. Lunev
2015-09-15 9:23 ` [Qemu-devel] [PATCH 4/9] apic_internal.h: fix formatting and drop unused consts Denis V. Lunev
2015-09-15 9:23 ` [Qemu-devel] [PATCH 5/9] monitor: make monitor_fprintf and mon_get_cpu externally visible Denis V. Lunev
2015-09-15 9:23 ` [Qemu-devel] [PATCH 6/9] hmp: added local apic dump state Denis V. Lunev
2015-09-15 10:20 ` Paolo Bonzini
2015-09-15 9:23 ` [Qemu-devel] [PATCH 7/9] ioapic_internal.h: added more constants Denis V. Lunev
2015-09-15 9:23 ` [Qemu-devel] [PATCH 8/9] hmp: added io apic dump state Denis V. Lunev
2015-09-15 10:32 ` Paolo Bonzini
2015-09-15 9:23 ` [Qemu-devel] [PATCH 9/9] hmp: implemented io apic dump state for TCG Denis V. Lunev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442308988-653-1-git-send-email-den@openvz.org \
--to=den@openvz.org \
--cc=andreas.faerber@web.de \
--cc=pbonzini@redhat.com \
--cc=pbutsykin@virtuozzo.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).