[pve-devel] [PATCH pve-common/qemu-server 0/9] refactoring and storagemap

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Mar 30 13:41:27 CEST 2020


another round of preparatory patches for remote migration.

qemu-server's #1 is an unrelated follow-up fix,
#2-4 are refactoring,
#5+6 are new features/checks,
#7+8 are refactorings as preparation for remote migration which will
call the nbd allocation and vm_start_nolock in separate steps, and use
the returned hash instead of parsing STDOUT (these can be skipped for
now, it's just a hint at where I am going ;))

pve-common is just the mapping schema stuff, already put there so that
we can re-use it in pve-container for migration as well.

pve-common:

Fabian Grünbichler (1):
  JSONSchema: add idmap parser and storagepair format

 src/PVE/JSONSchema.pm | 60 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

qemu-server:

Fabian Grünbichler (8):
  migrate: improve cleanup_remotedisks
  vm_start: condense signature
  vm_start: split out lock + initial checks
  vm_start: split out NBD disk allocation
  migrate: allow arbitrary source->target storage maps
  migrate: check storage permissions and content type
  vm_start: split NBD disk allocation further
  vm_start: collect and return migration info

 PVE/API2/Qemu.pm         |  74 ++++-
 PVE/QemuConfig.pm        |   6 +-
 PVE/QemuMigrate.pm       |  29 +-
 PVE/QemuServer.pm        | 633 ++++++++++++++++++++++-----------------
 PVE/VZDump/QemuServer.pm |   6 +-
 test/snapshot-test.pm    |   4 +-
 6 files changed, 447 insertions(+), 305 deletions(-)

-- 
2.20.1





More information about the pve-devel mailing list