Skip to content

arm64/hyperv: Add Device Tree Support#140

Merged
hargar19 merged 1 commit into
project/hcl-dev/6.18from
user/hargar/dt-fix-hcl-dev
Jun 3, 2026
Merged

arm64/hyperv: Add Device Tree Support#140
hargar19 merged 1 commit into
project/hcl-dev/6.18from
user/hargar/dt-fix-hcl-dev

Conversation

@hargar19
Copy link
Copy Markdown
Collaborator

@hargar19 hargar19 commented Jun 2, 2026

Add support for Device Tree (DT) configurations within the
arm64 Hyper-V environment, enabling boot with DeviceTree, too,
rather than with ACPI or SMCCC only.

Signed-off-by: Hardik Garg hargar@microsoft.com

Add support for Device Tree (DT) configurations within the
arm64 Hyper-V environment, enabling boot with DeviceTree, too,
rather than with ACPI or SMCCC only.

Signed-off-by: Roman Kisel <romank@microsoft.com>
Signed-off-by: Hardik Garg <hargar@microsoft.com>
@hargar19 hargar19 marked this pull request as ready for review June 3, 2026 05:05
Copilot AI review requested due to automatic review settings June 3, 2026 05:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a Device Tree (DT)–based detection path for the arm64 Hyper-V guest, allowing the Hyper-V initialization code to run when the platform is described via DT rather than ACPI or SMCCC detection alone.

Changes:

  • Add a new Hyper-V detection helper that checks for a /hypervisor DT node compatible with "microsoft,hyperv".
  • Extend hyperv_init() to consider DT-based detection in addition to ACPI and SMCCC.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +79 to +83
const unsigned long hyp_node = of_get_flat_dt_subnode_by_name(
of_get_flat_dt_root(), "hypervisor");

return (hyp_node != -FDT_ERR_NOTFOUND) &&
of_flat_dt_is_compatible(hyp_node, "microsoft,hyperv");
Copy link
Copy Markdown
Contributor

@namancse namancse left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

@hargar19 hargar19 requested a review from saurabh-sengar June 3, 2026 05:15
@hargar19 hargar19 merged commit 765393f into project/hcl-dev/6.18 Jun 3, 2026
8 checks passed
@hargar19 hargar19 deleted the user/hargar/dt-fix-hcl-dev branch June 3, 2026 17:37
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.

4 participants