--- /dev/null
+7.0.0 (2013-06-19):
+* Initial public release
--- /dev/null
+To install the XenServer Paravitual Bus Device Driver onto a XenServer Windows
+guest VM:
+
+* Copy xenbus.sys, xen.sys, xenfilt.sys, xenbus_coinst.dll and xenbus.inf
+ onto the guest VM
+* Copy dpinst.exe from the Windows driver kit into the same folder as
+ xenbus.sys, xen.sys, xenfilt.sys, xenbus_coinst.dll and xeniface.inf on
+ the guest vm, ensuring the version of dpinst.exe matches the architecture
+ of the verison of Windows installed on your VM
+* As administrator, run dpinst.exe on the guest vm
+* If any warnings arise about unknown certificates, accept them
+
--- /dev/null
+List of maintainers and how to submit changes
+=============================================
+
+This is an early public release of the XenServer XenBus drivers.
+
+At the moment we are working hard on improving this early release, to make
+it easier to build and install and test on your own systems. As such things
+are in a state of flux, and we may well find it difficult to take submissions.
+
+We hope things will have improved by January 2014
+
+If you do wish to submit code, we recommend reaching out to the maintainers
+first, who will attempt to steer you in the right direction.
+
+We also request you follow these guidelines:
+
+1. All submissions must be made under the terms of the "Developer's Certificate
+ of Origin" (DC) and should include a Signed-off-by: line.
+
+2. All Submissions should use Unix line endings for consitency with the rest of
+ the XenServer project
+
+3. Each patch should include a descriptive commit comment that helps understand
+ why the patch is necessary and why it works. This will be used both for
+ initial review and for new people to understand how the code works later
+
+4. Make sure you have the right to submit any changes you make. If you do
+ changes at work you may find your employer owns the patches instead of
+ you.
+
+
+Maintainers List
+----------------
+
+* Paul Durrant <paul.durrant@citrix.com>
+
+* Ben Chalmers <ben.chalmers@citrix.com>
+
+* Owen Smith <owen.smith@citrix.com>
+
--- /dev/null
+XenBus - The XenServer Windows Paravitual Bus Device Driver
+==========================================
+
+XenBus consists of three device drivers:
+
+* XenBus.Sys is a bus driver which attaches to a virtual device on the PCI
+ bus and provides child devices for the other XenServer device drivers to
+ attach to.
+
+* Xen.Sys is a support library which provides interfaces for communicating
+ with the XenServer host and hypervisor
+
+* XenFile is a filter driver which is used to mask emulated devices (such
+ as disk and network devices) from Windows, when paravitulized devices
+ are available
+
+Quick Start
+===========
+
+Prerequisites to build
+----------------------
+
+* Visual Studio 2012 or later
+* Windows Driver Kit 8 or later
+* Python 3 or later
+
+Environment variables used in building driver
+-----------------------------
+
+MAJOR\_VERSION Major version number
+
+MINOR\_VERSION Minor version number
+
+MICRO\_VERSION Micro version number
+
+BUILD\_NUMBER Build number
+
+SYMBOL\_SERVER location of a writable symbol server directory
+
+KIT location of the Windows driver kit
+
+PROCESSOR\_ARCHITECTURE x86 or x64
+
+VS location of visual studio
+
+Commands to build
+-----------------
+
+ git clone http://github.com/xenserver/win-xenbus
+ cd win-xenbus
+ .\build.py [checked | free]
+
+Device tree diagram
+-------------------
+
+
+ | |
+ XenBus--(Xen.Sys) [====XenFilt===]
+ | | | | | | |
+ PCI Bus :---------+-----------------------------+--+--+--+--+--+
+ VEN_5853&DEV_0002&SUBSYS_00025853 Other Devices
def get_target_path(arch, debug):
configuration = get_configuration_name(debug)
- target = { 'x86': 'proj', 'x64': os.sep.join(['proj', 'x64']) }
- target_path = os.sep.join([target[arch], configuration])
+ target = { 'x86': os.sep.join([configuration, 'Win32']), 'x64': os.sep.join([configuration, 'x64']) }
+ target_path = os.sep.join(['proj', target[arch]])
return target_path
cwd = os.getcwd()
configuration = get_configuration(debug)
- os.environ['SOLUTION'] = name
-
if arch == 'x86':
os.environ['PLATFORM'] = 'Win32'
elif arch == 'x64':
os.environ['CONFIGURATION'] = configuration
os.environ['TARGET'] = 'Build'
+ os.environ['BUILD_ARGS'] = '/p:SignMode="ProductionSign"'
+ os.environ['BUILD_FILE'] = name + '.sln'
os.chdir('proj')
status = shell('msbuild.bat')
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Windows 8 Debug|Win32">
+ <Configuration>Windows 8 Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows 7 Debug|Win32">
+ <Configuration>Windows 7 Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows Vista Debug|Win32">
+ <Configuration>Windows Vista Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows 8 Release|Win32">
+ <Configuration>Windows 8 Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows 7 Release|Win32">
+ <Configuration>Windows 7 Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows Vista Release|Win32">
+ <Configuration>Windows Vista Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows 8 Debug|x64">
+ <Configuration>Windows8 Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows 7 Debug|x64">
+ <Configuration>Windows 7 Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows Vista Debug|x64">
+ <Configuration>Windows Vista Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows 8 Release|x64">
+ <Configuration>Windows 8 Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows 7 Release|x64">
+ <Configuration>Windows 7 Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Windows Vista Release|x64">
+ <Configuration>Windows Vista Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+</Project>
\ No newline at end of file
call "%VS%\VC\vcvarsall.bat" x86
-msbuild.exe /m:4 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" /p:SignMode="ProductionSign" %SOLUTION%.sln
+msbuild.exe /m:4 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %BUILD_ARGS% %BUILD_FILE%
if errorlevel 1 goto error
exit 0
+++ /dev/null
-call "%VS%\VC\vcvarsall.bat" x86
-echo msbuild.exe "%SDV_PROJ%" /t:dvl /p:Configuration="Windows 8 Release" /p:Platform=x64
-msbuild.exe "%SDV_PROJ%" /t:dvl /p:Configuration="Windows 8 Release" /p:Platform=x64
-if errorlevel 1 goto error
-exit 0
-
-:error
-exit 1
+++ /dev/null
-call "%VS%\VC\vcvarsall.bat" x86
-echo msbuild.exe "%SDV_PROJ%" /t:sdv /p:Inputs="%SDV_ARG%" /p:Configuration="Windows 8 Release" /p:Platform=x64
-msbuild.exe "%SDV_PROJ%" /t:sdv /p:Inputs="%SDV_ARG%" /p:Configuration="Windows 8 Release" /p:Platform=x64
-if errorlevel 1 goto error
-exit 0
-
-:error
-exit 1
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Windows Developer Preview Debug|Win32">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|Win32">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|Win32">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|Win32">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|Win32">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|Win32">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Debug|x64">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|x64">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|x64">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|x64">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|x64">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|x64">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{92E5A46B-913C-45C6-B6F8-7E062D85279F}</ProjectGuid>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- </PropertyGroup>
- <PropertyGroup Label="PropertySheets">
- <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
- <ConfigurationType>Utility</ConfigurationType>
- <DriverType>Package</DriverType>
- <Configuration>Windows Developer Preview Debug</Configuration>
- <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <EnableInf2cat>true</EnableInf2cat>
- <Inf2CatWindowsVersionList Condition="'$(Platform)'=='x64'">Vista_$(DDKPlatform);7_$(DDKPlatform);Server2008_$(DDKPlatform);Server2008R2_$(DDKPlatform)</Inf2CatWindowsVersionList>
- <Inf2CatWindowsVersionList Condition="'$(Platform)'=='Win32'">Vista_$(DDKPlatform);7_$(DDKPlatform);Server2008_$(DDKPlatform)</Inf2CatWindowsVersionList>
- </PropertyGroup>
- <PropertyGroup>
- <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
- <EnableDeployment>False</EnableDeployment>
- <ImportToStore>False</ImportToStore>
- <InstallMode>None</InstallMode>
- <HardwareIdString />
- <CommandLine />
- <ScriptPath />
- <DeployFiles />
- <ScriptName />
- <ScriptDeviceQuery>%PathToInf%</ScriptDeviceQuery>
- <EnableVerifier>False</EnableVerifier>
- <AllDrivers>False</AllDrivers>
- <VerifyProjectOutput>True</VerifyProjectOutput>
- <VerifyDrivers />
- <VerifyFlags>133563</VerifyFlags>
- <PackageDir>..\..\xenbus\$(DDKPlatform)</PackageDir>
- </PropertyGroup>
- <ItemGroup>
- <ProjectReference Include="..\xenfilt\xenfilt.vcxproj">
- <Project>{d7411b2c-2c43-434d-9f56-e10a3d2f5bad}</Project>
- </ProjectReference>
- <ProjectReference Include="..\xenbus_coinst\xenbus_coinst.vcxproj">
- <Project>{4bf41378-c01b-4002-8581-563c5f703362}</Project>
- </ProjectReference>
- <ProjectReference Include="..\xenbus\xenbus.vcxproj">
- <Project>{14c16c29-77c9-475b-a618-1b01e67cf985}</Project>
- </ProjectReference>
- <ProjectReference Include="..\xen\xen.vcxproj">
- <Project>{9c6a5d48-a331-4b1f-a004-7bb67ba5be1c}</Project>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <FilesToPackage Include="$(KIT)\Redist\DIFx\dpinst\EngMui\x86\dpinst.exe" Condition="'$(Platform)'=='Win32'" />
- <FilesToPackage Include="$(KIT)\Redist\DIFx\dpinst\EngMui\x64\dpinst.exe" Condition="'$(Platform)'=='x64'" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-</Project>
\ No newline at end of file
+ <Import Project="..\configs.props" />
+
+ <PropertyGroup Label="PropertySheets">
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
+ <ConfigurationType>Utility</ConfigurationType>
+ <DriverType>Package</DriverType>
+ <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
+ </PropertyGroup>
+ <PropertyGroup Label="Globals">
+ <Configuration>Windows Vista Debug</Configuration>
+ <Platform Condition="'$(Platform)' == ''">Win32</Platform>
+ <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
+ </PropertyGroup>
+
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{92E5A46B-913C-45C6-B6F8-7E062D85279F}</ProjectGuid>
+ </PropertyGroup>
+
+ <Import Project="..\targets.props" />
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+
+ <PropertyGroup>
+ <EnableInf2cat>true</EnableInf2cat>
+ <Inf2CatWindowsVersionList Condition="'$(Platform)'=='x64'">Vista_$(DDKPlatform);7_$(DDKPlatform);Server2008_$(DDKPlatform);Server2008R2_$(DDKPlatform)</Inf2CatWindowsVersionList>
+ <Inf2CatWindowsVersionList Condition="'$(Platform)'=='Win32'">Vista_$(DDKPlatform);7_$(DDKPlatform);Server2008_$(DDKPlatform)</Inf2CatWindowsVersionList>
+ <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
+ <EnableDeployment>False</EnableDeployment>
+ <ImportToStore>False</ImportToStore>
+ <InstallMode>None</InstallMode>
+ <ScriptDeviceQuery>%PathToInf%</ScriptDeviceQuery>
+ <EnableVerifier>False</EnableVerifier>
+ <AllDrivers>False</AllDrivers>
+ <VerifyProjectOutput>True</VerifyProjectOutput>
+ <VerifyDrivers />
+ <VerifyFlags>133563</VerifyFlags>
+ <IntDir>..\$(ProjectName)\$(ConfigurationName)\$(Platform)\</IntDir>
+ <OutDir>..\$(ConfigurationName)\$(Platform)\</OutDir>
+ <PackageDir>..\..\xenbus\$(DDKPlatform)</PackageDir>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\xenfilt\xenfilt.vcxproj">
+ <Project>{d7411b2c-2c43-434d-9f56-e10a3d2f5bad}</Project>
+ </ProjectReference>
+ <ProjectReference Include="..\xenbus_coinst\xenbus_coinst.vcxproj">
+ <Project>{4bf41378-c01b-4002-8581-563c5f703362}</Project>
+ </ProjectReference>
+ <ProjectReference Include="..\xenbus\xenbus.vcxproj">
+ <Project>{14c16c29-77c9-475b-a618-1b01e67cf985}</Project>
+ </ProjectReference>
+ <ProjectReference Include="..\xen\xen.vcxproj">
+ <Project>{9c6a5d48-a331-4b1f-a004-7bb67ba5be1c}</Project>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <FilesToPackage Include="$(KIT)\Redist\DIFx\dpinst\EngMui\x86\dpinst.exe" Condition="'$(Platform)'=='Win32'" />
+ <FilesToPackage Include="$(KIT)\Redist\DIFx\dpinst\EngMui\x64\dpinst.exe" Condition="'$(Platform)'=='x64'" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 8 Debug|Win32'">
+ <TargetVersion>Windows8</TargetVersion>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 8 Release|Win32'">
+ <TargetVersion>Windows8</TargetVersion>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 8 Debug|x64'">
+ <TargetVersion>Windows8</TargetVersion>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 8 Release|x64'">
+ <TargetVersion>Windows8</TargetVersion>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|Win32'">
+ <TargetVersion>Windows7</TargetVersion>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|Win32'">
+ <TargetVersion>Windows7</TargetVersion>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|x64'">
+ <TargetVersion>Windows7</TargetVersion>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|x64'">
+ <TargetVersion>Windows7</TargetVersion>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|Win32'">
+ <TargetVersion>Vista</TargetVersion>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|Win32'">
+ <TargetVersion>Vista</TargetVersion>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|x64'">
+ <TargetVersion>Vista</TargetVersion>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|x64'">
+ <TargetVersion>Vista</TargetVersion>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ </PropertyGroup>
+</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Windows Developer Preview Debug|Win32">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|Win32">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|Win32">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|Win32">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|Win32">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|Win32">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Debug|x64">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|x64">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|x64">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|x64">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|x64">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|x64">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}</ProjectGuid>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <ProjectName>xen</ProjectName>
- </PropertyGroup>
- <PropertyGroup Label="PropertySheets">
- <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
- <ConfigurationType>Driver</ConfigurationType>
- <DriverType>WDM</DriverType>
- <Configuration>Windows Developer Preview Debug</Configuration>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
- </PropertyGroup>
- <PropertyGroup>
- <IncludePath>$(IncludePath)</IncludePath>
- <RunCodeAnalysis>true</RunCodeAnalysis>
- <EnableInf2cat>false</EnableInf2cat>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__i386__;__MODULE__="XEN";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- </ClCompile>
- <Link>
- <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
- <AdditionalDependencies>$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>../../src/xen/xen.def</ModuleDefinitionFile>
- <EnableCOMDATFolding>false</EnableCOMDATFolding>
- </Link>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__x86_64__;__MODULE__="XEN";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- </ClCompile>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <AdditionalDependencies>$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>../../src/xen/xen.def</ModuleDefinitionFile>
- <EnableCOMDATFolding>false</EnableCOMDATFolding>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <FilesToPackage Include="$(TargetPath)" />
- <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
- <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\src\xen\driver.c" />
- <ClCompile Include="..\..\src\xen\event_channel.c" />
- <ClCompile Include="..\..\src\xen\grant_table.c" />
- <ClCompile Include="..\..\src\xen\hvm.c" />
- <ClCompile Include="..\..\src\xen\hypercall.c" />
- <ClCompile Include="..\..\src\xen\memory.c" />
- <ClCompile Include="..\..\src\xen\sched.c" />
- <ClCompile Include="..\..\src\xen\log.c" />
- <ClCompile Include="..\..\src\xen\debug.c" />
- <ClCompile Include="..\..\src\xen\dump.c" />
- <ClCompile Include="..\..\src\xen\module.c" />
- <ClCompile Include="..\..\src\xen\process.c" />
- <ClCompile Include="..\..\src\xen\unplug.c" />
- <ClCompile Include="..\..\src\xen\system.c" />
- </ItemGroup>
- <ItemGroup>
- <MASM Include="..\..\src\xen\amd64\hypercall_gate.asm">
- <ExcludedFromBuild Condition="'$(Platform)'=='Win32'">true</ExcludedFromBuild>
- </MASM>
- <MASM Include="..\..\src\xen\i386\hypercall_gate.asm">
- <ExcludedFromBuild Condition="'$(Platform)'=='x64'">true</ExcludedFromBuild>
- </MASM>
- <MASM Include="..\..\src\xen\amd64\util.asm">
- <ExcludedFromBuild Condition="'$(Platform)'=='Win32'">true</ExcludedFromBuild>
- </MASM>
- <MASM Include="..\..\src\xen\i386\util.asm">
- <ExcludedFromBuild Condition="'$(Platform)'=='x64'">true</ExcludedFromBuild>
- </MASM>
- </ItemGroup>
- <ItemGroup>
- <ResourceCompile Include="..\..\src\xen\xen.rc" />
- </ItemGroup>
- <ItemGroup>
- <None Include="..\..\src\xen\xen.def" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <Import Project="..\configs.props" />
+
+ <PropertyGroup Label="Globals">
+ <Configuration>Windows Vista Debug</Configuration>
+ <Platform Condition="'$(Platform)' == ''">Win32</Platform>
+ <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
+ </PropertyGroup>
+ <PropertyGroup Label="PropertySheets">
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
+ <ConfigurationType>Driver</ConfigurationType>
+ <DriverType>WDM</DriverType>
+ </PropertyGroup>
+
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}</ProjectGuid>
+ </PropertyGroup>
+
+ <Import Project="..\targets.props" />
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+
+ <PropertyGroup>
+ <IncludePath>..\..\include;$(IncludePath)</IncludePath>
+ <RunCodeAnalysis>true</RunCodeAnalysis>
+ <EnableInf2cat>false</EnableInf2cat>
+ <IntDir>..\$(ProjectName)\$(ConfigurationName)\$(Platform)\</IntDir>
+ <OutDir>..\$(ConfigurationName)\$(Platform)\</OutDir>
+ </PropertyGroup>
+
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <PreprocessorDefinitions>__MODULE__="XEN";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <WarningLevel>EnableAllWarnings</WarningLevel>
+ <DisableSpecificWarnings>4711;4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <EnablePREfast>true</EnablePREfast>
+ </ClCompile>
+ <Link>
+ <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
+ <AdditionalDependencies>$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <ModuleDefinitionFile>../../src/xen/xen.def</ModuleDefinitionFile>
+ <EnableCOMDATFolding>false</EnableCOMDATFolding>
+ </Link>
+ <Inf>
+ <SpecifyArchitecture>true</SpecifyArchitecture>
+ <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion>
+ <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp>
+ <EnableVerbose>true</EnableVerbose>
+ </Inf>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
+ <ClCompile>
+ <PreprocessorDefinitions>__i386__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Inf>
+ <Architecture>x86</Architecture>
+ </Inf>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
+ <ClCompile>
+ <PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Inf>
+ <Architecture>amd64</Architecture>
+ </Inf>
+ </ItemDefinitionGroup>
+
+ <ItemGroup>
+ <FilesToPackage Include="$(TargetPath)" />
+ <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
+ <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\..\src\xen\driver.c" />
+ <ClCompile Include="..\..\src\xen\event_channel.c" />
+ <ClCompile Include="..\..\src\xen\grant_table.c" />
+ <ClCompile Include="..\..\src\xen\hvm.c" />
+ <ClCompile Include="..\..\src\xen\hypercall.c" />
+ <ClCompile Include="..\..\src\xen\memory.c" />
+ <ClCompile Include="..\..\src\xen\sched.c" />
+ <ClCompile Include="..\..\src\xen\log.c" />
+ <ClCompile Include="..\..\src\xen\debug.c" />
+ <ClCompile Include="..\..\src\xen\dump.c" />
+ <ClCompile Include="..\..\src\xen\module.c" />
+ <ClCompile Include="..\..\src\xen\process.c" />
+ <ClCompile Include="..\..\src\xen\unplug.c" />
+ <ClCompile Include="..\..\src\xen\system.c" />
+ </ItemGroup>
+ <ItemGroup>
+ <MASM Include="..\..\src\xen\amd64\hypercall_gate.asm">
+ <ExcludedFromBuild Condition="'$(Platform)'=='Win32'">true</ExcludedFromBuild>
+ </MASM>
+ <MASM Include="..\..\src\xen\i386\hypercall_gate.asm">
+ <ExcludedFromBuild Condition="'$(Platform)'=='x64'">true</ExcludedFromBuild>
+ </MASM>
+ <MASM Include="..\..\src\xen\amd64\util.asm">
+ <ExcludedFromBuild Condition="'$(Platform)'=='Win32'">true</ExcludedFromBuild>
+ </MASM>
+ <MASM Include="..\..\src\xen\i386\util.asm">
+ <ExcludedFromBuild Condition="'$(Platform)'=='x64'">true</ExcludedFromBuild>
+ </MASM>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="..\..\src\xen\xen.rc" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="..\..\src\xen\xen.def" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
Windows 7 Debug|x64 = Windows 7 Debug|x64
Windows 7 Release|Win32 = Windows 7 Release|Win32
Windows 7 Release|x64 = Windows 7 Release|x64
- Windows Developer Preview Debug|Win32 = Windows Developer Preview Debug|Win32
- Windows Developer Preview Debug|x64 = Windows Developer Preview Debug|x64
- Windows Developer Preview Release|Win32 = Windows Developer Preview Release|Win32
- Windows Developer Preview Release|x64 = Windows Developer Preview Release|x64
+ Windows 8 Debug|Win32 = Windows 8 Debug|Win32
+ Windows 8 Debug|x64 = Windows 8 Debug|x64
+ Windows 8 Release|Win32 = Windows 8 Release|Win32
+ Windows 8 Release|x64 = Windows 8 Release|x64
Windows Vista Debug|Win32 = Windows Vista Debug|Win32
Windows Vista Debug|x64 = Windows Vista Debug|x64
Windows Vista Release|Win32 = Windows Vista Release|Win32
{14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 7 Release|Win32.Build.0 = Windows 7 Release|Win32
{14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 7 Release|x64.ActiveCfg = Windows 7 Release|x64
{14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 7 Release|x64.Build.0 = Windows 7 Release|x64
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Debug|Win32.ActiveCfg = Windows Developer Preview Debug|Win32
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Debug|Win32.Build.0 = Windows Developer Preview Debug|Win32
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Debug|x64.ActiveCfg = Windows Developer Preview Debug|x64
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Debug|x64.Build.0 = Windows Developer Preview Debug|x64
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Release|Win32.ActiveCfg = Windows Developer Preview Release|Win32
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Release|Win32.Build.0 = Windows Developer Preview Release|Win32
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Release|x64.ActiveCfg = Windows Developer Preview Release|x64
- {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Developer Preview Release|x64.Build.0 = Windows Developer Preview Release|x64
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64
+ {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64
{14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Vista Debug|Win32.ActiveCfg = Windows Vista Debug|Win32
{14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Vista Debug|Win32.Build.0 = Windows Vista Debug|Win32
{14C16C29-77C9-475B-A618-1B01E67CF985}.Windows Vista Debug|x64.ActiveCfg = Windows Vista Debug|x64
{4BF41378-C01B-4002-8581-563C5F703362}.Windows 7 Release|Win32.Build.0 = Windows 7 Release|Win32
{4BF41378-C01B-4002-8581-563C5F703362}.Windows 7 Release|x64.ActiveCfg = Windows 7 Release|x64
{4BF41378-C01B-4002-8581-563C5F703362}.Windows 7 Release|x64.Build.0 = Windows 7 Release|x64
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Debug|Win32.ActiveCfg = Windows Developer Preview Debug|Win32
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Debug|Win32.Build.0 = Windows Developer Preview Debug|Win32
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Debug|x64.ActiveCfg = Windows Developer Preview Debug|x64
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Debug|x64.Build.0 = Windows Developer Preview Debug|x64
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Release|Win32.ActiveCfg = Windows Developer Preview Release|Win32
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Release|Win32.Build.0 = Windows Developer Preview Release|Win32
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Release|x64.ActiveCfg = Windows Developer Preview Release|x64
- {4BF41378-C01B-4002-8581-563C5F703362}.Windows Developer Preview Release|x64.Build.0 = Windows Developer Preview Release|x64
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64
+ {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64
{4BF41378-C01B-4002-8581-563C5F703362}.Windows Vista Debug|Win32.ActiveCfg = Windows Vista Debug|Win32
{4BF41378-C01B-4002-8581-563C5F703362}.Windows Vista Debug|Win32.Build.0 = Windows Vista Debug|Win32
{4BF41378-C01B-4002-8581-563C5F703362}.Windows Vista Debug|x64.ActiveCfg = Windows Vista Debug|x64
{92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 7 Release|x64.ActiveCfg = Windows 7 Release|x64
{92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 7 Release|x64.Build.0 = Windows 7 Release|x64
{92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 7 Release|x64.Deploy.0 = Windows 7 Release|x64
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Debug|Win32.ActiveCfg = Windows Developer Preview Debug|Win32
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Debug|Win32.Build.0 = Windows Developer Preview Debug|Win32
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Debug|Win32.Deploy.0 = Windows Developer Preview Debug|Win32
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Debug|x64.ActiveCfg = Windows Developer Preview Debug|x64
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Debug|x64.Build.0 = Windows Developer Preview Debug|x64
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Debug|x64.Deploy.0 = Windows Developer Preview Debug|x64
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Release|Win32.ActiveCfg = Windows Developer Preview Release|Win32
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Release|Win32.Build.0 = Windows Developer Preview Release|Win32
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Release|Win32.Deploy.0 = Windows Developer Preview Release|Win32
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Release|x64.ActiveCfg = Windows Developer Preview Release|x64
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Release|x64.Build.0 = Windows Developer Preview Release|x64
- {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Developer Preview Release|x64.Deploy.0 = Windows Developer Preview Release|x64
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|Win32.Deploy.0 = Windows 8 Debug|Win32
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|x64.Deploy.0 = Windows 8 Debug|x64
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|Win32.Deploy.0 = Windows 8 Release|Win32
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64
+ {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|x64.Deploy.0 = Windows 8 Release|x64
{92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Vista Debug|Win32.ActiveCfg = Windows Vista Debug|Win32
{92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Vista Debug|Win32.Build.0 = Windows Vista Debug|Win32
{92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows Vista Debug|Win32.Deploy.0 = Windows Vista Debug|Win32
{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 7 Release|Win32.Build.0 = Windows 7 Release|Win32
{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 7 Release|x64.ActiveCfg = Windows 7 Release|x64
{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 7 Release|x64.Build.0 = Windows 7 Release|x64
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Debug|Win32.ActiveCfg = Windows Developer Preview Debug|Win32
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Debug|Win32.Build.0 = Windows Developer Preview Debug|Win32
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Debug|x64.ActiveCfg = Windows Developer Preview Debug|x64
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Debug|x64.Build.0 = Windows Developer Preview Debug|x64
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Release|Win32.ActiveCfg = Windows Developer Preview Release|Win32
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Release|Win32.Build.0 = Windows Developer Preview Release|Win32
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Release|x64.ActiveCfg = Windows Developer Preview Release|x64
- {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Developer Preview Release|x64.Build.0 = Windows Developer Preview Release|x64
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64
+ {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64
{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Vista Debug|Win32.ActiveCfg = Windows Vista Debug|Win32
{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Vista Debug|Win32.Build.0 = Windows Vista Debug|Win32
{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows Vista Debug|x64.ActiveCfg = Windows Vista Debug|x64
{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 7 Release|Win32.Build.0 = Windows 7 Release|Win32
{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 7 Release|x64.ActiveCfg = Windows 7 Release|x64
{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 7 Release|x64.Build.0 = Windows 7 Release|x64
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Debug|Win32.ActiveCfg = Windows Developer Preview Debug|Win32
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Debug|Win32.Build.0 = Windows Developer Preview Debug|Win32
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Debug|x64.ActiveCfg = Windows Developer Preview Debug|x64
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Debug|x64.Build.0 = Windows Developer Preview Debug|x64
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Release|Win32.ActiveCfg = Windows Developer Preview Release|Win32
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Release|Win32.Build.0 = Windows Developer Preview Release|Win32
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Release|x64.ActiveCfg = Windows Developer Preview Release|x64
- {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Developer Preview Release|x64.Build.0 = Windows Developer Preview Release|x64
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64
+ {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64
{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Vista Debug|Win32.ActiveCfg = Windows Vista Debug|Win32
{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Vista Debug|Win32.Build.0 = Windows Vista Debug|Win32
{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows Vista Debug|x64.ActiveCfg = Windows Vista Debug|x64
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Windows Developer Preview Debug|Win32">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|Win32">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|Win32">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|Win32">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|Win32">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|Win32">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Debug|x64">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|x64">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|x64">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|x64">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|x64">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|x64">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{14C16C29-77C9-475B-A618-1B01E67CF985}</ProjectGuid>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <ProjectName>xenbus</ProjectName>
- </PropertyGroup>
- <PropertyGroup Label="PropertySheets">
- <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
- <ConfigurationType>Driver</ConfigurationType>
- <DriverType>WDM</DriverType>
- <Configuration>Windows Developer Preview Debug</Configuration>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <IncludePath>$(IncludePath)</IncludePath>
- <RunCodeAnalysis>true</RunCodeAnalysis>
- <EnableInf2cat>false</EnableInf2cat>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__i386__;__MODULE__="XENBUS";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- </ClCompile>
- <Link>
- <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
- <AdditionalDependencies>$(SolutionDir)$(ConfigurationName)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <EnableCOMDATFolding>false</EnableCOMDATFolding>
- </Link>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Inf>
- <SpecifyArchitecture>true</SpecifyArchitecture>
- <Architecture>x86</Architecture>
- <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion>
- <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp>
- <EnableVerbose>true</EnableVerbose>
- </Inf>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__x86_64__;__MODULE__="XENBUS";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- </ClCompile>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <AdditionalDependencies>$(SolutionDir)$(Platform)\$(ConfigurationName)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <EnableCOMDATFolding>false</EnableCOMDATFolding>
- </Link>
- <Inf>
- <SpecifyArchitecture>true</SpecifyArchitecture>
- <Architecture>amd64</Architecture>
- <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion>
- <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp>
- <EnableVerbose>true</EnableVerbose>
- </Inf>
- </ItemDefinitionGroup>
- <ItemGroup>
- <FilesToPackage Include="$(TargetPath)" />
- <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
- <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\src\xenbus\bus.c" />
- <ClCompile Include="..\..\src\xenbus\dma.c" />
- <ClCompile Include="..\..\src\xenbus\debug.c" />
- <ClCompile Include="..\..\src\xenbus\driver.c" />
- <ClCompile Include="..\..\src\xenbus\evtchn.c" />
- <ClCompile Include="..\..\src\xenbus\fdo.c" />
- <ClCompile Include="..\..\src\xenbus\gnttab.c" />
- <ClCompile Include="..\..\src\xenbus\pdo.c" />
- <ClCompile Include="..\..\src\xenbus\registry.c" />
- <ClCompile Include="..\..\src\xenbus\shared_info.c" />
- <ClCompile Include="..\..\src\xenbus\store.c" />
- <ClCompile Include="..\..\src\xenbus\suspend.c" />
- <ClCompile Include="..\..\src\xenbus\sync.c" />
- <ClCompile Include="..\..\src\xenbus\thread.c" />
- <ClCompile Include="..\..\src\xenbus\range_set.c" />
- <ClCompile Include="..\..\src\xenbus\balloon.c" />
- </ItemGroup>
- <ItemGroup>
- <ResourceCompile Include="..\..\src\xenbus\xenbus.rc" />
- </ItemGroup>
- <ItemGroup>
- <Inf Include="..\xenbus.inf" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <Import Project="..\configs.props" />
+
+ <PropertyGroup Label="Globals">
+ <Configuration>Windows Vista Debug</Configuration>
+ <Platform Condition="'$(Platform)' == ''">Win32</Platform>
+ <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
+ </PropertyGroup>
+ <PropertyGroup Label="PropertySheets">
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
+ <ConfigurationType>Driver</ConfigurationType>
+ <DriverType>WDM</DriverType>
+ </PropertyGroup>
+
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{14C16C29-77C9-475B-A618-1B01E67CF985}</ProjectGuid>
+ </PropertyGroup>
+
+ <Import Project="..\targets.props" />
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+
+ <PropertyGroup>
+ <IncludePath>..\..\include;$(IncludePath)</IncludePath>
+ <RunCodeAnalysis>true</RunCodeAnalysis>
+ <EnableInf2cat>false</EnableInf2cat>
+ <IntDir>..\$(ProjectName)\$(ConfigurationName)\$(Platform)\</IntDir>
+ <OutDir>..\$(ConfigurationName)\$(Platform)\</OutDir>
+ </PropertyGroup>
+
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <PreprocessorDefinitions>__MODULE__="XENBUS";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <WarningLevel>EnableAllWarnings</WarningLevel>
+ <DisableSpecificWarnings>4711;4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <EnablePREfast>true</EnablePREfast>
+ </ClCompile>
+ <Link>
+ <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
+ <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <EnableCOMDATFolding>false</EnableCOMDATFolding>
+ </Link>
+ <Inf>
+ <SpecifyArchitecture>true</SpecifyArchitecture>
+ <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion>
+ <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp>
+ <EnableVerbose>true</EnableVerbose>
+ </Inf>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
+ <ClCompile>
+ <PreprocessorDefinitions>__i386__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Inf>
+ <Architecture>x86</Architecture>
+ </Inf>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
+ <ClCompile>
+ <PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Inf>
+ <Architecture>amd64</Architecture>
+ </Inf>
+ </ItemDefinitionGroup>
+
+ <ItemGroup>
+ <FilesToPackage Include="$(TargetPath)" />
+ <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
+ <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\..\src\xenbus\bus.c" />
+ <ClCompile Include="..\..\src\xenbus\dma.c" />
+ <ClCompile Include="..\..\src\xenbus\debug.c" />
+ <ClCompile Include="..\..\src\xenbus\driver.c" />
+ <ClCompile Include="..\..\src\xenbus\evtchn.c" />
+ <ClCompile Include="..\..\src\xenbus\fdo.c" />
+ <ClCompile Include="..\..\src\xenbus\gnttab.c" />
+ <ClCompile Include="..\..\src\xenbus\pdo.c" />
+ <ClCompile Include="..\..\src\xenbus\registry.c" />
+ <ClCompile Include="..\..\src\xenbus\shared_info.c" />
+ <ClCompile Include="..\..\src\xenbus\store.c" />
+ <ClCompile Include="..\..\src\xenbus\suspend.c" />
+ <ClCompile Include="..\..\src\xenbus\sync.c" />
+ <ClCompile Include="..\..\src\xenbus\thread.c" />
+ <ClCompile Include="..\..\src\xenbus\range_set.c" />
+ <ClCompile Include="..\..\src\xenbus\balloon.c" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="..\..\src\xenbus\xenbus.rc" />
+ </ItemGroup>
+ <ItemGroup>
+ <Inf Include="..\xenbus.inf" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Windows Developer Preview Debug|Win32">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|Win32">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|Win32">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|Win32">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|Win32">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|Win32">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Debug|x64">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|x64">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|x64">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|x64">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|x64">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|x64">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{4BF41378-C01B-4002-8581-563C5F703362}</ProjectGuid>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <ProjectName>xenbus_coinst</ProjectName>
- </PropertyGroup>
- <PropertyGroup Label="PropertySheets">
- <PlatformToolset>WindowsApplicationForDrivers8.0</PlatformToolset>
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <DriverType>WDM</DriverType>
- <Configuration>Windows Developer Preview Debug</Configuration>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
- </PropertyGroup>
- <PropertyGroup>
- <IncludePath>$(IncludePath)</IncludePath>
- <RunCodeAnalysis>true</RunCodeAnalysis>
- <EnableInf2cat>false</EnableInf2cat>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__i386__;__MODULE__="XENBUS_COINST";%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebug</RuntimeLibrary>
- <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='false'">MultiThreaded</RuntimeLibrary>
- </ClCompile>
- <Link>
- <ModuleDefinitionFile>../../src/coinst/xenbus_coinst.def</ModuleDefinitionFile>
- <AdditionalDependencies>setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__x86_64__;__MODULE__="XENBUS_COINST";%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebug</RuntimeLibrary>
- <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='false'">MultiThreaded</RuntimeLibrary>
- </ClCompile>
- <Link>
- <ModuleDefinitionFile>../../src/coinst/xenbus_coinst.def</ModuleDefinitionFile>
- <AdditionalDependencies>setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- </ItemDefinitionGroup>
- <ItemGroup>
- <FilesToPackage Include="$(TargetPath)" />
- <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
- <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\src\coinst\coinst.c" />
- </ItemGroup>
- <ItemGroup>
- <None Include="..\..\src\coinst\xenbus_coinst.def" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <Import Project="..\configs.props" />
+
+ <PropertyGroup Label="PropertySheets">
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsApplicationForDrivers8.0</PlatformToolset>
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <DriverType>WDM</DriverType>
+ </PropertyGroup>
+ <PropertyGroup Label="Globals">
+ <Configuration>Windows Vista Debug</Configuration>
+ <Platform Condition="'$(Platform)' == ''">Win32</Platform>
+ <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
+ </PropertyGroup>
+
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{4BF41378-C01B-4002-8581-563C5F703362}</ProjectGuid>
+ </PropertyGroup>
+
+ <Import Project="..\targets.props" />
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+
+ <PropertyGroup>
+ <IncludePath>$(IncludePath)</IncludePath>
+ <RunCodeAnalysis>true</RunCodeAnalysis>
+ <EnableInf2cat>false</EnableInf2cat>
+ </PropertyGroup>
+
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>__MODULE__="XENBUS_COINST";%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <WarningLevel>EnableAllWarnings</WarningLevel>
+ <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <EnablePREfast>true</EnablePREfast>
+ <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebug</RuntimeLibrary>
+ <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='false'">MultiThreaded</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <ModuleDefinitionFile>../../src/coinst/xenbus_coinst.def</ModuleDefinitionFile>
+ <AdditionalDependencies>setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ <ResourceCompile>
+ <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ </ResourceCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
+ <ClCompile>
+ <PreprocessorDefinitions>__i386__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
+ <ClCompile>
+ <PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ </ItemDefinitionGroup>
+
+ <ItemGroup>
+ <FilesToPackage Include="$(TargetPath)" />
+ <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
+ <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\..\src\coinst\coinst.c" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="..\..\src\coinst\xenbus_coinst.def" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Windows Developer Preview Debug|Win32">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|Win32">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|Win32">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|Win32">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|Win32">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|Win32">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Debug|x64">
- <Configuration>Windows Developer Preview Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Developer Preview Release|x64">
- <Configuration>Windows Developer Preview Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Debug|x64">
- <Configuration>Windows 7 Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows 7 Release|x64">
- <Configuration>Windows 7 Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Debug|x64">
- <Configuration>Windows Vista Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Windows Vista Release|x64">
- <Configuration>Windows Vista Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}</ProjectGuid>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <ProjectName>xenfilt</ProjectName>
- </PropertyGroup>
- <PropertyGroup Label="PropertySheets">
- <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
- <ConfigurationType>Driver</ConfigurationType>
- <DriverType>WDM</DriverType>
- <Configuration>Windows Developer Preview Debug</Configuration>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|Win32'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|Win32'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|Win32'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Debug|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Developer Preview Release|x64'" Label="Configuration">
- <TargetVersion>Windows8</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Debug|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows 7 Release|x64'" Label="Configuration">
- <TargetVersion>Windows7</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Debug|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows Vista Release|x64'" Label="Configuration">
- <TargetVersion>Vista</TargetVersion>
- <UseDebugLibraries>false</UseDebugLibraries>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
- </PropertyGroup>
- <PropertyGroup>
- <IncludePath>$(IncludePath)</IncludePath>
- <RunCodeAnalysis>true</RunCodeAnalysis>
- <EnableInf2cat>false</EnableInf2cat>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__i386__;__MODULE__="XENFILT";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- </ClCompile>
- <Link>
- <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
- <AdditionalDependencies>$(SolutionDir)$(ConfigurationName)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <EnableCOMDATFolding>false</EnableCOMDATFolding>
- </Link>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>__x86_64__;__MODULE__="XENFILT";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
- <MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnablePREfast>true</EnablePREfast>
- </ClCompile>
- <ResourceCompile>
- <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <AdditionalDependencies>$(SolutionDir)$(Platform)\$(ConfigurationName)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <EnableCOMDATFolding>false</EnableCOMDATFolding>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <FilesToPackage Include="$(TargetPath)" />
- <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
- <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="../../src/xenfilt/driver.c" />
- <ClCompile Include="../../src/xenfilt/fdo.c" />
- <ClCompile Include="../../src/xenfilt/emulated.c" />
- <ClCompile Include="../../src/xenfilt/pdo.c" />
- <ClCompile Include="../../src/xenfilt/registry.c" />
- <ClCompile Include="../../src/xenfilt/thread.c" />
- </ItemGroup>
- <ItemGroup>
- <ResourceCompile Include="..\..\src\xenfilt\xenfilt.rc" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <Import Project="..\configs.props" />
+
+ <PropertyGroup Label="Globals">
+ <Configuration>Windows Vista Debug</Configuration>
+ <Platform Condition="'$(Platform)' == ''">Win32</Platform>
+ <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
+ </PropertyGroup>
+ <PropertyGroup Label="PropertySheets">
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver8.0</PlatformToolset>
+ <ConfigurationType>Driver</ConfigurationType>
+ <DriverType>WDM</DriverType>
+ </PropertyGroup>
+
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}</ProjectGuid>
+ </PropertyGroup>
+
+ <Import Project="..\targets.props" />
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+
+ <PropertyGroup>
+ <IncludePath>..\..\include;$(IncludePath)</IncludePath>
+ <RunCodeAnalysis>true</RunCodeAnalysis>
+ <EnableInf2cat>false</EnableInf2cat>
+ <IntDir>..\$(ProjectName)\$(ConfigurationName)\$(Platform)\</IntDir>
+ <OutDir>..\$(ConfigurationName)\$(Platform)\</OutDir>
+ </PropertyGroup>
+
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <PreprocessorDefinitions>__MODULE__="XENFILT";POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <WarningLevel>EnableAllWarnings</WarningLevel>
+ <DisableSpecificWarnings>4711;4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <EnablePREfast>true</EnablePREfast>
+ </ClCompile>
+ <Link>
+ <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
+ <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <EnableCOMDATFolding>false</EnableCOMDATFolding>
+ </Link>
+ <Inf>
+ <SpecifyArchitecture>true</SpecifyArchitecture>
+ <SpecifyDriverVerDirectiveVersion>true</SpecifyDriverVerDirectiveVersion>
+ <TimeStamp>$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER)</TimeStamp>
+ <EnableVerbose>true</EnableVerbose>
+ </Inf>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
+ <ClCompile>
+ <PreprocessorDefinitions>__i386__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Inf>
+ <Architecture>x86</Architecture>
+ </Inf>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
+ <ClCompile>
+ <PreprocessorDefinitions>__x86_64__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Inf>
+ <Architecture>amd64</Architecture>
+ </Inf>
+ </ItemDefinitionGroup>
+
+ <ItemGroup>
+ <FilesToPackage Include="$(TargetPath)" />
+ <FilesToPackage Include="$(OutDir)$(TargetName).pdb" />
+ <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="../../src/xenfilt/driver.c" />
+ <ClCompile Include="../../src/xenfilt/fdo.c" />
+ <ClCompile Include="../../src/xenfilt/emulated.c" />
+ <ClCompile Include="../../src/xenfilt/pdo.c" />
+ <ClCompile Include="../../src/xenfilt/registry.c" />
+ <ClCompile Include="../../src/xenfilt/thread.c" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="..\..\src\xenfilt\xenfilt.rc" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
return pipe.close()
-
class msbuild_failure(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
-def msbuild(batfile, projdir, name, sdv_arg):
+def msbuild(name, target, sdv_arg):
cwd = os.getcwd()
- os.environ['CONFIGURATION'] = 'Windows Developer Preview Release'
- os.environ['SDV_PROJ'] = name
- os.environ['SDV_ARG'] = sdv_arg
+ os.environ['CONFIGURATION'] = 'Windows 8 Release'
+ os.environ['PLATFORM'] = 'x64'
+ os.environ['TARGET'] = target
+ os.environ['BUILD_FILE'] = name + '.vcxproj'
+ os.environ['BUILD_ARGS'] = sdv_arg
os.chdir('proj')
- os.chdir(projdir)
- status = shell(batfile)
+ os.chdir(name)
+ status = shell('..\\msbuild.bat')
os.chdir(cwd)
# if (status != None):
# raise msbuild_failure(sdv_arg)
+def archive(filename, files, tgz=False):
+ access='w'
+ if tgz:
+ access='w:gz'
+ tar = tarfile.open(filename, access)
+ for name in files :
+ try:
+ print('adding '+name)
+ tar.add(name)
+ except:
+ pass
+ tar.close()
if __name__ == '__main__':
- msbuild('..\msbuild_sdv.bat', 'xenbus', 'xenbus.vcxproj', '/clean')
-
- msbuild('..\msbuild_sdv.bat', 'xenbus', 'xenbus.vcxproj', '/check:default.sdv')
-
- msbuild('..\msbuild_dvl.bat', 'xenbus', 'xenbus.vcxproj', '')
+ msbuild('xen', 'sdv', '/p:Inputs="/clean"')
+ msbuild('xenfilt', 'sdv', '/p:Inputs="/clean"')
+ msbuild('xenbus', 'sdv', '/p:Inputs="/clean"')
+ msbuild('xen', 'sdv', '/p:Inputs="/check:default.sdv"')
+ msbuild('xenfilt', 'sdv', '/p:Inputs="/check:default.sdv"')
+ msbuild('xenbus', 'sdv', '/p:Inputs="/check:default.sdv"')
+ msbuild('xen', 'dvl', '')
+ msbuild('xenfilt', 'dvl', '')
+ msbuild('xenbus', 'dvl', '')
(VOID) KeDeregisterBugCheckCallback(&DebugBugCheckCallbackRecord);
}
+#pragma warning(push)
+#pragma warning(disable: 6320) // Exception-filter expression is the constant EXCEPTION_EXECUTE_HANDLER. This might mask exceptions that were not intended to be handled.
+#pragma warning(disable: 6322) // Empty _except block.
+
static DECLSPEC_NOINLINE VOID
DebugDumpExceptionRecord(
IN PEXCEPTION_RECORD Exception
}
}
+#pragma warning(pop)
+
KBUGCHECK_CALLBACK_ROUTINE DebugBugCheckCallback;
VOID
// To enable you need to customize /opt/xensource/libexec/qemu-dm-wrapper in dom0 to add the following
// arguments to the qemu command line:
//
-// -priv -dumpdir <directory> -dumpquota <quota>
+// -dumpdir <directory> -dumpquota <quota>
//
// <directory> is best pointed at an empty directory. Files will be created with numeric names starting at 0.
// <quota> should be the total size in MB of all possible crash dump files. I.e. once sufficient crash dumps have
PKBUGCHECK_DUMP_IO DumpIo = (PKBUGCHECK_DUMP_IO)ReasonSpecificData;
UNREFERENCED_PARAMETER(ReasonSpecificDataLength);
-
+
ASSERT3U(Reason, ==, KbCallbackDumpIo);
ASSERT3P(Record, ==, &DumpBugCheckReasonCallbackRecord);
ASSERT(DumpIo != NULL);
ASSERT(Character != '\0');
}
- if (isdigit(Character)) {
+ if (isdigit((unsigned char)Character)) {
ZeroPrefix = (Character == '0') ? TRUE : FALSE;
- while (isdigit(Character)) {
+ while (isdigit((unsigned char)Character)) {
Pad = (Pad * 10) + (Character - '0');
Character = *Format++;
ASSERT(Character != '\0');
#ifndef _XEN_LOG_H
#define _XEN_LOG_H
+#define __MODULE__ "XEN"
+
#include <ntddk.h>
#include <stdarg.h>
-; Copyright 2011 Citrix Systems Inc. All rights reserved.
-; Use is subject to license terms.
-;
+; Copyright (c) Citrix Systems Inc.
+; All rights reserved.
+;
+; Redistribution and use in source and binary forms,
+; with or without modification, are permitted provided
+; that the following conditions are met:
+;
+; * Redistributions of source code must retain the above
+; copyright notice, this list of conditions and the
+; following disclaimer.
+; * Redistributions in binary form must reproduce the above
+; copyright notice, this list of conditions and the
+; following disclaimer in the documentation and/or other
+; materials provided with the distribution.
+;
+; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+; CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+; SUCH DAMAGE.
[Version]
Signature="$Windows NT$"
status = RangeSetPut(Balloon->RangeSet,
(ULONGLONG)Balloon->PfnArray[Index],
(ULONGLONG)Balloon->PfnArray[Next]);
- ASSERT(NT_SUCCESS(status));
+ if (!NT_SUCCESS(status))
+ break;
Index = Next + 1;
}
+ Requested = Index;
Count = __BalloonDecreaseReservation(Requested, Balloon->PfnArray);
Count = 0;
Abort = FALSE;
- while (Count < Requested) {
+ while (Count < Requested && !Abort) {
ULONG ThisTime = (ULONG)__min(Requested - Count, BALLOON_PFN_ARRAY_SIZE);
ULONG Populated;
ULONG Freed;
#define DMA_CONTEXT_BUCKET(_Key) \
(((ULONG_PTR)(_Key) >> 8) % NR_CONTEXT_BUCKETS)
+#pragma warning(suppress: 28167) // changes the IRQL and does not restore the IRQL before it exits
static FORCEINLINE KIRQL
__DmaAcquireLock(
IN PKSPIN_LOCK Lock
return Irql;
}
+#pragma warning(suppress: 28167) // changes the IRQL and does not restore the IRQL before it exits
static FORCEINLINE VOID
__DmaReleaseLock(
IN PKSPIN_LOCK Lock,
IN PXENBUS_DMA_CONTEXT Context
)
{
- PVOID Key = Context->Key;
+ PVOID Key;
KIRQL Irql;
ULONG_PTR Bucket;
PXENBUS_DMA_CONTEXT *Entry;
+ ASSERT(Context != NULL);
+ Key = Context->Key;
+
Irql = __DmaAcquireLock(&DmaContextLock);
Bucket = DMA_CONTEXT_BUCKET(Key);
Entry = &DmaContext[Bucket];
__FreePoolWithTag(Buffer, EVTCHN_TAG);
}
+#pragma warning(push)
+#pragma warning(disable: 28230)
+#pragma warning(disable: 28285)
+
+_IRQL_requires_max_(HIGH_LEVEL) // HIGH_LEVEL is best approximation of DIRQL
+_IRQL_saves_
+_IRQL_raises_(HIGH_LEVEL) // HIGH_LEVEL is best approximation of DIRQL
+static FORCEINLINE KIRQL
+__AcquireInterruptLock(
+ _Inout_ PKINTERRUPT Interrupt
+ )
+{
+ return KeAcquireInterruptSpinLock(Interrupt);
+}
+
+_IRQL_requires_(HIGH_LEVEL) // HIGH_LEVEL is best approximation of DIRQL
+static FORCEINLINE VOID
+__ReleaseInterruptLock(
+ _Inout_ PKINTERRUPT Interrupt,
+ _In_ _IRQL_restores_ KIRQL Irql
+ )
+{
+#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
+ KeReleaseInterruptSpinLock(Interrupt, Irql);
+}
+
+#pragma warning(pop)
+
static FORCEINLINE NTSTATUS
__EvtchnOpenFixed(
IN PXENBUS_EVTCHN_DESCRIPTOR Descriptor,
LocalPort = Descriptor->LocalPort;
- (VOID) KeAcquireInterruptSpinLock(Context->InterruptObject);
+ (VOID) __AcquireInterruptLock(Context->InterruptObject);
ASSERT3P(Context->Descriptor[LocalPort], ==, NULL);
Context->Descriptor[LocalPort] = Descriptor;
InsertTailList(&Context->List, &Descriptor->ListEntry);
-#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
- KeReleaseInterruptSpinLock(Context->InterruptObject, DISPATCH_LEVEL);
+ __ReleaseInterruptLock(Context->InterruptObject, DISPATCH_LEVEL);
KeLowerIrql(Irql);
BOOLEAN Pending;
if (!Locked)
- Irql = KeAcquireInterruptSpinLock(Context->InterruptObject);
+ Irql = __AcquireInterruptLock(Context->InterruptObject);
if (Descriptor->Active) {
Pending = SHARED_INFO(EvtchnUnmask,
if (!Locked)
#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
- KeReleaseInterruptSpinLock(Context->InterruptObject, Irql);
+ __ReleaseInterruptLock(Context->InterruptObject, Irql);
return Pending;
}
KIRQL Irql;
BOOLEAN DoneSomething;
- Irql = KeAcquireInterruptSpinLock(Context->InterruptObject);
+ Irql = __AcquireInterruptLock(Context->InterruptObject);
if (Descriptor->Active) {
DoneSomething = __EvtchnCallback(Context, Descriptor);
}
#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
- KeReleaseInterruptSpinLock(Context->InterruptObject, Irql);
+ __ReleaseInterruptLock(Context->InterruptObject, Irql);
return DoneSomething;
}
{
KIRQL Irql;
- Irql = KeAcquireInterruptSpinLock(Context->InterruptObject);
+ Irql = __AcquireInterruptLock(Context->InterruptObject);
RemoveEntryList(&Descriptor->ListEntry);
RtlZeroMemory(&Descriptor->ListEntry, sizeof (LIST_ENTRY));
}
#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
- KeReleaseInterruptSpinLock(Context->InterruptObject, Irql);
+ __ReleaseInterruptLock(Context->InterruptObject, Irql);
Descriptor->LocalPort = 0;
RtlZeroMemory(&Descriptor->Parameters, sizeof (EVTCHN_PARAMETERS));
__FreePoolWithTag(Buffer, FDO_TAG);
}
+#pragma warning(push)
+#pragma warning(disable: 28230)
+#pragma warning(disable: 28285)
+
+_IRQL_requires_max_(HIGH_LEVEL) // HIGH_LEVEL is best approximation of DIRQL
+_IRQL_saves_
+_IRQL_raises_(HIGH_LEVEL) // HIGH_LEVEL is best approximation of DIRQL
+static FORCEINLINE KIRQL
+__AcquireInterruptLock(
+ _Inout_ PKINTERRUPT Interrupt
+ )
+{
+ return KeAcquireInterruptSpinLock(Interrupt);
+}
+
+_IRQL_requires_(HIGH_LEVEL) // HIGH_LEVEL is best approximation of DIRQL
+static FORCEINLINE VOID
+__ReleaseInterruptLock(
+ _Inout_ PKINTERRUPT Interrupt,
+ _In_ _IRQL_restores_ KIRQL Irql
+ )
+{
+#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
+ KeReleaseInterruptSpinLock(Interrupt, Irql);
+}
+
+#pragma warning(pop)
+
static FORCEINLINE VOID
__FdoSetDevicePnpState(
IN PXENBUS_FDO Fdo,
PXENBUS_FDO Fdo = Context;
PKEVENT Event;
BOOLEAN Active;
+ static ULONGLONG Maximum; // Should never change in the lifetime of the VM
NTSTATUS status;
Trace("====>\n");
for (;;) {
PCHAR Buffer;
- ULONGLONG Maximum;
ULONGLONG Target;
BOOLEAN AllowInflation;
BOOLEAN AllowDeflation;
if (__FdoGetDevicePowerState(Fdo) != PowerDeviceD0)
goto loop;
- status = STORE(Read,
- &Fdo->StoreInterface,
- NULL,
- "memory",
- "static-max",
- &Buffer);
- if (!NT_SUCCESS(status))
- goto loop;
-
- Maximum = _strtoui64(Buffer, NULL, 10) / 4;
- STORE(Free,
- &Fdo->StoreInterface,
- Buffer);
+ if (Maximum == 0) {
+ status = STORE(Read,
+ &Fdo->StoreInterface,
+ NULL,
+ "memory",
+ "static-max",
+ &Buffer);
+ if (!NT_SUCCESS(status))
+ goto loop;
+
+ Maximum = _strtoui64(Buffer, NULL, 10) / 4;
+ STORE(Free,
+ &Fdo->StoreInterface,
+ Buffer);
+ }
status = STORE(Read,
&Fdo->StoreInterface,
InterruptObject = __FdoGetInterruptObject(Fdo);
- Irql = KeAcquireInterruptSpinLock(InterruptObject);
+ Irql = __AcquireInterruptLock(InterruptObject);
Fdo->InterruptEnabled = TRUE;
-#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
- KeReleaseInterruptSpinLock(InterruptObject, Irql);
+ __ReleaseInterruptLock(InterruptObject, Irql);
}
static FORCEINLINE VOID
InterruptObject = __FdoGetInterruptObject(Fdo);
- Irql = KeAcquireInterruptSpinLock(InterruptObject);
+ Irql = __AcquireInterruptLock(InterruptObject);
Fdo->InterruptEnabled = FALSE;
-#pragma prefast(suppress:28121) // The function is not permitted to be called at the current IRQ level
- KeReleaseInterruptSpinLock(InterruptObject, Irql);
+ __ReleaseInterruptLock(InterruptObject, Irql);
}
PXENBUS_DEBUG_INTERFACE
#ifndef _XENBUS_LOG_H
#define _XENBUS_LOG_H
+#define __MODULE__ "XENBUS"
+
#include <ntddk.h>
#include <stdarg.h>
// Walk the list and create PDO filters for any new devices
for (Index = 0; Index < Count; Index++) {
+#pragma warning(suppress:6385) // Reading invalid data from 'PhysicalDeviceObject'
if (PhysicalDeviceObject[Index] != NULL) {
(VOID) PdoCreate(Fdo, PhysicalDeviceObject[Index]);
ObDereferenceObject(PhysicalDeviceObject[Index]);
#ifndef _XENFILT_LOG_H
#define _XENFILT_LOG_H
+#define __MODULE__ "XENFILT"
+
#include <ntddk.h>
#include <stdarg.h>