win-pvdrivers

annotate xenvbd/xenvbd.inx @ 631:bf13631a5054

avoid 7b bsod by better defining installation and driver loading order so xenpci won't hide the boot disk before xenvbd is properly installed
- only hide devices once the pv driver to load their counterpart device is installed (move hide_device list creation from xenpci.inf to xenscsi.inf, xenvbd.inf, xennet.inf)
- remove default hiding list (in case no drivers were installed yet)
- force a reboot after xenvbd installation to avoid having both it and the drivers it should replace running at the same time causing disk corruption
- hide more xenvbd conflicting devices
author Amir Szekely <amir@neocleus.com>
date Tue Aug 18 17:37:27 2009 +0300 (2009-08-18)
parents c16b24b438aa
children fc7dfb98cc7a
rev   line source
james@61 1 [Version]
james@61 2 Signature="$WINDOWS NT$"
james@61 3 Class=SCSIAdapter
james@61 4 ClassGuid={4D36E97B-E325-11CE-BFC1-08002BE10318}
james@155 5 Provider=%XenGplPv%
james@541 6 CatalogFile="xenvbd.cat"
james@61 7
james@61 8 [DestinationDirs]
james@61 9 DefaultDestDir = 12
james@61 10
james@61 11 [ControlFlags]
james@61 12 ExcludeFromSelect=*
james@61 13
james@61 14 [Manufacturer]
james@537 15 %XenGplPv%=XenGplPv,NT$ARCH$
james@61 16
james@537 17 [XenGplPv.NT$ARCH$]
james@155 18 %XenVbd.DRVDESC%=XenVbd_Inst, XEN\VBD
james@61 19
james@61 20 [XenVbd_Inst.NT]
james@61 21 CopyFiles=XenVbd.CopyFiles
james@61 22
james@61 23 [XenVbd.CopyFiles]
amir@631 24 xenvbd.sys,,0x00001000 ; COPYFLG_REPLACE_BOOT_FILE
james@61 25
james@61 26 [XenVbd_Inst.NT.Services]
james@157 27 AddService=XenVbd,2,XenVbd_Service, XenVbd_EventLog
james@61 28
james@61 29 [XenVbd_Service]
james@61 30 DisplayName = %XenVbd.SVCDESC%
james@61 31 ServiceType = 1
james@272 32 StartType = 0
james@61 33 ErrorControl = 1
james@172 34 LoadOrderGroup = System Bus Extender
james@61 35 ServiceBinary = %12%\xenvbd.sys
james@314 36 AddReg = XenVbd_Service_AddReg
james@61 37
james@61 38 [XenVbd_Service_AddReg]
james@527 39 HKR,"Parameters\PnpInterface", "15", 0x00010001, 0x00000001
amir@631 40 ; hide Qemu IDE in XenPCI
amir@631 41 HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "VEN_8086&DEV_7010"
amir@631 42 HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "primary_ide_channel"
amir@631 43 HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "secondary_ide_channel"
amir@631 44 HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "*pnp0600"
james@61 45
james@157 46 [XenVbd_EventLog]
james@157 47 AddReg = XenVbd_EventLog_AddReg
james@157 48
james@157 49 [XenVbd_EventLog_AddReg]
james@157 50 HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\XenVbd.sys"
james@157 51 HKR,,TypesSupported,0x00010001,7
james@157 52
amir@631 53 [DestinationDirs]
amir@631 54 XenVbd_Inst_CoInstaller_CopyFiles = 11
amir@631 55
amir@631 56 [XenVbd_Inst.NT.CoInstallers]
amir@631 57 AddReg=XenVbd_Inst_CoInstaller_AddReg
amir@631 58 CopyFiles=XenVbd_Inst_CoInstaller_CopyFiles
amir@631 59
amir@631 60 [XenVbd_Inst_CoInstaller_AddReg]
amir@631 61 HKR,,CoInstallers32,0x00010000, "xencoinst.dll,CoRequireReboot"
amir@631 62
amir@631 63 [XenVbd_Inst_CoInstaller_CopyFiles]
amir@631 64 xencoinst.dll
amir@631 65
james@61 66 [SourceDisksFiles]
james@61 67 xenvbd.sys=1
amir@631 68 xencoinst.dll=1
james@61 69
james@537 70 [SourceDisksNames]
james@537 71 1 = %DISK_NAME%
james@155 72
james@61 73 [Strings]
james@155 74 XenGplPv = "Xen GPL PV Driver Developers"
james@61 75 XenVbd.SVCDESC = "Xen Block Device Driver"
james@61 76 XenVbd.DRVDESC = "Xen Block Device Driver"
james@61 77 DISK_NAME = "Xen Block Device Driver Install Disk"
james@310 78 FLG_ADDREG_TYPE_DWORD = 0x00010001
james@310 79 XEN_INIT_TYPE_END = 0
james@310 80 XEN_INIT_TYPE_WRITE_STRING = 1
james@310 81 XEN_INIT_TYPE_RING = 2
james@310 82 XEN_INIT_TYPE_EVENT_CHANNEL = 3
james@310 83 XEN_INIT_TYPE_EVENT_CHANNEL_IRQ = 4
james@310 84 XEN_INIT_TYPE_READ_STRING_FRONT = 5
james@310 85 XEN_INIT_TYPE_READ_STRING_BACK = 6
james@310 86 XEN_INIT_TYPE_VECTORS = 7
james@310 87 XEN_INIT_TYPE_GRANT_ENTRIES = 8
james@310 88 XEN_INIT_TYPE_COPY_PTR = 9