|
1 |
| -XenIface - The XenServer Interface Device Driver |
2 |
| -========================================== |
| 1 | +XenIface - The XenServer Interface Driver for Windows |
| 2 | +===================================================== |
3 | 3 |
|
4 |
| -XenIface is a device driver which provides userlevel applications WMI and Ioctl |
5 |
| -read and write access to information provided to the guest domain by |
6 |
| -xenstore and xapi |
| 4 | +The XenIface package consists of a single device driver: |
7 | 5 |
|
8 |
| -Quick Start |
9 |
| -=========== |
| 6 | +* xeniface.sys is a driver which attaches to a virtual device created |
| 7 | + by XenBus (see https://github.com/xenserver/win-xenbus) and provides |
| 8 | + a WMI to xenstore (and also an IOCTL interface for simple xenstore |
| 9 | + read/write access). |
10 | 10 |
|
11 |
| -Prerequisites to build |
12 |
| ----------------------- |
| 11 | +Quick Start Guide |
| 12 | +================= |
13 | 13 |
|
14 |
| -* Visual Studio 2012 or later |
15 |
| -* Windows Driver Kit 8 or later |
16 |
| -* Python 3 or later |
| 14 | +Building the driver |
| 15 | +------------------- |
17 | 16 |
|
18 |
| -Environment variables used in building driver |
19 |
| ------------------------------ |
| 17 | +First you'll need a device driver build environment for Windows 8. For this |
| 18 | +you must use: |
20 | 19 |
|
21 |
| -MAJOR\_VERSION Major version number |
| 20 | +* Visual Studio 2012 (Professional or Ultimate) |
| 21 | +* Windows Driver Kit 8 |
22 | 22 |
|
23 |
| -MINOR\_VERSION Minor version number |
| 23 | +(See http://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx). You |
| 24 | +may find it useful to install VirtualCloneDrive from http://www.slysoft.com |
| 25 | +as Visual Studio is generally supplied in ISO form. |
24 | 26 |
|
25 |
| -MICRO\_VERSION Micro version number |
| 27 | +Install Visual Studio first (you only need install MFC for C++) and then |
| 28 | +the WDK. Set an environment variable called VS to the base of the Visual |
| 29 | +Studio Installation (e.g. C:\Program Files\Microsoft Visual Studio 11.0) and |
| 30 | +a variable called KIT to the base of the WDK |
| 31 | +(e.g. C:\Program Files\Windows Kits\8.0). Also set an environment variable |
| 32 | +called SYMBOL\_SERVER to point at a location where driver symbols can be |
| 33 | +stored. This can be local directory e.g. C:\Symbols. |
26 | 34 |
|
27 |
| -BUILD\_NUMBER Build number |
| 35 | +Next you'll need a 3.x version of python (which you can get from |
| 36 | +http://www.python.org). Make sure python.exe is somewhere on your default |
| 37 | +path. |
28 | 38 |
|
29 |
| -SYMBOL\_SERVER location of a writable symbol server directory |
| 39 | +Now fire up a Command Prompt and navigate to the base of your git repository. |
| 40 | +At the prompt type: |
30 | 41 |
|
31 |
| -KIT location of the Windows driver kit |
| 42 | + build.py checked |
32 | 43 |
|
33 |
| -PROCESSOR\_ARCHITECTURE x86 or x64 |
| 44 | +This will create a debug build of the driver. To create a non-debug build |
| 45 | +type: |
34 | 46 |
|
35 |
| -VS location of visual studio |
| 47 | + build.py free |
36 | 48 |
|
37 |
| -Commands to build |
38 |
| ------------------ |
| 49 | +Installing the driver |
| 50 | +--------------------- |
39 | 51 |
|
40 |
| - git clone http://github.com/xenserver/win-xeniface |
41 |
| - cd win-xeniface |
42 |
| - .\\build.py [checked | free] |
| 52 | +See INSTALL.md |
43 | 53 |
|
| 54 | +Miscellaneous |
| 55 | +============= |
44 | 56 |
|
45 |
| -Device tree diagram |
46 |
| -------------------- |
| 57 | +For convenience the source repository includes some other scripts: |
| 58 | + |
| 59 | +kdfiles.py |
| 60 | +---------- |
| 61 | + |
| 62 | +This generates two files called kdfiles32.txt and kdfiles64.txt which can |
| 63 | +be used as map files for the .kdfiles WinDBG command. |
47 | 64 |
|
48 |
| - XenIface |
49 |
| - | |
50 |
| - XenBus |
51 |
| - | |
52 |
| - PCI Bus |
| 65 | +sdv.py |
| 66 | +------ |
53 | 67 |
|
54 |
| -See Also |
55 |
| -======== |
| 68 | +This runs Static Driver Verifier on the source. |
56 | 69 |
|
57 |
| -win-xeniface\WmiDocumentation.txt for documentation of the WMI interface |
| 70 | +clean.py |
| 71 | +-------- |
58 | 72 |
|
| 73 | +This removes any files not checked into the repository and not covered by |
| 74 | +the .gitignore file. |
0 commit comments