Reserve an entry of the grant table for the crash kernel. Not doing this
seems to cause crashdumps to fail in some circumstances.

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

Reserve an entry of the grant table for the crash kernel. Not doing this
Re-worked GNTTAB.

The new version of the interface no longer exposes raw references to clients.
They are now behind an opaque XENVIF_GNTTAB_DESCRIPTOR, analogous to the
XENVIF_EVTCHN_DESCRIPTOR which hides raw ports from clients.
The allocator is also more sophisticated. It uses a pool with per-cpu
magazines for lockless access backed by rangesets.

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

Re-worked GNTTAB.
Add SDV to normal driver build

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

Add SDV to normal driver build
Add missing file

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

Add missing file
Uncomment actual build!

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

Uncomment actual build!
Refinements to build.py

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Ignore all errors from shutil.rmtree()

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Handle SDV scan and refine

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Re-order refine because it vapourizes the SDV summary log

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Filter dbgprint logging more aggressively and provide a start option
to disable the hook altogether.

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

Filter dbgprint logging more aggressively and provide a start option

Approved-By: ben.chalmers@citrix.com
Fix bug in RangeSetGet()

If RangeSetGet() was invoked when the cursor just happened to be pointing at
the correct singleton range than that range was not removed and an ASSERT was
hit. This patch fixes that problem.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Fix 'unreferenced parameter' warning checked builds

Free builds have that warning disabled.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Better way to ignore assertions in free builds

Disabling warnings is not a great thing to do so define an inline function
to take the assertion expression as an argument and then declare its
argument to be ignored.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Various fixes in improvements to the XEX.SYS System module

- Improved error handling. Various errors were ignored before.
- Moved several globals inside scope of __SystemGetCpuInformation since
  that's the only place they are used.
- Added a call to free memory range information. It was leaked before.

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