1. 06 2月, 2015 2 次提交
  2. 16 12月, 2014 1 次提交
    • D
      Start migrating migration code into a migration directory · 60fe637b
      Dr. David Alan Gilbert 提交于
      The migration code now occupies a fair chunk of the top level .c
      files, it seems time to give it it's own directory.
      
      I've not touched:
         arch_init.c - that's mostly RAM migration but has a few random other
                       bits
         savevm.c    - because it's built target specific
      
      This is purely a code move; no code has changed.
         - it fails checkpatch because of old violations, it feels safer
           to keep this as purely a move and fix those at some mythical future
           date.
      
      The xbzrle and vmstate tests are now only run for softmmu builds
      since they require files in the migrate/ directory which is only built
      for softmmu.
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      60fe637b
  3. 14 10月, 2014 1 次提交
  4. 27 6月, 2014 1 次提交
    • A
      vmstate: Add preallocation for migrating arrays (VMS_ALLOC flag) · f32935ea
      Alexey Kardashevskiy 提交于
      There are few helpers already to support array migration. However they all
      require the destination side to preallocate arrays before migration which
      is not always possible due to unknown array size as it might be some
      sort of dynamic state. One of the examples is an array of MSIX-enabled
      devices in SPAPR PHB - this array may vary from 0 to 65536 entries and
      its size depends on guest's ability to enable MSIX or do PCI hotplug.
      
      This adds new VMSTATE_VARRAY_STRUCT_ALLOC macro which is pretty similar to
      VMSTATE_STRUCT_VARRAY_POINTER_INT32 but it can alloc memory for migratign
      array on the destination side.
      
      This defines VMS_ALLOC flag for a field.
      
      This changes vmstate_base_addr() to do the allocation when receiving
      migration.
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Reviewed-by: NJuan Quintela <quintela@redhat.com>
      [agraf: drop g_malloc_n usage]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      f32935ea
  5. 24 6月, 2014 1 次提交
  6. 06 5月, 2014 2 次提交
  7. 05 5月, 2014 2 次提交
  8. 27 3月, 2014 1 次提交
  9. 25 2月, 2014 1 次提交
  10. 13 1月, 2014 1 次提交