Blame SOURCES/0032-v2v-windows-convert-fix-virtio-block-driver-installa.patch

90a56e
From e7359e9feac4fa2163a7259d093e381273365c8e Mon Sep 17 00:00:00 2001
90a56e
From: Pavel Butsykin <pbutsykin@virtuozzo.com>
90a56e
Date: Mon, 3 Apr 2017 19:44:45 +0300
90a56e
Subject: [PATCH] v2v: windows convert: fix virtio block driver installation
90a56e
 for w10/w2k16
90a56e
90a56e
This patch fixes the problem of the first boot after installation virtio block
90a56e
drivers on Windows 10 / Server 2016. The problem is related to the change in
90a56e
the behavior of Windows-Kernel-Pnp. To fix we need to add a field "Version" to
90a56e
HKLM/SYSTEM/DriverDatabase/DriverPackages/drv_inf_label then Windows-Kernel-Pnp
90a56e
will be able to correctly install the virtio block driver.
90a56e
90a56e
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
90a56e
(cherry picked from commit cc162b49e6c87bf3535168853dadf10f7610865f)
90a56e
---
90a56e
 v2v/windows_virtio.ml | 7 +++++++
90a56e
 1 file changed, 7 insertions(+)
90a56e
90a56e
diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
46ce2f
index 2f5349d25..965d6ac8b 100644
90a56e
--- a/v2v/windows_virtio.ml
90a56e
+++ b/v2v/windows_virtio.ml
90a56e
@@ -220,6 +220,13 @@ and ddb_regedits inspect drv_name drv_pciid =
90a56e
     [ "DriverDatabase"; "DeviceIds"; "PCI"; drv_pciid ],
90a56e
     [ drv_inf, REG_BINARY "\x01\xff\x00\x00" ];
90a56e
 
90a56e
+    [ "DriverDatabase"; "DriverPackages"; drv_inf_label ],
90a56e
+    [ "Version", REG_BINARY ("\x00\xff\x09\x00\x00\x00\x00\x00" ^
90a56e
+                             "\x7b\xe9\x36\x4d\x25\xe3\xce\x11" ^
90a56e
+                             "\xbf\xc1\x08\x00\x2b\xe1\x03\x18" ^
90a56e
+                             (String.make 24 '\x00')) ];
90a56e
+    (* Version is necessary for Windows-Kernel-Pnp in w10/w2k16 *)
90a56e
+
90a56e
     [ "DriverDatabase"; "DriverPackages"; drv_inf_label;
90a56e
       "Configurations"; drv_config ],
90a56e
     [ "ConfigFlags", REG_DWORD 0_l;
90a56e
-- 
46ce2f
2.13.4
90a56e