[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: |
Fri, 14 Dec 2012 14:53:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
Il 14/12/2012 13:36, Juan Quintela ha scritto:
>>>> >>> - 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.
That was the case when the line read
vm_stop(RUN_STATE_FINISH_MIGRATE);
but it reads vm_stop_force_state. So you're being kind and not forcing
the change if running, but that's not necessary. Just always using
vm_stop_force_state works now, and would work with the migration thread too.
Paolo