Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Bind Hyper-V socket server V2 to the selected partition VM ID - #28204

Merged
Justin Chung (jshigetomi) merged 2 commits into
masterfrom
116136
Oct 19, 2026
Merged

Justin Chung (jshigetomi) merged 2 commits into
masterfrom
116136

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

PR Summary

This pull request refactors how the Hyper-V session server determines which VM partition ID to bind to, centralizing the logic into a helper method for consistency and maintainability. It also adds a unit test to ensure the correct partition ID is used based on the connection mode.

PR Context

PR Checklist

@jshigetomi Justin Chung (jshigetomi) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 14, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@jshigetomi Justin Chung (jshigetomi) changed the title Remove Wildcard GUID in HyperVSocketServer V2 Constructor Bind Hyper-V socket server V2 to the selected partition VM ID Oct 14, 2026
@jshigetomi
Justin Chung (jshigetomi) marked this pull request as ready for review October 14, 2026 21:43
Copilot AI balanced review requested due to automatic review settings October 14, 2026 21:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused change preserves V1 behavior, aligns V2 binding, and tests both partition selections without identified blocking issues.

0 open findings

What changed in this PR

Aligns Hyper-V socket server V2 with V1 by binding to the partition VM ID selected by the connection mode.

Changes:

  • Shares partition selection logic between both server constructors.
  • Adds unit coverage for parent and loopback VM IDs.
File Description
test/​xUnit/​csharp/​test_RemoteHyperV.cs Tests partition selection for both connection modes.
src/​System.Management.Automation/​engine/​remoting/​common/​RemoteSessionHyperVSocket.cs Extracts the selection helper and replaces V2’s wildcard binding.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@jshigetomi
Justin Chung (jshigetomi) merged commit 43d85c7 into master Oct 19, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants