1. 24 5月, 2016 1 次提交
    • G
      savevm: fail if migration blockers are present · 24f3902b
      Greg Kurz 提交于
      QEMU has currently two ways to prevent migration to occur:
      - migration blocker when it depends on runtime state
      - VMStateDescription.unmigratable when migration is not supported at all
      
      This patch gathers all the logic into a single function to be called from
      both the savevm and the migrate paths.
      
      This fixes a bug with 9p, at least, where savevm would succeed and the
      following would happen in the guest after loadvm:
      
      $ ls /host
      ls: cannot access /host: Protocol error
      
      With this patch:
      
      (qemu) savevm foo
      Migration is disabled when VirtFS export path '/' is mounted in the guest
      using mount_tag 'host'
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <146239057139.11271.9011797645454781543.stgit@bahia.huguette.org>
      
      [Update subject according to Paolo's suggestion - Amit]
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      24f3902b
  2. 23 5月, 2016 2 次提交
  3. 19 5月, 2016 1 次提交
  4. 23 3月, 2016 1 次提交
  5. 11 3月, 2016 2 次提交
  6. 28 2月, 2016 1 次提交
  7. 26 2月, 2016 2 次提交
    • D
      migration (postcopy): move bdrv_invalidate_cache_all of of coroutine context · ea6a55bc
      Denis V. Lunev 提交于
      There is a possibility to hit an assert in qcow2_get_specific_info that
      s->qcow_version is undefined. This happens when VM in starting from
      suspended state, i.e. it processes incoming migration, and in the same
      time 'info block' is called.
      
      The problem is that qcow2_invalidate_cache() closes the image and
      memset()s BDRVQcowState in the middle.
      
      The patch moves processing of bdrv_invalidate_cache_all out of
      coroutine context for postcopy migration to avoid that. This function
      is called with the following stack:
        process_incoming_migration_co
        qemu_loadvm_state
        qemu_loadvm_state_main
        loadvm_process_command
        loadvm_postcopy_handle_run
      Signed-off-by: NDenis V. Lunev <den@openvz.org>
      Tested-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      CC: Paolo Bonzini <pbonzini@redhat.com>
      CC: Juan Quintela <quintela@redhat.com>
      CC: Amit Shah <amit.shah@redhat.com>
      Message-Id: <1456304019-10507-3-git-send-email-den@openvz.org>
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      ea6a55bc
    • W
      migration: reorder code to make it symmetric · bdf46d64
      Wei Yang 提交于
      In qemu_savevm_state_complete_precopy(), it iterates on each device to add
      a json object and transfer related status to destination, while the order
      of the last two steps could be refined.
      
      Current order:
      
          json_start_object()
          	save_section_header()
          	vmstate_save()
          json_end_object()
          	save_section_footer()
      
      After the change:
      
          json_start_object()
          	save_section_header()
          	vmstate_save()
          	save_section_footer()
          json_end_object()
      
      This patch reorder the code to to make it symmetric. No functional change.
      Signed-off-by: NWei Yang <richard.weiyang@gmail.com>
      Reviewed-by: NAmit Shah <amit.shah@redhat.com>
      Message-Id: <1454626230-16334-1-git-send-email-richard.weiyang@gmail.com>
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      bdf46d64
  8. 05 2月, 2016 3 次提交
  9. 29 1月, 2016 1 次提交
  10. 13 1月, 2016 4 次提交
  11. 19 11月, 2015 10 次提交
  12. 13 11月, 2015 1 次提交
  13. 10 11月, 2015 11 次提交