Επεξεργασία

Κοινή χρήση μέσω


Driver Verifier Properties for Driver Package Projects

Driver Verifier is a run-time verification tool that increases the effectiveness of your driver testing. You can enable and configure Driver Verifier to run on all test computers when you deploy your driver for testing.

You should always set up a kernel mode debugging connection with the test computer when you enable Driver Verifier on the remote test computer. For information about configuring a target computer and setting up a debug cable, see Getting Started with Windows Debugging.

Setting Driver Verifier properties for driver package projects

  1. Open the property pages for your driver package. Select and hold (or right-click) the driver package project in Solution Explorer and select Properties.
  2. In the property pages for the driver package, select Configuration Properties, select Driver Install, and then select Driver Verification.
  3. Select the Enable Driver Verification option. When this option is selected, you can select the driver or drivers to verify on the test computer and you can select the Driver Verifier options to use.

Project Configuration and Platform

The configuration list and platform list let you apply different deployment settings for different project configuration and platform combinations. For example, you can deploy a driver to one test computer using a set of deployment options for debug builds and to a different test computer using deployment options for release builds.

Enable Driver Verifier

You can enable Driver Verifier on the test computer for all drivers on the computer, for the driver project only, or for a list of specified drivers. For example, you might want to enable Driver Verifier for the set of drivers on the stack for a particular device.

Verify Drivers

Specifies which driver or drivers to verify on the test computer.

All Drivers
Specifies that Driver Verifier verifies all installed drivers on the remote test computer.

Project Output
Specifies that Driver Verifier verifies the driver project installed on the remote test computer. This is the default option.

Driver List
Specifies the driver or list of drivers that Driver Verifier verifies on the remote test computer. For example, you could list all of the drivers associated with a particular device. Specify the drivers by binary name, for example, Driver.sys. Use a semicolon to separate a list of drivers. Wildcard values, such as n*.sys, are not supported.

Driver Verifier Standard Flags

You can configure the following Driver Verifier options on the test computer.

  • DDI compliance checking (Windows 8)

    When this option is active, Driver Verifier applies a set of device driver interface (DDI) rules that check for the proper interaction between a driver and the kernel interface of the operating system.

  • Deadlock detection

    When this option is active, Driver Verifier monitors the driver's use of spin locks, mutexes, and fast mutexes. This detects whether the driver's code has the potential for causing a deadlock at some point.

  • DMA verification

    When this option is active, Driver Verifier monitors the driver's use of direct memory access (DMA) routines. This detects improper use of DMA buffers, adapters, and map registers.

  • Force IRQL checking

    When this option is active, Driver Verifier places extreme memory pressure on the driver by invalidating pageable code. If the driver attempts to access paged memory at the wrong IRQL or while holding a spin lock, Driver Verifier detects this behavior.

  • I/O verification

    When this option is active, Driver Verifier allocates the driver's Interrupt Request Packets (IRPs) from a special pool, and monitors the driver's I/O handling. This detects illegal or inconsistent use of I/O routines. Driver Verifier also monitors the calls of several I/O Manager routines and performs stress testing of Plug-and-Play (PnP) IRPs, power IRPs and WMI IRPs.

  • Miscellaneous checks

    When this option is active, Driver Verifier looks for common causes of driver crashes, such as the mishandling of freed memory.

  • Pool tracking

    When this option is active, Driver Verifier checks to see whether the driver has freed all of its memory allocations when it is unloaded. This reveals memory leaks.

  • Security checks

    When this option is active, Driver Verifier looks for common errors that can result in security vulnerabilities, such as a reference to user-mode addresses by kernel-mode routines.

  • Special pool checking

    When this option is active, Driver Verifier allocates most of the driver's memory requests from a special pool. This special pool is monitored for memory overruns, memory underruns, and memory that is accessed after it is freed.

Driver Verifier Scenario Specific Settings

Driver Verifier options that require I/O Verification

There are four options that require you to first enable I/O Verification. If I/O Verification is not enabled, these options are not enabled.