[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: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH 06/30] migration: stop all cpus correctly |
Date: |
Fri, 14 Dec 2012 13:36:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Paolo Bonzini <address@hidden> wrote:
> 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.
it is needed for when we are migrating in suspended state. We need to
fix it some other way, but it needs to remaing for now.
- Re: [Qemu-devel] [PATCH 06/30] migration: stop all cpus correctly,
Juan Quintela <=