From: Andrew Cooper Subject: [PATCH v4 0/9] Migration Stream v2 Date: Wed, 30 Apr 2014 19:36:43 +0100 Message-ID: <1398883012-28413-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Ian Jackson , Tim Deegan , Frediano Ziglio , David Vrabel , Jan Beulich List-Id: xen-devel@lists.xenproject.org Hello, Presented here for review is v4 of the Migration Stream v2 work. David, Frediano and myself have worked together on the implementation, and we have now managed to get PV and HVM migration working using the new format (even when transparently inserted underneath Xapi). This series is based on staging, as 9f2f1298d0211962 is a prerequisite hypercall for a bugfix. Draft F of the design document is available from xenbits.xen.org/people/andrewcoop/domain-save-format-F.pdf The series is available from the branch 'saverestore2-v4' of git://xenbits.xen.org/people/andrewcoop/xen.git http://xenbits.xen.org/git-http/people/andrewcoop/xen.git The code has been a clean rewrite, using the v1 code as a reference but avoiding obsolete areas (e.g. how to modify the pagetables of a 32 non-pae guest on 32bit pae Xen). There are certainly some areas still in need improvement. There are plans to combine the save logic for PV and HVM guests by adding a few more hooks to save_restore_ops. While reviewing the series for posting, I have noticed some accidental duplication from attempting to merge PV and HVM together (ctx->save.p2m_size and ctx->x86_pv.max_pfn) which can be consolidated. Moving forward will be work to do with converting a legacy image to a v2 image. Questions/issues needing discussing are: 1) What level should the conversion happen. The v2 format is capable of detecting a legacy stream, but libxc is arguably too low level for the conversion decision to happen. 2) What to do about the layer violations which is the toolstack record and device model record. Libxl for HVM guests is the only known user of the 'toolstack' chunk, which contains some xenstore key/value pairs. This data should not be a blob in the middle of the libxc layer, and should be promoted to a first class member of a libxl migration stream. Anyway - the code is presented here for initial comment/query/critism. ~Andrew