Skip to contentSkip to conversation

hmp queue

GIT PULL Applied Dr. David Alan Gilbert (git) 2 participants 3 messages Mar 31, 2017

lore
Share & tools
lore
#0 lore raw

From: "Dr. David Alan Gilbert" <[email protected]>

The following changes since commit 05a6f451eb0e3224a8e6d98089379f20ec06c787:

Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2017-03-30-tag' into staging (2017-03-31 11:09:51 +0100)

are available in the git repository at:

git://github.com/dagrh/qemu.git tags/pull-hmp-20170331

for you to fetch changes up to fd5d23babf9838c1b099a9e8020e778aac0ebb4d:

hmp: fix "dump-quest-memory" segfault (2017-03-31 11:53:42 +0100)

----------------------------------------------------------------
HMP pull (one bugfix)

----------------------------------------------------------------
Iwona Kotlarska (1):
hmp: fix "dump-quest-memory" segfault

 target/i386/arch_dump.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/1] hmp: fix "dump-quest-memory" segfault

From: Iwona Kotlarska <[email protected]>

Running QEMU with "qemu-system-x86_64 -M none -nographic -m 256" and executing "dump-guest-memory /dev/null 0 8192" results in segfault.
Fix by checking if we have CPU.

Message-Id: <[email protected]>

Fixed up title

---
 target/i386/arch_dump.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
target/i386/arch_dump.c +1 -2
index 5a2e4be..fe0aa36 100644
@@ -391,8 +391,7 @@ int cpu_get_dump_info(ArchDumpInfo *info,
 
 #ifdef TARGET_X86_64
     X86CPU *first_x86_cpu = X86_CPU(first_cpu);
-
-    lma = !!(first_x86_cpu->env.hflags & HF_LMA_MASK);
+    lma = first_cpu && (first_x86_cpu->env.hflags & HF_LMA_MASK);
 #endif
 
     if (lma) {
Signature · 1 line
2.9.3
#2 lore raw
In reply to Dr. David Alan Gilbert (git)
Quoted 10 lines · Dr. David Alan Gilbert (git)

From: "Dr. David Alan Gilbert" <[email protected]>

The following changes since commit 05a6f451eb0e3224a8e6d98089379f20ec06c787:

Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2017-03-30-tag' into staging (2017-03-31 11:09:51 +0100)

are available in the git repository at:

git://github.com/dagrh/qemu.git tags/pull-hmp-20170331

Quoted 8 lines

for you to fetch changes up to fd5d23babf9838c1b099a9e8020e778aac0ebb4d:

hmp: fix "dump-quest-memory" segfault (2017-03-31 11:53:42 +0100)

----------------------------------------------------------------
HMP pull (one bugfix)

----------------------------------------------------------------

Applied, thanks.

-- PMM