Skip to content

Fast forward with closed source changes#85

Merged
maheeraeron merged 2 commits into
microsoft:mainfrom
maheeraeron:user/maheeraeron/ff
Jun 11, 2026
Merged

Fast forward with closed source changes#85
maheeraeron merged 2 commits into
microsoft:mainfrom
maheeraeron:user/maheeraeron/ff

Conversation

@maheeraeron

Copy link
Copy Markdown
Collaborator

This PR brings two commits from closed source:

  • ea1b79e0b8 Merged PR 15846638: HvGuestCpuid: sync enlightenment info bitfields with upstream
  • b591e5a8eb Merged PR 15758168: Plumb bit for bounce buffering and plumb pinning support for DMA

…support for DMA

This PR does the necessary plumbing to force bounce buffering and support pinning the bounce blocks.

NOTE: This PR does not actually implement the enlightenments to be aware of pinning yet. That is a follow up PR, this one just sets up the skeleton.

A benefit of this change is that UEFI can be configured to bounce buffer even if we are not isolated. Ideally, we want to also configure pinning even if we aren't a VA backed VM (provided that we still support it of course)

Related work items: #62261634
…ith upstream

This updates our hypervisor enlightment structs with new content from the OS repo.

----
#### AI description  (iteration 1)
#### PR Classification
API change to synchronize Hyper-V enlightenment information bitfields with upstream specifications for both x64 and ARM64 architectures.

#### PR Summary
This PR updates the `HV_X64_ENLIGHTENMENT_INFORMATION` and `HV_ARM64_ENLIGHTENMENT_INFORMATION` structures in the HvGuestCpuid header to add new hypervisor capability flags, enabling the firmware to detect support for features like GPA pinning, MMIO hypercalls, and wake VPs hypercalls needed for VA-backed VMs.

- `MsvmPkg/Include/Hv/HvGuestCpuid.h`: Added 13 new capability bitfields to `HV_X64_ENLIGHTENMENT_INFORMATION` including `UseGpaPinningHypercall`, `UseHypercallForMmioAccess`, `WakeVps`, and `HeatHintBeneficialSupport`
- `MsvmPkg/Include/Hv/HvGuestCpuid.h`: Added 7 new capability bitfields to `HV_ARM64_ENLIGHTENMENT_INFORMATION` with similar features including GPA pinning and MMIO hypercall support
- `MsvmPkg/Include/Hv/HvGuestCpuid.h`: Added `ImplementedPhysicalAddressBits` field (7 bits) in Ecx register for x64 enlightenment information
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->


Related work items: #62261650
@maheeraeron maheeraeron merged commit 7c0f202 into microsoft:main Jun 11, 2026
8 checks passed
@maheeraeron maheeraeron deleted the user/maheeraeron/ff branch June 11, 2026 22:15
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.

2 participants