// dispmprt.h
DXGKDDI_QUERYMITIGATEDRANGES DxgkddiQuerymitigatedranges;
NTSTATUS DxgkddiQuerymitigatedranges(
HANDLE Context,
DXGKARG_QUERYMITIGATEDRANGES *pArgs
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
This function is called from the virtual PCI system to the kernel mode driver to get the list of pages in the virtual function’s BARs that need to be mitigated.
ContextThe miniport context that is returned by the driver in the DXGKDDI_GPU_PARTITION_INTERFACE structure.
pArgsPointer to the DXGKARG_QUERYMITIGATEDRANGES structure.
Return STATUS_SUCCESS if the operation succeeds.
//Declaration
DXGKDDI_QUERYMITIGATEDRANGES DxgkddiQuerymitigatedranges;
// Definition
NTSTATUS DxgkddiQuerymitigatedranges
(
HANDLE Context
DXGKARG_QUERYMITIGATEDRANGES * pArgs
)
{...}
This function returns the map of valid hardware pages to exclude from the virtual device exposed in the guest partition. Each base address register will be queried separately. These pages will never be exposed in the guest partition. Any operation on these pages by the guest VM will instead cause a trap into the user mode COM device driver.