-
Notifications
You must be signed in to change notification settings - Fork 0
<fix>[kvm]: add vmPciDeviceAddress for PciDeviceVO #3187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 5.5.6
Are you sure you want to change the base?
Conversation
add vmPciDeviceAddress for PciDeviceVO Resolves: ZSTAC-67275 Change-Id: I67626e67787062616679786b6576636c73747477
技术走查该变更向PCI设备表增加了一个新列,并在虚拟机设备信息响应类中扩展了新的附加信息字段,为版本5.5.6提供数据结构支持。 变更内容
预估代码审查工作量🎯 1 (Trivial) | ⏱️ ~3 minutes 诗歌
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: http://open.zstack.ai:20001/code-reviews/zstack-cloud.yaml (via .coderabbit.yaml) Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (3)**/*.*⚙️ CodeRabbit configuration file
Files:
**/*.java⚙️ CodeRabbit configuration file
Files:
**/*.sql⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📓 Common learnings🔍 Remote MCP AtlassianMCPPR Context and BackgroundIssue Details: ZSTAC-67275The issue is titled "【5.5.6必须解】CLONE - Gpu-透传的Gpu目前是用VMUuid 来做唯一标识,当vm加载多块Gpu时,Gpu 的工作状态、监控数据的显示其实都是一样的,后端需提供一个能标识的新字段来解决" (Translation: GPU pass-through devices currently use VMUuid as a unique identifier. When a VM loads multiple GPUs, their working status and monitoring data display are identical. The backend needs to provide a new field to identify each GPU). Status and Priority: The issue is marked as Open with P1 (highest) priority Problem Analysis: The frontend can obtain the pciDeviceAddress from the VM, but cannot determine which GPU device it corresponds to. Current approach using vmUuid+SN has issues because some GPU devices lack an SN number. The solution is for the backend to add a vmPciDeviceAddress field to PciDeviceVO so the frontend can query GPU devices by the VM's PCI address. This field will work for both physical GPUs and vGPUs since they differ only in PCI device address. Implementation Work Plan: The work involves: (1) Database changes and upgrade handling (~1d); (2) VM GPU load/unload handling with new parameter returns (~1d); (3) Creating VMs with GPU scenarios (~0.5-1d); (4) Testing (~1d); (5) Review and optimization (~1d) Recent Progress: The developer has written upgrade logic and discovered that initial self-testing failed. The approach was changed to assign vmPciDeviceAddress when syncing host information, with detailed notes available at a Confluence page for ZSTAC-67275. Related IssuesThe issue is linked to two other critical P1 issues:
🔇 Additional comments (2)
Comment |
add vmPciDeviceAddress for PciDeviceVO
Resolves: ZSTAC-67275
Change-Id: I67626e67787062616679786b6576636c73747477
sync from gitlab !9006