1 Star 0 Fork 126

ganqx/src-qemu

forked from src-openEuler/qemu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Revert-vdpa-block-migration-if-SVQ-does-not-admit-a-.patch 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
fangyi 提交于 2024-11-28 00:07 . support kernel vDpa
From 4a79b3c07dca4f1e21e4dbb1e59bf437b2a814fa Mon Sep 17 00:00:00 2001
From: fangyi <eric.fangyi@huawei.com>
Date: Tue, 29 Oct 2024 19:58:14 +0800
Subject: [PATCH 5/6] Revert "vdpa: block migration if SVQ does not admit a
feature"
Use a new scheme instead for kernel vdpa, So revert it.
This reverts commit 57ac831865e370012496fb581a38d261cb72c5d0.
---
hw/virtio/vhost-vdpa.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
index bb3320946d..69cf3b76e9 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -596,21 +596,6 @@ static int vhost_vdpa_init(struct vhost_dev *dev, void *opaque, Error **errp)
return 0;
}
- /*
- * If dev->shadow_vqs_enabled at initialization that means the device has
- * been started with x-svq=on, so don't block migration
- */
- if (dev->migration_blocker == NULL && !v->shadow_vqs_enabled) {
- /* We don't have dev->features yet */
- uint64_t features;
- ret = vhost_vdpa_get_dev_features(dev, &features);
- if (unlikely(ret)) {
- error_setg_errno(errp, -ret, "Could not get device features");
- return ret;
- }
- vhost_svq_valid_features(features, &dev->migration_blocker);
- }
-
/*
* Similar to VFIO, we end up pinning all guest memory and have to
* disable discarding of RAM.
--
2.43.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ganqx/src-qemu.git
git@gitee.com:ganqx/src-qemu.git
ganqx
src-qemu
src-qemu
master

搜索帮助