Skip to content

[shimV2] bind GCS/host hvsock listeners before starting the UVM#2723

Open
rawahars wants to merge 2 commits intomicrosoft:mainfrom
rawahars:fix_lcow_v2_shim
Open

[shimV2] bind GCS/host hvsock listeners before starting the UVM#2723
rawahars wants to merge 2 commits intomicrosoft:mainfrom
rawahars:fix_lcow_v2_shim

Conversation

@rawahars
Copy link
Copy Markdown
Contributor

@rawahars rawahars commented May 6, 2026

  • Split guestmanager.Guest.CreateConnection into PrepareConnection (binds the GCS hvsock listener) + CreateConnection (accepts and runs the handshake) so the host is listening before the guest dials.
  • Controller.StartVM now calls PrepareConnection and the entropy/logging listener setup before uvm.Start, and propagates their errors.
  • LCOW/WCOW setupEntropyListener/setupLoggingListener now bind the hvsock listener synchronously and only Accept inside the goroutine; return error instead of swallowing/logging it.
  • CloseConnection also closes a prepared-but-unaccepted listener.
  • vmmanager.AcceptConnection: buffer the result channel to avoid a goroutine leak and close the listener on context cancellation.

@rawahars rawahars requested a review from a team as a code owner May 6, 2026 20:11
- Split guestmanager.Guest.CreateConnection into PrepareConnection
  (binds the GCS hvsock listener) + CreateConnection (accepts and runs
  the handshake) so the host is listening before the guest dials.
- Controller.StartVM now calls PrepareConnection and the entropy/logging
  listener setup before uvm.Start, and propagates their errors.
- LCOW/WCOW setupEntropyListener/setupLoggingListener now bind the
  hvsock listener synchronously and only Accept inside the goroutine;
  return error instead of swallowing/logging it.
- CloseConnection also closes a prepared-but-unaccepted listener.
- vmmanager.AcceptConnection: buffer the result channel to avoid a
  goroutine leak and close the listener on context cancellation.

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars rawahars force-pushed the fix_lcow_v2_shim branch from 9087a0b to 0152253 Compare May 6, 2026 20:19
Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
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