[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 00/27] Migration thread (WIP)
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [RFC 00/27] Migration thread (WIP) |
Date: |
Thu, 26 Jul 2012 13:16:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Jan Kiszka <address@hidden> wrote:
> On 2012-07-24 20:36, Juan Quintela wrote:
>> Hi
>> Appart of the review:
>> - Are there any locking issues that I have missed (I guess so)
>> - stop all cpus correctly. vm_stop should be called from the iothread,
>> I use the trick of using a bottom half to get that working correctly.
>> but this _implementation_ is ugly as hell. Is there an easy way
>> of doing it?
>
> vm_stop is prepared to be called from vcpu context as well. I'm not sure
> right now if we actually do, but the code is there.
But this is a migation_thread (i.e. neither iothread of vcpu), and we
need to wait for vm_stop to finish. My reading is that in vcpu context,
we just ask the iothread to stop all cpus.
void vm_stop(RunState state)
{
if (!qemu_thread_is_self(&io_thread)) {
qemu_system_vmstop_request(state);
/*
* FIXME: should not return to device code in case
* vm_stop() has been requested.
*/
cpu_stop_current();
return;
}
do_vm_stop(state);
}
Or I am reading it wrong?
Later, Juan.
- [Qemu-devel] [PATCH 24/27] migration: take finer locking, (continued)
- [Qemu-devel] [PATCH 24/27] migration: take finer locking, Juan Quintela, 2012/07/24
- [Qemu-devel] [PATCH 23/27] migration: remove unfreeze logic, Juan Quintela, 2012/07/24
- [Qemu-devel] [PATCH 14/27] buffered_file: unfold migrate_fd_put_buffer, Juan Quintela, 2012/07/24
- [Qemu-devel] [PATCH 18/27] buffered_file: We can access directly to bandwidth_limit, Juan Quintela, 2012/07/24
- [Qemu-devel] [PATCH 25/27] buffered_file: Unfold the trick to restart generating migration data, Juan Quintela, 2012/07/24
- [Qemu-devel] [PATCH 15/27] buffered_file: unfold migrate_fd_put_ready, Juan Quintela, 2012/07/24
- [Qemu-devel] [PATCH 27/27] buffered_file: unfold buffered_append in buffered_put_buffer, Juan Quintela, 2012/07/24
- [Qemu-devel] [PATCH 26/27] buffered_file: don't flush on put buffer, Juan Quintela, 2012/07/24
- Re: [Qemu-devel] [RFC 00/27] Migration thread (WIP), Orit Wasserman, 2012/07/25
- Re: [Qemu-devel] [RFC 00/27] Migration thread (WIP), Jan Kiszka, 2012/07/26
- Re: [Qemu-devel] [RFC 00/27] Migration thread (WIP),
Juan Quintela <=
- Message not available
Re: [Qemu-devel] [RFC 00/27] Migration thread (WIP), Michael Roth, 2012/07/26