From: Paul Durrant Date: Tue, 1 Mar 2016 14:16:52 +0000 (+0000) Subject: Get rid of InitSafeBootMode veto X-Git-Tag: 8.2.0-rc1~32 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=adb1a361e42f59fc6005c7b85df4561eba28f5e5;p=pvdrivers%2Fwin%2Fxenvbd.git Get rid of InitSafeBootMode veto This should no longer be necessary since XENVBD gracefully deactivates if emulated devices are present, which they will be in safe mode. Signed-off-by: Paul Durrant --- diff --git a/src/xendisk/driver.c b/src/xendisk/driver.c index fda6b8e..fb0a4b3 100644 --- a/src/xendisk/driver.c +++ b/src/xendisk/driver.c @@ -36,8 +36,6 @@ #include "assert.h" #include -extern PULONG InitSafeBootMode; - typedef struct _XENDISK_DRIVER { PDRIVER_OBJECT DriverObject; } XENDISK_DRIVER, *PXENDISK_DRIVER; @@ -177,9 +175,6 @@ DriverEntry( DriverObject->DriverUnload = DriverUnload; - if (*InitSafeBootMode > 0) - goto done; - Verbose("XENDISK %d.%d.%d (%d) (%02d.%02d.%04d)\n", MAJOR_VERSION, MINOR_VERSION, @@ -197,7 +192,6 @@ DriverEntry( DriverObject->MajorFunction[Index] = Dispatch; } -done: Trace("<====\n"); return STATUS_SUCCESS; } diff --git a/src/xenvbd/driver.c b/src/xenvbd/driver.c index 2f13ba6..2fcb2d1 100644 --- a/src/xenvbd/driver.c +++ b/src/xenvbd/driver.c @@ -539,7 +539,6 @@ HwStartIo( //============================================================================= // Driver Redirections -extern PULONG InitSafeBootMode; __drv_dispatchType(IRP_MJ_PNP) DRIVER_DISPATCH DispatchPnp; @@ -663,11 +662,6 @@ DriverEntry( MAJOR_VERSION_STR "." MINOR_VERSION_STR "." MICRO_VERSION_STR "." BUILD_NUMBER_STR, DAY_STR "/" MONTH_STR "/" YEAR_STR); - if (*InitSafeBootMode > 0) { - Status = STATUS_SUCCESS; - goto done; - } - InitializeObjectAttributes(&Attributes, RegistryPath, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,