From: Ziyue Yang <[email protected]>
Many QEMU monitor commands, like "info lapic", "info tlb" and so on
use mon_get_cpu or related wrappers to access CPU info without checking
whether the CPU exists.
This patch series fix the "info lapic" case, and is the base of the incoming
patch series aiming to eliminate segfaults caused by other QEMU commands
trying to access CPU that doesn't exist.
Ziyue Yang (2):
monitor.c: make mon_get_cpu return NULL when there is no CPU
target/i386/monitor.c: check return value of mon_get_cpu before using
it
monitor.c | 10 +++++++---
target/i386/monitor.c | 7 +++++--
2 files changed, 12 insertions(+), 5 deletions(-)
--
2.11.0