Skip to content

Decouple virt-stack-agnostic and Libvirt-specific logic in virt-launcher #32

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

Open
wants to merge 4 commits into
base: virtstack-plugin-refactor
Choose a base branch
from

Conversation

harshitgupta1337
Copy link

@harshitgupta1337 harshitgupta1337 commented Jun 17, 2025

The proposed changes in this PR decouple the virtualization-stack-agnostic parts of virt-launcher's logic from the Libvirt-specific parts.

What this PR does

Before this PR: Both the virtstack-agnostic and Libvirt-specific logic lived within the virt-launcher directory.

After this PR: virt-launcher directory contains the virtstack-agnostic logic, while a new directory virt-launcher-libvirt-qemu contains the Libvirt/QEMU-specific logic of virt-launcher.

The PR contains 3 types of changes:

  1. Changes to import statements in Go files. Previously, these files imported a package in the .../pkg/virt-launcher/... path, which now needs to be changed to .../pkg/virt-launcher-libvirt-qemu/.... At times, when a Go file needs to import both the virtstack-agnostic functionality and the Libvirt-specific functionality, a custom package name is given to one of them (e.g., notifyCommon to avoid conflicts.
  2. Files that are moved from virt-launcher to virt-launcher-libvirt-qemu. Such files might contain a small number of changes to update the import statements to point to packages in virt-launcher-libvirt-qemu instead of virt-launcher.
  3. The BUILD.bazel files have been updated to reflect the changes in the directory structure and file locations.

Harshit Gupta added 3 commits June 17, 2025 12:05
[UNSTABLE] First round of import changes

[UNSTABLE] Only notify-client remains to be import-fixed

[UNSTABLE] Partition notify-client

Update BUILD.bazel files for virt-launcher-libvirt-qemu

Move common fns from converter out to virt-launcher/util.go

Fix cmd

bazel-build working

Fix errors

Fix compile bugs
@harshitgupta1337 harshitgupta1337 marked this pull request as ready for review June 17, 2025 20:38
Copy link
Member

@JocelynBerrendonner JocelynBerrendonner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants