[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Get rid of InitSafeBootMode veto



This driver does nothing that clashes with any emulation so it's fine to
leave it emabled in safe mode.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xeniface/driver.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/xeniface/driver.c b/src/xeniface/driver.c
index e620598..2087cad 100644
--- a/src/xeniface/driver.c
+++ b/src/xeniface/driver.c
@@ -38,7 +38,6 @@
 
 #include "assert.h"
 #include "wmi.h"
-extern PULONG       InitSafeBootMode;
 
 PDRIVER_OBJECT      DriverObject;
 
@@ -55,15 +54,10 @@ DriverUnload(
 
     Trace("====>\n");
 
-    if (*InitSafeBootMode > 0)
-        goto done;
-
-
     if (DriverParameters.RegistryPath.Buffer != NULL) {
         ExFreePool(DriverParameters.RegistryPath.Buffer);
     }
 
-done:
     DriverObject = NULL;
 
     Trace("<====\n");
@@ -173,9 +167,6 @@ DriverEntry(
     DriverObject = _DriverObject;
     DriverObject->DriverUnload = DriverUnload;
 
-    if (*InitSafeBootMode > 0)
-        goto done;
-
     DriverObject->DriverExtension->AddDevice = AddDevice;
 
     for (Index = 0; Index <= IRP_MJ_MAXIMUM_FUNCTION; Index++) {
@@ -184,7 +175,6 @@ DriverEntry(
         DriverObject->MajorFunction[Index] = Dispatch;
     }
 
-done:
     Trace("<====\n");
 
     return STATUS_SUCCESS;
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.