[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/5] monitor: Check whether TCG is enabled before run
From: |
Dr. David Alan Gilbert (git) |
Subject: |
[Qemu-devel] [PULL 2/5] monitor: Check whether TCG is enabled before running the "info jit" code |
Date: |
Wed, 26 Apr 2017 14:57:04 +0100 |
From: Thomas Huth <address@hidden>
The "info jit" command currently aborts on Mac OS X with the message
"qemu_mutex_lock: Invalid argument" when running with "-M accel=qtest".
We should only call into the TCG code here if TCG has really been
enabled and initialized.
Signed-off-by: Thomas Huth <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Tested-by: Peter Maydell <address@hidden>
Signed-off-by: Dr. David Alan Gilbert <address@hidden>
---
monitor.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/monitor.c b/monitor.c
index a27dc8003f..6289e5256c 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1086,6 +1086,11 @@ static void hmp_info_registers(Monitor *mon, const QDict
*qdict)
static void hmp_info_jit(Monitor *mon, const QDict *qdict)
{
+ if (!tcg_enabled()) {
+ error_report("JIT information is only available with accel=tcg");
+ return;
+ }
+
dump_exec_info((FILE *)mon, monitor_fprintf);
dump_drift_info((FILE *)mon, monitor_fprintf);
}
--
2.12.2
- [Qemu-devel] [PULL 0/5] hmp queue, Dr. David Alan Gilbert (git), 2017/04/26
- [Qemu-devel] [PULL 3/5] libqtest: Ignore QMP events when parsing the response for HMP commands, Dr. David Alan Gilbert (git), 2017/04/26
- [Qemu-devel] [PULL 2/5] monitor: Check whether TCG is enabled before running the "info jit" code,
Dr. David Alan Gilbert (git) <=
- [Qemu-devel] [PULL 1/5] hmp: gpa2hva and gpa2hpa hostaddr command, Dr. David Alan Gilbert (git), 2017/04/26
- [Qemu-devel] [PULL 4/5] libqtest: Add a generic function to run a callback function for every machine, Dr. David Alan Gilbert (git), 2017/04/26
- [Qemu-devel] [PULL 5/5] tests: Add a tester for HMP commands, Dr. David Alan Gilbert (git), 2017/04/26
- Re: [Qemu-devel] [PULL 0/5] hmp queue, Peter Maydell, 2017/04/26