[Version]
Signature="$WINDOWS NT$"
Class=SCSIAdapter
ClassGuid={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%XenGplPv%
CatalogFile="xenvbd.cat"
DriverVer=09/25/2014,6.1.7600.16385

[DestinationDirs]
DefaultDestDir = 12

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%XenGplPv%=XenGplPv,NTx86

[XenGplPv.NTx86]
%XenVbd.DRVDESC%=XenVbd_Inst, XEN\VBD

[XenGplPv]
%XenVbd.DRVDESC%=XenVbd_Inst, XEN\VBD

[XenVbd_Inst.NT]
CopyFiles=XenVbd.CopyFiles

[XenVbd.CopyFiles]
xenvbd.sys,,0x00001000 ; COPYFLG_REPLACE_BOOT_FILE
xenvbdfilter.sys,,0x00001000 ; COPYFLG_REPLACE_BOOT_FILE

[XenVbd_Inst.NT.HW]
AddReg=XenVbd_HW_AddReg

[XenVbd_Inst.NT.Services]
AddService=XenVbd,2,XenVbd_Service, XenVbd_EventLog
AddService=XenVbdFilter,,XenVbdFilter_Service

[XenVbd_Service]
DisplayName    = %XenVbd.SVCDESC%
ServiceType    = 1
StartType      = 0
ErrorControl   = 1
LoadOrderGroup = System Bus Extender
ServiceBinary  = %12%\xenvbd.sys
AddReg = XenVbd_Service_AddReg

[XenVbdFilter_Service]
DisplayName    = %XenVbdFilter.SVCDESC%
ServiceType    = 1
StartType      = 0
ErrorControl   = 1
LoadOrderGroup = System Bus Extender
ServiceBinary  = %12%\xenvbdfilter.sys
AddReg = XenVbdFilter_Service_AddReg

[XenVbd_HW_AddReg]
HKR,,"UpperFilters", 0x00010000, "XenVbdFilter"

[XenVbd_Service_AddReg]
HKR,"Parameters\PnpInterface", "15", 0x00010001, 0x00000001
; hide Qemu IDE in XenPCI
HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "#vbd#"
HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "VEN_8086&DEV_7010"
HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "primary_ide_channel"
HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "secondary_ide_channel"
HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "hide_devices", 0x00010008, "*pnp0600"
; tell Qemu to hide stuff
HKLM,"SYSTEM\CurrentControlSet\Services\XenPCI\Parameters", "qemu_hide_flags", 0x00010008, %QEMU_UNPLUG_ALL_IDE_DISKS%

[XenVbdFilter_Service_AddReg]
HKR,"Parameters\PnpInterface", "15", 0x00010001, 0x00000001

[XenVbd_EventLog]
AddReg = XenVbd_EventLog_AddReg

[XenVbd_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\XenVbd.sys"
HKR,,TypesSupported,0x00010001,7

[SourceDisksFiles]
xenvbd.sys=1
xenvbdfilter.sys=1

[SourceDisksNames]
1 = %DISK_NAME%

[Strings]
XenGplPv = "Xen GPL PV Driver Developers"
XenVbd.DRVDESC = "Xen Block Device Driver"
XenVbd.SVCDESC = "Xen Block Device Driver"
XenVbdFilter.SVCDESC = "Xen Block Device Filter"
DISK_NAME = "Xen Block Device Driver Install Disk"
FLG_ADDREG_TYPE_DWORD = 0x00010001
QEMU_UNPLUG_ALL_IDE_DISKS = 1
QEMU_UNPLUG_ALL_NICS      = 2
QEMU_UNPLUG_AUX_IDE_DISKS = 4
