From 78290b1641e95304c862062ee0aca95395c5926c Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 2 Jul 2012 11:55:26 -0700 Subject: [PATCH] qemu: add rbd to whitelist of migration-safe formats QEMU (and librbd) flush the cache on the source before the destination starts, and the destination does not read any changeable data before that, so live migration with rbd caching is safe. This makes 'virsh migrate' work with rbd and caching without the --unsafe flag. Reported-by: Vladimir Bashkirtsev Signed-off-by: Josh Durgin --- .mailmap | 3 ++- AUTHORS | 2 +- src/qemu/qemu_migration.c | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index 65e2c10871..a6744acb72 100644 --- a/.mailmap +++ b/.mailmap @@ -28,7 +28,8 @@ - + + # Name consolidation: # Preferred author spelling diff --git a/AUTHORS b/AUTHORS index 375db24b49..0e179a9caa 100644 --- a/AUTHORS +++ b/AUTHORS @@ -144,7 +144,7 @@ Patches have also been contributed by: Hu Tao Laurent Léonard MORITA Kazutaka - Josh Durgin + Josh Durgin Roopa Prabhu Paweł Krześniak Kay Schubert diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 48369d65ec..f51c99ab1f 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -847,6 +847,9 @@ qemuMigrationIsSafe(virDomainDefPtr def) continue; else if (cfs < 0) return false; + } else if (disk->type == VIR_DOMAIN_DISK_TYPE_NETWORK && + disk->protocol == VIR_DOMAIN_DISK_PROTOCOL_RBD) { + continue; } qemuReportError(VIR_ERR_MIGRATE_UNSAFE, "%s", -- GitLab