Re: KVM call minutes for June 15

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paolo Bonzini
Date: Wednesday, June 16, 2010 - 1:58 am

On 06/15/2010 05:18 PM, Chris Wright wrote:

It is not necessary to break the protocol.  If you're okay with only 
having the size information when the migration data has been saved to a 
file, you can put the directory at the end of the migration data, after 
the EOF section.  Something like

    QEMU_VM_SECTION_EOF
    QEMU_VM_SECTION_DIRECTORY
       copy of the migration data, with the actual data replaced
       by a single 8-byte pointer to the beginning of the section:

       QEMU_VM_SECTION_START
       <section id>
       5 "block"
       <instance id>
       <version id>
       <8-byte pointer>

       QEMU_VM_SECTION_START
       <section id>
       3 "ram"
       <instance id>
       <version id>
       <8-byte pointer>

       ...
       QEMU_VM_SECTION_FULL
       <section id>
       10 "cpu_common"
       <instance id>
       <version id>
       <8-byte pointer>

       ...
       QEMU_VM_SECTION_EOF
       <8-byte pointer>

       QEMU_VM_SECTION_DIRECTORY
       <8-byte pointer>

Note that by definition the last 8 bytes will point to the beginning of 
the directory.  You can read the last 18 bytes to reduce (to almost 
zero) the possibility of a false positive.

The directory table can be built at save time and streamed after the EOF 
without causing an error if the receiver closes its connection during 
the streaming of the directory.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
KVM call minutes for June 15, Chris Wright, (Tue Jun 15, 8:18 am)
Re: KVM call minutes for June 15, Christoph Hellwig, (Tue Jun 15, 8:41 am)
Re: KVM call minutes for June 15, Anthony Liguori, (Tue Jun 15, 9:13 am)
Re: [Qemu-devel] Re: KVM call minutes for June 15, Markus Armbruster, (Tue Jun 15, 11:55 pm)
Re: [Qemu-devel] Re: KVM call minutes for June 15, Yoshiaki Tamura, (Wed Jun 16, 1:58 am)
Re: KVM call minutes for June 15, Paolo Bonzini, (Wed Jun 16, 1:58 am)
Re: [Qemu-devel] Re: KVM call minutes for June 15, Arnd Bergmann, (Wed Jun 16, 4:55 am)
Re: [Qemu-devel] Re: KVM call minutes for June 15, Blue Swirl, (Wed Jun 16, 11:07 am)
Re: [Qemu-devel] Re: KVM call minutes for June 15, Aurelien Jarno, (Wed Jun 16, 10:15 pm)