[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 04/10] replay: save/load initial state
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v2 04/10] replay: save/load initial state |
Date: |
Fri, 16 Sep 2016 11:29:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 16/09/2016 09:56, Pavel Dovgalyuk wrote:
>>> > > +{
>>> > > + if (replay_mode == REPLAY_MODE_RECORD) {
>>> > > + QDict *opts = qdict_new();
>>> > > + qdict_put(opts, "name", qstring_from_str("replay_init"));
>>> > > + hmp_savevm(cur_mon, opts);
>>> > > + QDECREF(opts);
>>> > > + } else if (replay_mode == REPLAY_MODE_PLAY) {
>>> > > + load_vmstate("replay_init");
>> >
>> > See my other message about a suggestion to remove the hardcoded snapshot
>> > name.
>> >
>> > Also, I think the return value of load_vmstate and hmp_savevm should be
>> > checked.
>
> Load may be unsuccessful when the system is started with temporary overlay
> file.
> This is ok.
This seems to be in favor of using a rrsnapshot option instead. Using
rrsnapshot for temporary overlay would make little sense.
Paolo
- [Qemu-devel] [PATCH v2 01/10] record/replay: add network support, (continued)
[Qemu-devel] [PATCH v2 04/10] replay: save/load initial state, Pavel Dovgalyuk, 2016/09/15
[Qemu-devel] [PATCH v2 05/10] replay: move internal data to the structure, Pavel Dovgalyuk, 2016/09/15
[Qemu-devel] [PATCH v2 06/10] replay: vmstate for replay module, Pavel Dovgalyuk, 2016/09/15
[Qemu-devel] [PATCH v2 07/10] replay: allow replay stopping and restarting, Pavel Dovgalyuk, 2016/09/15
[Qemu-devel] [PATCH v2 09/10] pcspk: adding vmstate for save/restore, Pavel Dovgalyuk, 2016/09/15