From 9c99d1cfbcd12f4def9a836b62c6f0c044aecb86 Mon Sep 17 00:00:00 2001
From: AlexChen <alex.chen@huawei.com>
Date: Sat, 25 Nov 2023 09:55:08 +0800
Subject: [PATCH] vdpa: support vdpa device migrate

support vdpa device migrate

Signed-off-by: jiangdongxu <jiangdongxu1@huawei.com>
Signed-off-by: AlexChen <alex.chen@huawei.com>
---
 src/qemu/qemu_migration.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index c2a694eff1..04b9333fae 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -1114,7 +1114,8 @@ qemuMigrationSrcIsAllowedHostdev(const virDomainDef *def)
         case VIR_DOMAIN_HOSTDEV_MODE_SUBSYS:
             switch ((virDomainHostdevSubsysType)hostdev->source.subsys.type) {
             case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB:
-                /* USB devices can be "migrated" */
+            case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_VDPA:
+                /* USB and VDPA devices can be "migrated" */
                 continue;
 
             case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI:
-- 
2.27.0

