]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Use STATUS_PNP_REBOOT_REQUIRED in IRP_MN_START_DEVICE when a reboot is required
authorOwen Smith <owen.smith@citrix.com>
Mon, 21 Mar 2022 14:23:07 +0000 (14:23 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Tue, 12 Apr 2022 15:56:43 +0000 (16:56 +0100)
Failing IRP_MN_START_DEVICE can lead to WHQL distribution of drivers to be
rejected by MS, as too many VMs in the gradual rollout phase will report this
error on update. Using STATUS_PNP_REBOOT_REQUIRED will indicate that the VM
requires a reboot, and should not be treated as a gating factor (it should also
trigger the Windows Update process to report the reboot to users and/or trigger
an automatic reboot)

Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xenvif/pdo.c

index bc9b9ed7427a52f723fe320122d6aa2accddc719..b3a4aaefb2a88c3e3c7f2ad96f17851ac3b70c41 100644 (file)
@@ -1303,7 +1303,7 @@ PdoStartDevice(
     if (Pdo->HasAlias) {
         PdoUnplugRequest(Pdo, TRUE);
 
-        status = STATUS_UNSUCCESSFUL;
+        status = STATUS_PNP_REBOOT_REQUIRED;
         goto fail9;
     }