Skip to content

Add v2 callback handle for live migration event notifications#13

Draft
Kavya-Bharadwaj wants to merge 1 commit intorawahars:live_migration_poc_4from
Kavya-Bharadwaj:live_migration_poc_4_v2_callback_lm
Draft

Add v2 callback handle for live migration event notifications#13
Kavya-Bharadwaj wants to merge 1 commit intorawahars:live_migration_poc_4from
Kavya-Bharadwaj:live_migration_poc_4_v2_callback_lm

Conversation

@Kavya-Bharadwaj
Copy link
Copy Markdown
Collaborator

Open a second HCS compute system handle (via HcsOpenComputeSystem) and register a v2 callback (via HcsSetComputeSystemCallback) dedicated to receiving GroupLiveMigration event notifications. This avoids conflicting with the legacy v1 callback registered on the primary handle.

Changes:

  • Add HcsEventTypeGroupLiveMigration and related event type constants with explicit hex values, and HcsEventOptionEnableLiveMigrationEvents
  • Add callbackV2.go: v2 callback watcher that dispatches live migration events to a buffered channel
  • Add OpenV2Handle/closeV2/registerCallbackV2/unregisterCallbackV2 on System for lifecycle management of the v2 handle
  • Expose LMNotificationChannel() for consumers to receive LM events
  • Switch live migration API calls to use the v2 handle
  • Wire up OpenV2Handle in vm2.NewVM at VM creation time

Open a second HCS compute system handle (via HcsOpenComputeSystem) and
register a v2 callback (via HcsSetComputeSystemCallback) dedicated to
receiving GroupLiveMigration event notifications. This avoids conflicting
with the legacy v1 callback registered on the primary handle.

Changes:
- Add HcsEventTypeGroupLiveMigration and related event type constants
  with explicit hex values, and HcsEventOptionEnableLiveMigrationEvents
- Add callbackV2.go: v2 callback watcher that dispatches live migration
  events to a buffered channel
- Add OpenV2Handle/closeV2/registerCallbackV2/unregisterCallbackV2 on
  System for lifecycle management of the v2 handle
- Expose LMNotificationChannel() for consumers to receive LM events
- Switch live migration API calls to use the v2 handle
- Wire up OpenV2Handle in vm2.NewVM at VM creation time
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.

1 participant