qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [help]: how to use HMP command dump-guest-memory
@ 2012-07-18 16:47 Sheldon
  2012-07-19  5:42 ` Wen Congyang
  0 siblings, 1 reply; 6+ messages in thread
From: Sheldon @ 2012-07-18 16:47 UTC (permalink / raw)
  To: qemu-devel

I want to dump all guest's memory to file ./guestcore
I execute this command as follow:
(qemu) dump-guest-memory -p protocol file:./guestcore
invalid char in expression

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [help]: how to use HMP command dump-guest-memory
  2012-07-18 16:47 [Qemu-devel] [help]: how to use HMP command dump-guest-memory Sheldon
@ 2012-07-19  5:42 ` Wen Congyang
  2012-07-19  7:29   ` Sheldon
  0 siblings, 1 reply; 6+ messages in thread
From: Wen Congyang @ 2012-07-19  5:42 UTC (permalink / raw)
  To: Sheldon; +Cc: qemu-devel

At 07/19/2012 12:47 AM, Sheldon Wrote:
> I want to dump all guest's memory to file ./guestcore
> I execute this command as follow:
> (qemu) dump-guest-memory -p protocol file:./guestcore
> invalid char in expression

Please try this command:
dump-guest-memory -p file:./guestcore

Thanks
Wen Congyang

> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [help]: how to use HMP command dump-guest-memory
  2012-07-19  5:42 ` Wen Congyang
@ 2012-07-19  7:29   ` Sheldon
  2012-07-19  7:41     ` Wen Congyang
  0 siblings, 1 reply; 6+ messages in thread
From: Sheldon @ 2012-07-19  7:29 UTC (permalink / raw)
  To: Wen Congyang; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

thank you.
can you tell me what's the difference between memsave and 
dump-guest-memory without -p option?
and what's the difference between *kernel coredump *and 
dump-guest-memory with -p option?

On 07/19/2012 01:42 PM, Wen Congyang wrote:
> At 07/19/2012 12:47 AM, Sheldon Wrote:
>> I want to dump all guest's memory to file ./guestcore
>> I execute this command as follow:
>> (qemu) dump-guest-memory -p protocol file:./guestcore
>> invalid char in expression
> Please try this command:
> dump-guest-memory -p file:./guestcore
>
> Thanks
> Wen Congyang
>
>>
>>
>>
>>
>>



[-- Attachment #2: Type: text/html, Size: 1293 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [help]: how to use HMP command dump-guest-memory
  2012-07-19  7:29   ` Sheldon
@ 2012-07-19  7:41     ` Wen Congyang
  2012-07-19  7:53       ` HATAYAMA Daisuke
  2012-07-19  9:25       ` Sheldon
  0 siblings, 2 replies; 6+ messages in thread
From: Wen Congyang @ 2012-07-19  7:41 UTC (permalink / raw)
  To: Sheldon; +Cc: qemu-devel

At 07/19/2012 03:29 PM, Sheldon Wrote:
> thank you.
> can you tell me what's the difference between memsave and
> dump-guest-memory without -p option?

IIRC, memsave only contains memory. The core generated by
dump-guest-memory contains registers' value, and you can use
crash to deal with it.

> and what's the difference between *kernel coredump *and
> dump-guest-memory with -p option?

kernel coredump? Do you mean kdump?

They are almost the same. The core generated by dump-guest-memory
contains some registers' value which is not included in the core
generated by kdump.

The kdump runs in the guest, while dump-guest-memory runs in
the host. If you forget to start kdump, you can use dump-guest-memory
to get the core.

Thanks
Wen Congyang

> 
> On 07/19/2012 01:42 PM, Wen Congyang wrote:
>> At 07/19/2012 12:47 AM, Sheldon Wrote:
>>> I want to dump all guest's memory to file ./guestcore
>>> I execute this command as follow:
>>> (qemu) dump-guest-memory -p protocol file:./guestcore
>>> invalid char in expression
>> Please try this command:
>> dump-guest-memory -p file:./guestcore
>>
>> Thanks
>> Wen Congyang
>>
>>>
>>>
>>>
>>>
>>>
> 
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [help]: how to use HMP command dump-guest-memory
  2012-07-19  7:41     ` Wen Congyang
@ 2012-07-19  7:53       ` HATAYAMA Daisuke
  2012-07-19  9:25       ` Sheldon
  1 sibling, 0 replies; 6+ messages in thread
From: HATAYAMA Daisuke @ 2012-07-19  7:53 UTC (permalink / raw)
  To: shaohef; +Cc: qemu-devel

From: Wen Congyang <wency@cn.fujitsu.com>
Subject: Re: [Qemu-devel] [help]: how to use HMP command dump-guest-memory
Date: Thu, 19 Jul 2012 15:41:22 +0800

> At 07/19/2012 03:29 PM, Sheldon Wrote:

> kernel coredump? Do you mean kdump?
> 
> They are almost the same. The core generated by dump-guest-memory
> contains some registers' value which is not included in the core
> generated by kdump.
> 
> The kdump runs in the guest, while dump-guest-memory runs in
> the host. If you forget to start kdump, you can use dump-guest-memory
> to get the core.
> 

The point is the fact that external crash dump mechanism doesn't touch
guest memory, so it can run safely even if kdump on the guest failed
for example due to lost of its logical integrity caused by broken
memory.

Thanks.
HATAYAMA, Daisuke

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [help]: how to use HMP command dump-guest-memory
  2012-07-19  7:41     ` Wen Congyang
  2012-07-19  7:53       ` HATAYAMA Daisuke
@ 2012-07-19  9:25       ` Sheldon
  1 sibling, 0 replies; 6+ messages in thread
From: Sheldon @ 2012-07-19  9:25 UTC (permalink / raw)
  To: Wen Congyang; +Cc: qemu-devel

On 07/19/2012 03:41 PM, Wen Congyang wrote:
> At 07/19/2012 03:29 PM, Sheldon Wrote:
>> thank you.
>> can you tell me what's the difference between memsave and
>> dump-guest-memory without -p option?
> IIRC, memsave only contains memory. The core generated by
> dump-guest-memory contains registers' value, and you can use
> crash to deal with it.
>
>> and what's the difference between *kernel coredump *and
>> dump-guest-memory with -p option?
> kernel coredump? Do you mean kdump?
>
> They are almost the same. The core generated by dump-guest-memory
> contains some registers' value which is not included in the core
> generated by kdump.
>
> The kdump runs in the guest, while dump-guest-memory runs in
> the host. If you forget to start kdump, you can use dump-guest-memory
> to get the core.
got it.
So if I want to get kdump, I can use  dump-guest-memory command.
And if I want to get a process coredump on guest OS , I should login the 
guest OS, and get the process coredump file.
>
> Thanks
> Wen Congyang
>
>> On 07/19/2012 01:42 PM, Wen Congyang wrote:
>>> At 07/19/2012 12:47 AM, Sheldon Wrote:
>>>> I want to dump all guest's memory to file ./guestcore
>>>> I execute this command as follow:
>>>> (qemu) dump-guest-memory -p protocol file:./guestcore
>>>> invalid char in expression
>>> Please try this command:
>>> dump-guest-memory -p file:./guestcore
>>>
>>> Thanks
>>> Wen Congyang
>>>
>>>>
>>>>
>>>>
>>>>
>>
>>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-19  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18 16:47 [Qemu-devel] [help]: how to use HMP command dump-guest-memory Sheldon
2012-07-19  5:42 ` Wen Congyang
2012-07-19  7:29   ` Sheldon
2012-07-19  7:41     ` Wen Congyang
2012-07-19  7:53       ` HATAYAMA Daisuke
2012-07-19  9:25       ` Sheldon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).