Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Discrete Device Assignment

Direct answer

DDA changes ownership and isolation boundaries: the host must relinquish the device, platform/device requirements must be satisfied, and the VM/guest must have compatible configuration and drivers.

When to use this

Use this topic for supported direct-assignment scenarios such as selected GPUs or accelerators where ordinary synthetic virtualization is insufficient.

First 30 seconds

1. Discrete Device Assignment passes PCIe devices (GPU, NVMe) to VMs.

2. Survey with Microsoft's script; check IOMMU/ACS.

3. Set MMIO space for GPUs.

4. No live migration or dynamic memory.

5. Server editions only.

Operational verification

PCIe device → dismount from host → assign to VM → guest driver

Evidence · next step

Verify guest driver/device telemetry and the original accelerated workload after assignment.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show correct driver behavior or workload acceleration from device visibility alone.

Next check: Verify guest driver/device telemetry and the original accelerated workload after assignment.

Platform / version applicability
hyper-v
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformhyper-v
Scope / prerequisiteUse this topic for supported direct-assignment scenarios such as selected GPUs or accelerators where ordinary synthetic…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

Physical PCIe device → platform/IOMMU isolation → host dismount/assignment → VM MMIO/device exposure → guest driver → workload

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • DDA is direct device assignment, not ordinary virtual-device emulation.
  • Device visible in guest ≠ driver/function healthy.
  • Host cannot simultaneously use a device assigned exclusively to a VM.
  • IOMMU/platform isolation and device support are critical boundaries.
Key checks
  • Get-VMHostAssignableDevice — DDA-capable devices
  • Dismount-VMHostAssignableDevice -LocationPath <path> -Force — detach from host
  • Add-VMAssignableDevice -VMName <vm> -LocationPath <path> — assign
ReferenceImportant terms & boundaries3 sections · depth on demand

What this shows and what it does not

Successful DDA assignment shows device ownership/exposure changed, not that the guest driver or workload uses the device correctly.

Steps

$loc = (Get-PnpDeviceProperty -InstanceId $id -KeyName DEVPKEY_Device_LocationPaths).Data[0]
Disable-PnpDevice -InstanceId $id
Dismount-VMHostAssignableDevice -LocationPath $loc -Force
Add-VMAssignableDevice -LocationPath $loc -VMName vm01

Documented example, not captured output. Supported on Windows Server for GPUs and NVMe; VM must use Generation 2 and automatic stop action TurnOff.

In depth

Discrete Device Assignment (DDA) passes a whole PCIe device (GPU, NVMe) to a Hyper-V VM.

$dev = Get-PnpDevice -FriendlyName '*NVIDIA*' | ? Class -eq Display
$loc = ($dev | Get-PnpDeviceProperty DEVPKEY_Device_LocationPaths).Data[0]
Disable-PnpDevice -InstanceId $dev.InstanceId -Confirm:$false
Dismount-VMHostAssignableDevice -LocationPath $loc -Force
Set-VM gpu-vm -AutomaticStopAction TurnOff -GuestControlledCacheTypes $true -LowMemoryMappedIoSpace 3GB -HighMemoryMappedIoSpace 33280MB
Add-VMAssignableDevice -LocationPath $loc -VMName gpu-vm

DDA VMs cannot live-migrate or use dynamic memory. GPU partitioning (GPU-P) in Server 2025 shares one GPU between VMs as an alternative.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor dochyper-v current

Authoritative/upstream documentation reviewed for bounded claims in Hyper-V → Discrete Device Assignment. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
discrete device assignmenthyper-v ddahyper-v pci passthrough
Embedded reference data

Quick lookup tables

Hyper-V → Discrete Device Assignment reference map

Fast Hyper-V boundaries for Hyper-V → Discrete Device Assignment.

BoundaryMeaningEvidence limit
PlatformIOMMU/device capabilitiesSupport prerequisite
HostDevice dismounted/assignableNot guest ready
VMPhysical device assignedVisible ≠ functional
GuestDriver/workload uses deviceFinal functional proof
Confirmation

Confirm action

Continue?