|
|
fbe740 |
From 5ae52dc252691262663129e52dbf1a775cd92bb8 Mon Sep 17 00:00:00 2001
|
|
|
fbe740 |
Message-Id: <5ae52dc252691262663129e52dbf1a775cd92bb8@dist-git>
|
|
|
fbe740 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
fbe740 |
Date: Wed, 4 Mar 2020 12:42:45 +0100
|
|
|
fbe740 |
Subject: [PATCH] qemu: forbid migration with vhost-user-fs device
|
|
|
fbe740 |
MIME-Version: 1.0
|
|
|
fbe740 |
Content-Type: text/plain; charset=UTF-8
|
|
|
fbe740 |
Content-Transfer-Encoding: 8bit
|
|
|
fbe740 |
|
|
|
fbe740 |
This is not yet supported.
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
fbe740 |
Tested-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
fbe740 |
(cherry picked from commit 5c0444a38bb37ddeb7049683ef72d02beab9e617)
|
|
|
fbe740 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
|
|
|
fbe740 |
Conflicts: * downstream is missing commit 739bb1f26f9797f69023e221bef7c004adb9c522
|
|
|
fbe740 |
qemu_migration: Rearrange some checks in qemuMigrationSrcIsAllowed()
|
|
|
fbe740 |
src/qemu/qemu_migration.c
|
|
|
fbe740 |
https://bugzilla.redhat.com/show_bug.cgi?id=1694166
|
|
|
fbe740 |
Message-Id: <426a6270b1e0265b4977ad70029342ca43f7ff48.1583322091.git.jtomko@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
fbe740 |
---
|
|
|
fbe740 |
src/qemu/qemu_migration.c | 10 ++++++++++
|
|
|
fbe740 |
1 file changed, 10 insertions(+)
|
|
|
fbe740 |
|
|
|
fbe740 |
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
|
|
|
fbe740 |
index 03f058051d..a677e270d4 100644
|
|
|
fbe740 |
--- a/src/qemu/qemu_migration.c
|
|
|
fbe740 |
+++ b/src/qemu/qemu_migration.c
|
|
|
fbe740 |
@@ -1281,6 +1281,16 @@ qemuMigrationSrcIsAllowed(virQEMUDriverPtr driver,
|
|
|
fbe740 |
_("migration with shmem device is not supported"));
|
|
|
fbe740 |
return false;
|
|
|
fbe740 |
}
|
|
|
fbe740 |
+
|
|
|
fbe740 |
+ for (i = 0; i < vm->def->nfss; i++) {
|
|
|
fbe740 |
+ virDomainFSDefPtr fs = vm->def->fss[i];
|
|
|
fbe740 |
+
|
|
|
fbe740 |
+ if (fs->fsdriver == VIR_DOMAIN_FS_DRIVER_TYPE_VIRTIOFS) {
|
|
|
fbe740 |
+ virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
|
|
fbe740 |
+ _("migration with virtiofs device is not supported"));
|
|
|
fbe740 |
+ return false;
|
|
|
fbe740 |
+ }
|
|
|
fbe740 |
+ }
|
|
|
fbe740 |
}
|
|
|
fbe740 |
|
|
|
fbe740 |
return true;
|
|
|
fbe740 |
--
|
|
|
fbe740 |
2.25.1
|
|
|
fbe740 |
|