win-pvdrivers

changeset 462:7b2131b4f776

When running in safe mode (via F8 at boot), the PV drivers are disabled.
author Steve Meisner <steve.meisner@virtualcomputer.com>
date Wed Nov 26 10:24:40 2008 -0500 (2008-11-26)
parents c21dadd386da
children 7786cebdb4df
files xenhide/xenhide.c xenhide/xenhide.inx
line diff
     1.1 --- a/xenhide/xenhide.c	Wed Nov 26 10:12:06 2008 -0500
     1.2 +++ b/xenhide/xenhide.c	Wed Nov 26 10:24:40 2008 -0500
     1.3 @@ -20,6 +20,8 @@ Foundation, Inc., 51 Franklin Street, Fi
     1.4  #include "xenhide.h"
     1.5  #include <stdlib.h>
     1.6  
     1.7 +extern PULONG InitSafeBootMode;
     1.8 +
     1.9  DRIVER_INITIALIZE DriverEntry;
    1.10  static NTSTATUS
    1.11  XenHide_AddDevice(PDRIVER_OBJECT DriverObject, PDEVICE_OBJECT PhysicalDeviceObject);
    1.12 @@ -156,6 +158,15 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
    1.13      }
    1.14    }
    1.15  
    1.16 +  //
    1.17 +  // Check for Safe mode boot...
    1.18 +  //
    1.19 +  if (*InitSafeBootMode > 0)
    1.20 +  {
    1.21 +    KdPrint((__DRIVER_NAME "     Running in SAFE MODE...disabling PV drivers\n"));
    1.22 +    gplpv = FALSE;
    1.23 +  }
    1.24 +
    1.25    KdPrint((__DRIVER_NAME "     gplpv = %d\n", gplpv));
    1.26  
    1.27    for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
     2.1 --- a/xenhide/xenhide.inx	Wed Nov 26 10:12:06 2008 -0500
     2.2 +++ b/xenhide/xenhide.inx	Wed Nov 26 10:24:40 2008 -0500
     2.3 @@ -43,10 +43,10 @@ xenhide.sys
     2.4  xenhide.sys=1
     2.5  
     2.6  [SourceDisksNames.x86]
     2.7 -1 = %DISK_NAME%,,,\i386
     2.8 +1 = %DISK_NAME%,,,.\i386
     2.9  
    2.10  [SourceDisksNames.amd64]
    2.11 -1 = %DISK_NAME%,,,\amd64
    2.12 +1 = %DISK_NAME%,,,.\amd64
    2.13  
    2.14  [XenHide_Inst.NT.Services]
    2.15  AddService=XenHide,,XenHide_Service_Inst