-
Notifications
You must be signed in to change notification settings - Fork 0
Qemu capabilities #49
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
Conversation
f49ce4d to
3afbd74
Compare
| // QEMU uses migrate to file for snapshots | ||
| // The "file:" protocol is deprecated in QEMU 7.2+, use "exec:cat > path" instead | ||
| memoryFile := destPath + "/memory" | ||
| uri := "exec:cat > " + memoryFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shell command paths not escaped for spaces/metacharacters
The QEMU exec: migration protocol runs commands through /bin/sh -c, but the file paths in uri := "exec:cat > " + memoryFile and incomingURI := "exec:cat < " + memoryFile are not quoted or escaped. If the data directory path contains spaces or shell metacharacters (e.g., /home/user/My Data/hypeman), the shell will misparse the command, causing snapshot and restore operations to fail silently or produce unexpected behavior.
Additional Locations (1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow up
Note
Adds end-to-end QEMU standby/restore support and refines process/QMP handling, plus observability improvements.
Standby/Restoreusing QMP migrate-to-file; savesqemu-config.jsonon start and loads it for restore; starts QEMU with-incoming exec:cat < memoryand waits for VM readinessWaitMigration,WaitVMReady),Migrate, and tuned timeouts/polling; exposes status and raw commandsstartQEMUProcesswith socket readiness checks, log redirection, cleanup handling, and debug timings; constants for dial/wait intervalsSupportsSnapshotnow true for QEMUTestQEMUStandbyAndRestorecovering snapshot/restore path; extends QEMU E2E helpersWritten by Cursor Bugbot for commit c998b64. This will update automatically on new commits. Configure here.