-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemu vmimpl: Dump vCPU registers when crashed/hung using QMP
QEMU provides an interface to read/change the VM state. There are: 1. JSON based "QMP" protocol; 2. human monitor protocol - "HMP" - a user-friendly QEMU console. The type of protocol is selected by the "mode" switch. QMP and HMP implement quite different set of commands (although there is some intersection) but QMP also implements a wrapper for HMP - HMP does not implement a proxy for QMP. This adds a TCP socket for QMP (another option would be a UNIX socket) to QEMU and uses it for dumping vCPU(s) registers (via HMP's "info registers") from instance::Diagnose() which is invoked when VM is considered having issues. Signed-off-by: Alexey Kardashevskiy <aik@linux.ibm.com>
- Loading branch information
Alexey Kardashevskiy
committed
Sep 10, 2020
1 parent
a5306ab
commit 6de752f
Showing
1 changed file
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters