1. 20 5月, 2019 1 次提交
    • M
      qemu: Do not override config XML in case of snapshot revert · dfd70ca1
      Maxiwell S. Garcia 提交于
      Snapshot create operation saves the live XML and uses it to replace the
      domain definition in case of revert. But the VM config XML is not saved
      and the revert operation does not address this issue. This commit
      prevents the config XML from being overridden by snapshot definition.
      
      An active domain stores both current and new definitions. The current
      definition (vm->def) stores the live XML and the new definition
      (vm->newDef) stores the config XML. In an inactive domain, only the
      config XML is persistent, and it's saved in vm->def.
      
      The revert operation uses the virDomainObjAssignDef() to set the
      snapshot definition in vm->newDef, if domain is active, or in vm->def
      otherwise. But before that, it saves the old value to return to
      caller. This return is used here to restore the config XML after
      all snapshot startup process finish.
      Signed-off-by: NMaxiwell S. Garcia <maxiwell@linux.ibm.com>
      dfd70ca1
  2. 17 5月, 2019 14 次提交
  3. 16 5月, 2019 3 次提交
  4. 15 5月, 2019 5 次提交
  5. 14 5月, 2019 5 次提交
  6. 13 5月, 2019 7 次提交
  7. 10 5月, 2019 5 次提交