[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 06/30] migration: stop all cpus correctly
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 06/30] migration: stop all cpus correctly |
Date: |
Wed, 14 Nov 2012 16:21:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
Il 12/11/2012 12:44, Paolo Bonzini ha scritto:
>> @@ -339,7 +351,11 @@ void migrate_fd_put_ready(MigrationState *s)
>> DPRINTF("done iterating\n");
>> start_time = qemu_get_clock_ms(rt_clock);
>> qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER);
>> - vm_stop_force_state(RUN_STATE_FINISH_MIGRATE);
>> + if (old_vm_running) {
>> + vm_stop(RUN_STATE_FINISH_MIGRATE);
>> + } else {
>> + vm_stop_force_state(RUN_STATE_FINISH_MIGRATE);
>> + }
>>
>> if (qemu_savevm_state_complete(s->file) < 0) {
>> migrate_fd_error(s);
This hunk also seems to be useless nowadays.
Paolo