]>
xenbits.xensource.com Git - pvdrivers/win/xeniface.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Paul Durrant [Thu, 10 Dec 2015 12:38:28 +0000 (12:38 +0000)]
Use a DPC per XENIFACE_EVTCHN_CONTEXT for signalling to user space
The scheme of using a DPC per CPU will not work when multiple event channels
are in use since events may be lost when channels bound to the same CPU
are simultaneously pending. The problem is avoided by simply having
separate DPCs for each channel.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Rafal Wojdyla <omeg@invisiblethingslab.com>
Paul Durrant [Thu, 10 Dec 2015 11:53:15 +0000 (11:53 +0000)]
Re-synchronize registry.c with XENBUS
The registry code in XENBUS has some fixes that are not present in the
XENIFACE copy, so import the updated code from XENBUS.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Thu, 10 Dec 2015 11:38:54 +0000 (11:38 +0000)]
Re-synchronize util.h with XENBUS and use __toupper()
A recent patch introduced __tolower() and __toupper() into util.h as
replacements for tolower() and toupper() respectively as the latter do
a hidden conversion to Unicode which make then unsafe at any IRQL other
than PASSIVE_LEVEL.
This patch imports util.h from XENBUS and fixes other code to be compatible.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Wed, 25 Nov 2015 14:27:34 +0000 (14:27 +0000)]
Fix ASSERT failure
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Wed, 25 Nov 2015 14:00:44 +0000 (14:00 +0000)]
Publish distribution information to xenstore
My recent patch series to Xen added a documented path and format for
publishing information about PV driver distributions to xenstore.
This patch adds code to populate the documented path (should it exist)
with information about the XENIFACE driver package.
Suggested-by: Owen Smith <owen.smith@citrix.com>
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Wed, 25 Nov 2015 10:34:14 +0000 (10:34 +0000)]
Small whitespace fix
There was a residual hard tab in driver.c
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Owen Smith [Tue, 17 Nov 2015 17:05:23 +0000 (17:05 +0000)]
Dont force a WMI event when reregistering a watch
When a watch is registered, the watch gets triggered. This will result
in a WMI event being fired. There is no need to manually fire a WMI
event in this case, as it can lead to the WMI event being discarded.
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Owen Smith [Thu, 29 Oct 2015 14:49:47 +0000 (14:49 +0000)]
Ensure defunct watches have NULL handles
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Owen Smith [Thu, 29 Oct 2015 14:49:46 +0000 (14:49 +0000)]
Fold __FdoD0ToD3/__FdoD3ToD0 into caller Remove redundant functions
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Owen Smith [Thu, 29 Oct 2015 14:49:45 +0000 (14:49 +0000)]
Rework Wmi setup/cleanup to always Resume/Suspend sessions
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Owen Smith [Thu, 29 Oct 2015 14:49:44 +0000 (14:49 +0000)]
Refactor Wmi header, split initialize/teardown and register/deregister
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Owen Smith [Thu, 29 Oct 2015 14:49:43 +0000 (14:49 +0000)]
Refactor WmiFireSuspendEvent
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Owen Smith [Thu, 29 Oct 2015 14:49:42 +0000 (14:49 +0000)]
Cleanup fdo dispatch entry points
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Paul Durrant [Mon, 2 Nov 2015 14:21:26 +0000 (14:21 +0000)]
Fix VS2013 build
Commit
9498b68 only dealt with VS2012 builds and broke VS2013 build. This patch
restores parity.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Mon, 2 Nov 2015 14:19:34 +0000 (14:19 +0000)]
Remove calls to KeGetCurrentProcessorNumber()
This function is not valid for group aware drivers.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Owen Smith [Fri, 30 Oct 2015 17:39:23 +0000 (17:39 +0000)]
Define NT_PROCESSOR_GROUPS for VS2012 project
Previous patch missed the obvious compatability macros provided
and used by xenbus.
Also fixes a few badly formed ASSERTions
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Rafał Wojdyła [Wed, 21 Oct 2015 05:26:44 +0000 (07:26 +0200)]
Bind to the latest XENBUS revision
Revision 0x0800000B or later is needed for STORE interface version 2 and
GNTTAB interface version 2.
Signed-off-by: Rafal Wojdyla <omeg@invisiblethingslab.com>
Rafał Wojdyła [Wed, 21 Oct 2015 05:26:32 +0000 (07:26 +0200)]
Implement new IOCTL handlers
This patch implements new store, evtchn and gnttab IOCTLs.
Handlers are split into separate files for readability.
Signed-off-by: Rafal Wojdyla <omeg@invisiblethingslab.com>
Rafał Wojdyła [Wed, 21 Oct 2015 05:26:19 +0000 (07:26 +0200)]
Define new IOCTLs for user-mode clients
IOCTL input is defined as XENIFACE_*_IN structs.
IOCTL output is defined as XENIFACE_*_OUT structs.
Signed-off-by: Rafal Wojdyla <omeg@invisiblethingslab.com>
Rafał Wojdyła [Wed, 21 Oct 2015 05:26:06 +0000 (07:26 +0200)]
Untabify the whole XENIFACE project
Signed-off-by: Rafal Wojdyla <omeg@invisiblethingslab.com>
Rafał Wojdyła [Wed, 21 Oct 2015 05:25:54 +0000 (07:25 +0200)]
Include ntifs.h instead of ntddk.h
Gnttab code uses KeStackAttachProcess which is only declared in ntifs.h
(conflicts with ntddk.h).
Signed-off-by: Rafal Wojdyla <omeg@invisiblethingslab.com>
Rafał Wojdyła [Wed, 21 Oct 2015 05:25:35 +0000 (07:25 +0200)]
Update XENBUS interface headers
Also add headers needed for next patches in the series.
Signed-off-by: Rafal Wojdyla <omeg@invisiblethingslab.com>
Paul Durrant [Thu, 22 Oct 2015 15:22:02 +0000 (16:22 +0100)]
Add a registry override to veto driver installations
There are certain cases where a local installer package may wish to
prevent Windows Update installations of drivers. This can be achieved by
having the co-installer check for a registry value and fail it's pre-install
phase if the value is present.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Thu, 22 Oct 2015 13:56:00 +0000 (14:56 +0100)]
Change coinstaller log level to TXTLOG_WARNING
Windows 10 does not enable logging of TXTLOG_DETAILS in setupapi.dev.log by
default, so use TXTLOG_WARNING to make sure the messages appear.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 8 Sep 2015 16:59:49 +0000 (17:59 +0100)]
Parameterize vendor prefix and PCI device id
The XenServer PV vendor prefix ('XS') and PCI device (C000) are still
hard-coded into the XENIFACE package. These need to be stripped out and
replaced by values that can be customized at build time. This patch does
that.
The patch also reverts to building version.h and customizing xeniface.inf
directly in build.py.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 4 Sep 2015 15:25:01 +0000 (16:25 +0100)]
Update to 8.2.0
I also removed CHANGELOG as it's pretty useless and will likely become
misleading.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 24 Jul 2015 11:49:14 +0000 (12:49 +0100)]
Update docs and set version to 8.1.0
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 17 Jul 2015 15:56:19 +0000 (16:56 +0100)]
Remove use of subscriber keys from co-installer
They are no longer necessary. The co-installer actually does nothing now
and can probably be removed.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 17 Jul 2015 15:52:01 +0000 (16:52 +0100)]
Update bindings
A recent change to XENBUS to introduce a new unplug mechanism was
incompatible with older drivers so the PDO revisions were deliberately
changed. This patch brings XENIFACE up to date with the new revision
number.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Wed, 8 Jul 2015 13:28:40 +0000 (14:28 +0100)]
Update bindings
Refresh the interface headers and add the XENBUS major version into
the top byte of the revision, since this is now used to avoid namespace
conflicts.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Thu, 12 Mar 2015 11:37:11 +0000 (11:37 +0000)]
Set script file execute permissions
The lack of execute persmission causes clones done using cygwin git to
leave scripts in a non-executable state.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Mon, 2 Mar 2015 17:47:40 +0000 (17:47 +0000)]
Fix VS2013 SDV failures
Also update the assert.h header.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 13 Jan 2015 16:42:33 +0000 (16:42 +0000)]
Move interface subscription code into co-installer
Interface subscription is better handled at package installation time and
therefore the co-installer is the right place for it to live.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 13 Jan 2015 16:07:25 +0000 (16:07 +0000)]
Add a co-installer
The co-installer does not do anything as yet. Functionality will be added in
a subsequent patch.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 13 Jan 2015 16:50:48 +0000 (16:50 +0000)]
Fix line endings
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 19 Dec 2014 15:45:32 +0000 (15:45 +0000)]
Make sure INF gets re-built each time
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 19 Dec 2014 13:21:09 +0000 (13:21 +0000)]
Make sure version header gets re-built each time
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 7 Oct 2014 14:12:57 +0000 (15:12 +0100)]
Fix line endings
Files checked into the repository should use unix line endings
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 7 Oct 2014 14:10:54 +0000 (15:10 +0100)]
Fix OBJECT_PREFIX and PRODUCT_NAME substitution
There were missing trailing '@' characters causing substitution to fail.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Thu, 25 Sep 2014 15:17:01 +0000 (16:17 +0100)]
Reduce spam from build.py
We don't the verbose prints when deciding whether we're using vs2012 or 2013.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Thu, 25 Sep 2014 14:06:31 +0000 (15:06 +0100)]
Don't use universal_newlines=True in subprocess.Popen()
For some versions of python this appears to cause corruption of the
output byte string by forcibly decoding with the wrong encoding.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Ben Chalmers [Tue, 19 Aug 2014 09:55:38 +0000 (10:55 +0100)]
Support Visual Studio 2013 & WDK 8.1
Signed-off-by: Ben Chalmers <ben.chalmers@citrix.com>
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 15 Aug 2014 13:22:17 +0000 (14:22 +0100)]
Update branding
Remove the use of the 'XenServer' product name except where it is
still appropriate.
Remove use of 'Citrix' from all places except source file
copyrights.
Allow company and product name to be set at build time.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 15 Aug 2014 10:14:37 +0000 (11:14 +0100)]
Fix/suppress prefast warnings
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 22 Jul 2014 14:28:56 +0000 (15:28 +0100)]
Implement new API version scheme
This patch changes the way APIs work in an incompatible way. (See README.md
for details).
The patch also includes a *lot* of code tidying and movement and as such
is not really suitable for review as a patch; the resulting code should
itself be reviewed.
Given the scale of the change, the major version number has been revised to
8 and other version numbers reset to zero.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Tue, 25 Mar 2014 11:09:31 +0000 (11:09 +0000)]
Merge pull request #12 from benchalmers/sdv
Add SDV to the standard build
Ben Chalmers [Tue, 25 Mar 2014 11:02:59 +0000 (11:02 +0000)]
Add SDV to the standard build
Paul Durrant [Tue, 28 Jan 2014 16:53:21 +0000 (08:53 -0800)]
Merge pull request #11 from benchalmers/CP-7374
[CP-7374] Port UTC Hosttime / timezone support to lite agent
Ben Chalmers [Mon, 27 Jan 2014 09:59:18 +0000 (09:59 +0000)]
[CP-7374] Bugfixes to lite agent UTC hosttime code
Cope with WoW64
Cope with failing to read a DWORD from xenstore
Reorder some misleading logging
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Ben Chalmers [Thu, 16 Jan 2014 13:09:52 +0000 (13:09 +0000)]
Merge
Ben Chalmers [Mon, 13 Jan 2014 10:18:14 +0000 (02:18 -0800)]
Merge pull request #10 from benchalmers/cp-7391-2
[CP-7391] Ensure new directories are created when copying release binari...
Approved-By Ben Chalmers <Ben.Chalmers@citrix.com>
Ben Chalmers [Mon, 13 Jan 2014 10:13:59 +0000 (10:13 +0000)]
[CP-7391] Ensure new directories are created when copying release binaries too
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Paul Durrant [Mon, 13 Jan 2014 09:56:53 +0000 (01:56 -0800)]
Merge pull request #9 from benchalmers/cp-7391-2
[CP-7391] Ensure new directories are created when copying binaries
Ben Chalmers [Mon, 13 Jan 2014 09:38:18 +0000 (09:38 +0000)]
[CP-7391] Ensure new directories are created when copying binaries
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Paul Durrant [Thu, 9 Jan 2014 09:29:15 +0000 (01:29 -0800)]
Merge pull request #8 from benchalmers/ca-119964
[CA-119964] Remove a null dereferece which causes an exception
Ben Chalmers [Thu, 9 Jan 2014 08:46:05 +0000 (08:46 +0000)]
[CA-119964] Remove a null dereferece which causes an exception
Also:
Free a XenStore allocation using XSFree
Spell XenServer correctly
Remove the debug eventlog message on shutdown (messages on resume from
suspend, wmi failure and unexpected error conditions remain as these
will be useful for issue identification)
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Ben Chalmers [Fri, 3 Jan 2014 14:41:23 +0000 (06:41 -0800)]
Merge pull request #7 from benchalmers/ca-119964
[CA-119964] Trap exceptions and recover gracefully
Approved-by: Ben Chalmers <ben.chalmers@citrix.com>
Ben Chalmers [Fri, 3 Jan 2014 14:39:28 +0000 (14:39 +0000)]
[CA-119964] Trap exceptions and recover gracefully
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Ben Chalmers [Thu, 2 Jan 2014 10:05:02 +0000 (02:05 -0800)]
Merge pull request #6 from benchalmers/ca-119964
Ca 119964 Lite agent changes to log more errors when WMI watches are received
Approved by Ben Chalmers <ben.chalmers@citrix.com>
Ben Chalmers [Thu, 2 Jan 2014 09:27:40 +0000 (09:27 +0000)]
[CA-119964] Do not fail when WMI Remove does not provide a respose object
This is the expected behavior - it never provides a response object
(Also add some additional logging to help spot reasons for failure)
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Ben Chalmers [Tue, 31 Dec 2013 11:13:15 +0000 (11:13 +0000)]
[CAR-1423] Port UTC hostime / timezone support to lite agent
Ben Chalmers [Mon, 30 Dec 2013 14:15:40 +0000 (14:15 +0000)]
Merge branch 'master' of ssh://github.com/xenserver/win-xeniface into ca-119964
Ben Chalmers [Mon, 30 Dec 2013 14:00:06 +0000 (14:00 +0000)]
[ca-119964] Store LiteAgent symbols in xeniface tarfile
Ben Chalmers [Mon, 30 Dec 2013 09:33:06 +0000 (09:33 +0000)]
[CA-119964] Add (excessive) event logging to id potential WMI failures
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Paul Durrant [Fri, 13 Dec 2013 14:31:11 +0000 (06:31 -0800)]
Merge pull request #5 from benchalmers/notabs2
Standardise on spaces, not tabs, for indentation in lite agent
Ben Chalmers [Fri, 13 Dec 2013 14:27:36 +0000 (14:27 +0000)]
Standardise on spaces, not tabs, for indentation in lite agent
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Paul Durrant [Fri, 13 Dec 2013 14:16:34 +0000 (06:16 -0800)]
Merge pull request #4 from benchalmers/ca-122026
[CA-122026] Lite aganet stability improvements
Ben Chalmers [Fri, 13 Dec 2013 13:38:54 +0000 (13:38 +0000)]
[CA-122026] Lite aganet stability improvements
Do not crash when permissions stop you advertising features
Cope with reading fron 0 length xenstore entries
Use XsLog not XsLogMsg
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Paul Durrant [Tue, 5 Nov 2013 10:03:39 +0000 (02:03 -0800)]
Merge pull request #2 from benchalmers/ca-119899
[CA-119899] Fix error reporting so that xapi kicks occur correctly
Ben Chalmers [Mon, 4 Nov 2013 16:48:18 +0000 (16:48 +0000)]
[CA-119899] Fix error reporting so that xapi kicks occur correctly
Ben Chalmers [Mon, 14 Oct 2013 14:43:02 +0000 (07:43 -0700)]
Merge pull request #1 from benchalmers/upstream-cp-6209
[CP-6209] Add the lite guest aganet to the xeniface build
Approved-By: Ben Chalmers <ben.chalmers@citrix.com>
Ben Chalmers [Mon, 14 Oct 2013 12:26:45 +0000 (13:26 +0100)]
Merge branch 'cp-6209-new3' into cp-6209-new
Ben Chalmers [Thu, 26 Sep 2013 14:25:26 +0000 (15:25 +0100)]
[CP-6209] Initial version of the lite guest agent
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Paul Durrant [Tue, 1 Oct 2013 13:31:31 +0000 (14:31 +0100)]
New README.md and INSTALL.md.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 27 Sep 2013 12:54:49 +0000 (13:54 +0100)]
Update build to reflect version
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Fri, 27 Sep 2013 12:53:57 +0000 (13:53 +0100)]
Update to 7.2.0
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Mon, 9 Sep 2013 16:20:38 +0000 (17:20 +0100)]
Fix things for upstream
Modified the INF file for the new binding and fixed the branding there and
in xeniface.rc. Also switched over to test-signing.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Paul Durrant [Mon, 9 Sep 2013 14:14:21 +0000 (15:14 +0100)]
Remove redundant file
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Ben Chalmers [Thu, 11 Jul 2013 08:13:08 +0000 (09:13 +0100)]
[CP-5276] Move suspend and resume watches so they only happen on system power changes
Ben Chalmers [Tue, 9 Jul 2013 09:35:26 +0000 (10:35 +0100)]
[CP-5276] Suspend and resume watches on power transitions
Ben Chalmers [Fri, 5 Jul 2013 13:48:20 +0000 (14:48 +0100)]
Initial commit of fully open xeniface code
Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Ben Chalmers [Tue, 28 May 2013 11:10:07 +0000 (12:10 +0100)]
[CP-4696] Git repository created for xeniface