win-pvdrivers
changeset 1075:5e8aeb18279c
Add export methods to retrieve and set the hypercall stubs for the dump_xenpci driver
author | James Harper <james.harper@bendigoit.com.au> |
---|---|
date | Mon Dec 09 13:30:14 2013 +1100 (2013-12-09) |
parents | 336885e18ad6 |
children | 0243e3b47f36 |
files | xenpci/xenpci.def xenpci/xenpci_export.c |
line diff
1.1 --- a/xenpci/xenpci.def Thu Nov 21 20:29:33 2013 +1100 1.2 +++ b/xenpci/xenpci.def Mon Dec 09 13:30:14 2013 +1100 1.3 @@ -28,6 +28,9 @@ EXPORTS 1.4 XnReadInt64 1.5 XnWriteInt64 1.6 1.7 + XnGetHypercallStubs 1.8 + XnSetHypercallStubs 1.9 + 1.10 XnDebugPrint 1.11 XnPrintDump 1.12
2.1 --- a/xenpci/xenpci_export.c Thu Nov 21 20:29:33 2013 +1100 2.2 +++ b/xenpci/xenpci_export.c Mon Dec 09 13:30:14 2013 +1100 2.3 @@ -402,6 +402,18 @@ XnGetValue(XN_HANDLE handle, ULONG value 2.4 } 2.5 } 2.6 2.7 +//externPVOID hypercall_stubs = NULL; 2.8 + 2.9 +PVOID 2.10 +XnGetHypercallStubs() { 2.11 + return hypercall_stubs; 2.12 +} 2.13 + 2.14 +VOID 2.15 +XnSetHypercallStubs(PVOID _hypercall_stubs) { 2.16 + hypercall_stubs = _hypercall_stubs; 2.17 +} 2.18 + 2.19 NTSTATUS 2.20 XnDebugPrint(PCHAR format, ...) { 2.21 NTSTATUS status;