[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command '
From: |
Jan Kiszka |
Subject: |
Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory |
Date: |
Fri, 17 Feb 2012 10:35:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2012-02-17 10:35, Wen Congyang wrote:
> At 02/17/2012 05:26 PM, Jan Kiszka Wrote:
>> On 2012-02-17 09:52, Wen Congyang wrote:
>>>>> +static DumpState *dump_init(int fd, Error **errp)
>>>>> +{
>>>>> + CPUState *env;
>>>>> + DumpState *s = dump_get_current();
>>>>> + int ret;
>>>>> +
>>>>> + vm_stop(RUN_STATE_PAUSED);
>>>>
>>>> I would save the current vm state first and restore it when finished.
>>>
>>> There is no API to get current vm state. If you want this feature, I will
>>> add API to get it.
>>
>> You are looking for runstate_is_running().
>
> Yes. vm_stop() stops the vcpu only when runstate_is_running(). So I think
> you need to resume all vcpu after dumping is finished.
Yes, but _only_ if runstate_is_running() was true before calling
vm_stop. That is my point.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
- Re: [Qemu-devel] [RFC][PATCH 08/16 v6] target-i386: add API to get dump info, (continued)
Re: [Qemu-devel] [RFC][PATCH 08/16 v6] target-i386: add API to get dump info, Peter Maydell, 2012/02/15
[Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory, Wen Congyang, 2012/02/08
Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory, Eric Blake, 2012/02/17
Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory, Jan Kiszka, 2012/02/17
Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory, Eric Blake, 2012/02/17
[Qemu-devel] [RFC][PATCH 10/16 v6] run dump at the background, Wen Congyang, 2012/02/08
- Re: [Qemu-devel] [RFC][PATCH 10/16 v6] run dump at the background, Jan Kiszka, 2012/02/14
- Re: [Qemu-devel] [RFC][PATCH 10/16 v6] run dump at the background, Jan Kiszka, 2012/02/14
- Re: [Qemu-devel] [RFC][PATCH 10/16 v6] run dump at the background, Wen Congyang, 2012/02/14
- Re: [Qemu-devel] [RFC][PATCH 10/16 v6] run dump at the background, Jan Kiszka, 2012/02/15
- Re: [Qemu-devel] [RFC][PATCH 10/16 v6] run dump at the background, Wen Congyang, 2012/02/15
- Re: [Qemu-devel] [RFC][PATCH 10/16 v6] run dump at the background, Jan Kiszka, 2012/02/15