Xenbus #18

XenBus
Reserve an entry of the grant table for the crash kernel (SCTX-1421)

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
xenbus #18 xenvif #17 xennet #14 xenvbd #16

XENBUS
Handle SDV scan and refine
Re-order refine because it vapourizes the SDV summary log
Refinements to build.py
Uncomment actual build!
Add missing file
Add SDV to normal driver build
Re-worked GNTTAB

XENVIF
Re-order refine because it vapourizes the SDV summary log
Remove IP helper linkage (and hence dependency on netio.sys)
Add SDV to normal driver build
Handle SDV scan and refine
Introduce granter abstraction
Allocate grant references as needed rather than up-front.
Add missing argument to GranterGetReference().
Switch to new GNTTAB interface.

XENNET
Handle SDV scan and refine
Build/SDV refinements

XENVBD
[SCTX-1718] Set DisableCDDB and DontStartRawDevices to 0 before rebooting,
Dont attempt to read values before setting to 0
Fix a few build warnings
Switch to new GNTTAB interface.
Rename XENVBD_CONTEXT to XENVBD_MAPPING to better describe its use
Update blkif.h to include INDIRECT definitions
Track BLKIF_OP_{READ/WRITE} on per request basis, not per SRB
Read additional features/parameters (at appropriate state)
Track Lookaside list max allocs and failed allocs better
Split XENVBD_SEGMENT into segment data and bounce buffer context data
Split PrepareReadWrite into seperate calls for Segments and Requests
Add XENVBD_REQUEST_INDIRECT
Add missing Verbose parameter
Insert INDIRECT operations onto ring
Prepare, submit and cleanup BLKIF_OP_INDIRECT
Tidy up some Verbose and DEBUG output
Pass a tag to blkif_request_t.id instead of a raw pointer.
Zero ring slot after processing response
Enable single requests to be submitted to the ring
Remove unneeded include
Tidy up code with Granter/Notifier/BlockRing accessors
No need to lock when accessing private front ring.
Reduce calls to BlockRingPush and NotifierSend during PdoSubmitPrepared
Tidy up REQUEST preparation code,
Split XENVBD_REQUEST into unioned parts by BLKIF_OP_*
Refactor to improve code clarity
Add handler for SCSIOP_UNMAP, translating to BLKIF_OP_DISCARD
Wrap lookaside list access to an inline structure
Manage SrbStatus better.

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Merge pull request #43 from benchalmers/driverupdate2

xenbus #18 xenvif #17 xennet #14 xenvbd #16

Approved-By: ben.chalmers@citrix.com
XENVIF #29

Remove erroneous #if 0s
Re-order refine because it vapourizes the SDV summary log

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Merge pull request #44 from benchalmers/xenvif29

XENVIF #29

Approved-By: Ben.Chalmers@citrix.com
XENVBD #17 XENBUS #26

XENVBD
Fix BSOD caused by KeWaitForMultipleObjects()

XENBUS
Filter dbgprint logging more aggressively and provide a start option

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Merge pull request #45 from benchalmers/vbd17bus26

XENVBD #17 XENBUS #26

Approved-By: Ben.Chalmers@citrix.com
XENVIF #32

XENVIF
Track eject request state in PDO
Implement proper reference counting in the NETIO interface

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
XENVIF #32

Implement proper reference counting in the NETIO interface, and
Track eject request state in PDO
Merge pull request #46 from benchalmers/xenvif32

XENVIF #32

Also includes changes:

Improve the way that assertions are handled for free builds
Use a timer rather than a thread for pool reap
Fix SDV
XENBUS #28

Add error path to RangeSetPop()
Fix bug in RangeSetGet()
Fix 'unreferenced parameter' warning checked builds
Better way to ignore assertions in free builds
Various fixes in improvements to the XEX.SYS System module

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Merge pull request #47 from benchalmers/xenbus28

XENBUS #28

Approved-By: Ben.Chalmers@citrix.com
[SCTX-1104] Add WindowsPEMode to xenfilt

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Merge pull request #48 from benchalmers/xenbus29

[SCTX-1104] Add WindowsPEMode to xenfilt

Approved-By: Ben.Chalmers@citrix.com
[SCTX-1104] Windows PE Script registry entry changes

Changes the registry entries in windows PE scripts to work with the
new XenFilt WindowsPEMode

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
XENBUS #30

RangeSet fixes

- add spinlock to protect rangesets.
- add a Count value to check against empty condition in audit.
- use LONGLONG in ranges rather than ULONGLONG so that ranges can be
  invalidated by setting Start > End.

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
Merge pull request #49 from benchalmers/xenbus30

XENBUS #30

Approved-By: Ben.Chalmers@citrix.com
XENBUS #32 XENVIF #35

XENBUS
Fix RangeSet cursor problem
Add magic number and bounds checking...

XENVIF
Cope with GranterPermitAccess() failing
Fix stupid typo (and add an error warning)
Remove some debug spew on grant table allocation failures

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Merge pull request #51 from pauldu/master

XENBUS #32 XENVIF #35
XENBUS 35, XENVIF 37

XENBUS
Re-try AuxKlibQueryModuleInformation() if buffer was too small

XENVIF
Re-try AuxKlibQueryModuleInformation() if buffer was too small

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>