[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image |
Date: |
Thu, 21 Mar 2013 14:42:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
Il 21/03/2013 14:38, Stefan Hajnoczi ha scritto:
> There already is a guest RAM cloning mechanism: fork the QEMU process.
> Then you have a copy-on-write guest RAM.
>
> In a little more detail:
>
> 1. save non-RAM device state
> 2. quiesce QEMU to a state that is safe for forking
> 3. create an EventNotifier for live savevm completion signal
> 4. fork and pass completion EventNotifier to child
> 5. parent continues running VM
> 6. child performs vmsave of copy-on-write guest RAM
> 7. child signals completion EventNotifier and terminates
> 8. parent raises live savevm completion QMP event
Forking a threaded program is not so easy, but it could be done if the
child is very simple and only uses syscalls to communicate back with the
parent:
1. save non-RAM device state
2. quiesce QEMU to a state that is safe for forking
3. create a memory map and a pipe
4. fork and pass the write end of the pipe to the child
5. parent continues running VM
6. child reads the memory map and writes data to the pipe
7. parent copies data from the pipe to the migration stream
8. child exits, parent raises live savevm completion QMP event
Paolo
Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Pavel Hrdina, 2013/03/18
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Wenchao Xia, 2013/03/21
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Pavel Hrdina, 2013/03/21
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Stefan Hajnoczi, 2013/03/21
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image,
Paolo Bonzini <=
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Pavel Hrdina, 2013/03/21
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Stefan Hajnoczi, 2013/03/21
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Eric Blake, 2013/03/21
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Wenchao Xia, 2013/03/23
- Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Wenchao Xia, 2013/03/26
Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image, Pavel Hrdina, 2013/03/21