Skip to content

Add v2 computecore handle for live migration event callbacks#11

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 computecore handle for live migration event callbacks#11
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
Collaborator

Add v2 computecore handle for live migration event callbacks

Open a separate v2 handle (computecore.dll) alongside the existing v1 handle
(vmcompute.dll) and register HcsSetComputeSystemCallback with
HcsEventOptionEnableLiveMigrationEvents to receive LM notifications without
replacing the legacy v1 callback used for standard system operations.

Changes:

  • computecore.go: Add explicit HCS_EVENT_TYPE values, String(), and
    HcsEventOptionEnableLiveMigrationEvents flag
  • callbackV2.go: New file - v2 callback handler with diagnostic logging
    to C:\Temp\hcs_lm_events.json
  • system.go: Add v2Handle, OpenV2Handle, registerCallbackV2,
    unregisterCallbackV2, closeV2; route LM APIs through v2Handle
  • vm.go: Call OpenV2Handle after system create/open

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