[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/6] target-i386: fix "info lapic" segfault on isapc
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 2/6] target-i386: fix "info lapic" segfault on isapc |
Date: |
Mon, 3 Apr 2017 21:44:05 +0200 |
From: Tejaswini Poluri <address@hidden>
Start QEMU with
"qemu-system-x86_64 -nographic -M isapc -serial none-monitor stdio"
and enter "info lapic" at the monitor prompt ⇒
Segmentation fault
Signed-off-by: Tejaswini Poluri <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
target/i386/helper.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/i386/helper.c b/target/i386/helper.c
index e2af340..f11cac6 100644
--- a/target/i386/helper.c
+++ b/target/i386/helper.c
@@ -326,6 +326,10 @@ void x86_cpu_dump_local_apic_state(CPUState *cs, FILE *f,
{
X86CPU *cpu = X86_CPU(cs);
APICCommonState *s = APIC_COMMON(cpu->apic_state);
+ if (!s) {
+ cpu_fprintf(f, "local apic state not available\n");
+ return;
+ }
uint32_t *lvt = s->lvt;
cpu_fprintf(f, "dumping local APIC state for CPU %-2u\n\n",
--
1.8.3.1
- [Qemu-devel] [PULL 0/6] Misc patches for QEMU 2.9.0-rc3, Paolo Bonzini, 2017/04/03
- [Qemu-devel] [PULL 1/6] iscsi: drop unused IscsiAIOCB.qiov field, Paolo Bonzini, 2017/04/03
- [Qemu-devel] [PULL 2/6] target-i386: fix "info lapic" segfault on isapc,
Paolo Bonzini <=
- [Qemu-devel] [PULL 3/6] ipmi: Fix macro issues, Paolo Bonzini, 2017/04/03
- [Qemu-devel] [PULL 4/6] nbd: fix memory leak on socket_connect failed, Paolo Bonzini, 2017/04/03
- [Qemu-devel] [PULL 5/6] exec: revert MemoryRegionCache, Paolo Bonzini, 2017/04/03
- [Qemu-devel] [PULL 6/6] main-loop: Acquire main_context lock around os_host_main_loop_wait., Paolo Bonzini, 2017/04/03
- Re: [Qemu-devel] [PULL 0/6] Misc patches for QEMU 2.9.0-rc3, Peter Maydell, 2017/04/04