]> xenbits.xensource.com Git - people/pauldu/xenbus.git/log
people/pauldu/xenbus.git
10 years agoTighten up rangeset auditing and add separate counts for items and ranges
Paul Durrant [Wed, 28 May 2014 12:29:51 +0000 (13:29 +0100)]
Tighten up rangeset auditing and add separate counts for items and ranges

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
10 years agoMerge pull request #27 from OwenSmith/master
Paul Durrant [Wed, 28 May 2014 12:28:09 +0000 (13:28 +0100)]
Merge pull request #27 from OwenSmith/master

Fix 0xC4 BSOD from Pool code.

10 years agoFix 0xC4 BSOD from Pool code.
Owen Smith [Wed, 28 May 2014 10:40:45 +0000 (11:40 +0100)]
Fix 0xC4 BSOD from Pool code.
__PoolTrimShared would not trim any pool allocations

Signed-off-by: Owen Smith <owen.smith@citrix.com>
10 years agoIt's not necessarily safe to access interfaces when device is not in D0
Paul Durrant [Fri, 23 May 2014 15:10:12 +0000 (16:10 +0100)]
It's not necessarily safe to access interfaces when device is not in D0

The Scan, Suspend and Balloon threads should not try to access interfaces
such as STORE when the device is not in D0 as the interfaces are not there
if the system is at S4 or higher.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
10 years agoMerge pull request #26 from pauldu/ca-135281
Ben Chalmers [Wed, 21 May 2014 15:53:15 +0000 (16:53 +0100)]
Merge pull request #26 from pauldu/ca-135281

CA-135281

Approved-By: Ben.Chalmers@citrix.com
10 years agoMerge pull request #25 from pauldu/master
Ben Chalmers [Wed, 21 May 2014 15:48:25 +0000 (16:48 +0100)]
Merge pull request #25 from pauldu/master

Add a minimum reservation feature to the pool code and use it in GNTTAB

Approved-By: Ben.Chalmers@citrix.com
10 years agoMake ballooning and suspending mutually exclusive operations
Paul Durrant [Wed, 21 May 2014 08:45:29 +0000 (09:45 +0100)]
Make ballooning and suspending mutually exclusive operations

10 years agoMerge branch 'master' of github.com:xenserver/win-xenbus
Paul Durrant [Wed, 21 May 2014 08:45:29 +0000 (09:45 +0100)]
Merge branch 'master' of github.com:xenserver/win-xenbus

11 years agoAdd a minimum reservation feature to the pool code and use it in GNTTAB
Paul Durrant [Thu, 1 May 2014 14:24:23 +0000 (15:24 +0100)]
Add a minimum reservation feature to the pool code and use it in GNTTAB

The grant table reservation is set to 32.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #24 from pauldu/master
Ben Chalmers [Thu, 1 May 2014 08:26:59 +0000 (09:26 +0100)]
Merge pull request #24 from pauldu/master

Re-try AuxKlibQueryModuleInformation() if buffer was too small

Approved-By: Ben Chalmers <Ben.Chalmers@citrix.com>
11 years agoRe-try AuxKlibQueryModuleInformation() if buffer was too small
Paul Durrant [Thu, 1 May 2014 08:21:51 +0000 (09:21 +0100)]
Re-try AuxKlibQueryModuleInformation() if buffer was too small

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #23 from pauldu/ca-134511
Paul Durrant [Wed, 30 Apr 2014 11:32:03 +0000 (12:32 +0100)]
Merge pull request #23 from pauldu/ca-134511

CA-134511

11 years agoAdd magic number and bounds checking...
Paul Durrant [Wed, 30 Apr 2014 11:06:24 +0000 (12:06 +0100)]
Add magic number and bounds checking...

... for event channel and grant table descriptors.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoFix RangeSet cursor problem
Paul Durrant [Wed, 30 Apr 2014 10:47:01 +0000 (11:47 +0100)]
Fix RangeSet cursor problem

When the last or first range in the set is removed then the cursor may end
up pointing back at the anchor point. This confused RangeSetPop() so we
need to make sure that the cursor wraps round when this happens, such that
the only valid reason for the cursor to ever point at the anchor is when
the set goes empty.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #22 from pauldu/fist
Ben Chalmers [Tue, 29 Apr 2014 15:56:59 +0000 (16:56 +0100)]
Merge pull request #22 from pauldu/fist

FIST

Approved-By: Ben Chalmers <Ben.Chalmers@citrix.com>
11 years agoMerge branch 'master' of github.com:xenserver/win-xenbus
Paul Durrant [Tue, 29 Apr 2014 14:50:18 +0000 (15:50 +0100)]
Merge branch 'master' of github.com:xenserver/win-xenbus

11 years agoAdd FIST capability for pools
Paul Durrant [Tue, 29 Apr 2014 14:46:17 +0000 (15:46 +0100)]
Add FIST capability for pools

By setting xenstore parameters 'fist/pool/<name>/defer' to X and
'fist/pool/<name>/probability' to Y you can now cause failures of PoolGet()
such that it will fail with probability Y% after X initial invocations.
The name of the grant table pool has been set to 'gnttab' to make typing it
in more convenients, and some debug-keys output has been added to give
the PoolGet() failure count.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #21 from pauldu/master
Ben Chalmers [Tue, 29 Apr 2014 10:17:26 +0000 (11:17 +0100)]
Merge pull request #21 from pauldu/master

RangeSet fixes

Approved-By: Ben Chalmers <Ben.Chalmers@citrix.com>
11 years agoMerge pull request #20 from benchalmers/pe4
Paul Durrant [Tue, 29 Apr 2014 10:09:01 +0000 (11:09 +0100)]
Merge pull request #20 from benchalmers/pe4

[SCTX-1104] Add WindowsPEMode to xenfilt

11 years agoRangeSet fixes
Paul Durrant [Tue, 29 Apr 2014 10:03:48 +0000 (11:03 +0100)]
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: Paul Durrant <paul.durrant@citrix.com>
11 years ago[SCTX-1104] Add WindowsPEMode to xenfilt
Ben Chalmers [Fri, 25 Apr 2014 14:15:27 +0000 (15:15 +0100)]
[SCTX-1104] Add WindowsPEMode to xenfilt

ParentIdPrefixes are not avilable at Windows PE driver filtering time,
but we don't actually need them if we know emulated devices will be
unplugged, so, if ParentIdPrefix can't be read from the registry and
HKLM\System\CurrentControlSet\Services\xenfilt\WindowsPEMode is set to 1
then just set the prefix to be an empty string and continue

We never set WindowsPEMode anywhere except in the sample Windows PE
scripts, so non-WindowsPE environments are unaffected

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
11 years agoMerge pull request #19 from pauldu/master
Paul Durrant [Mon, 28 Apr 2014 08:32:37 +0000 (09:32 +0100)]
Merge pull request #19 from pauldu/master

Add error path to RangeSetPop()

11 years agoAdd error path to RangeSetPop()
Paul Durrant [Fri, 25 Apr 2014 15:40:17 +0000 (16:40 +0100)]
Add error path to RangeSetPop()

Now that RangeSetPop() is being used to backend grant table allocations
it's legitimate for it to fail.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #17 from pauldu/master
Ben Chalmers [Wed, 23 Apr 2014 13:46:35 +0000 (14:46 +0100)]
Merge pull request #17 from pauldu/master

Miscellaneous fixes and improvements

Approved-By: Ben.Chalmers@citrix.com
11 years agoVarious fixes in improvements to the XEX.SYS System module
Paul Durrant [Wed, 23 Apr 2014 09:04:59 +0000 (10:04 +0100)]
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>
11 years agoBetter way to ignore assertions in free builds
Paul Durrant [Wed, 23 Apr 2014 09:26:42 +0000 (10:26 +0100)]
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>
11 years agoFix 'unreferenced parameter' warning checked builds
Paul Durrant [Wed, 23 Apr 2014 09:02:50 +0000 (10:02 +0100)]
Fix 'unreferenced parameter' warning checked builds

Free builds have that warning disabled.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoFix bug in RangeSetGet()
Paul Durrant [Wed, 23 Apr 2014 09:00:48 +0000 (10:00 +0100)]
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>
11 years agoMerge pull request #16 from pauldu/sctx-1791
Ben Chalmers [Thu, 17 Apr 2014 12:42:04 +0000 (13:42 +0100)]
Merge pull request #16 from pauldu/sctx-1791

Filter dbgprint logging more aggressively and provide a start option

Approved-By: ben.chalmers@citrix.com
11 years agoFilter dbgprint logging more aggressively and provide a start option
Paul Durrant [Thu, 17 Apr 2014 11:46:14 +0000 (12:46 +0100)]
Filter dbgprint logging more aggressively and provide a start option
to disable the hook altogether.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoRe-order refine because it vapourizes the SDV summary log
Paul Durrant [Tue, 15 Apr 2014 16:31:52 +0000 (17:31 +0100)]
Re-order refine because it vapourizes the SDV summary log

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoHandle SDV scan and refine
Paul Durrant [Tue, 15 Apr 2014 16:06:18 +0000 (17:06 +0100)]
Handle SDV scan and refine

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoIgnore all errors from shutil.rmtree()
Paul Durrant [Tue, 15 Apr 2014 13:30:44 +0000 (14:30 +0100)]
Ignore all errors from shutil.rmtree()

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoRefinements to build.py
Paul Durrant [Tue, 15 Apr 2014 13:19:48 +0000 (14:19 +0100)]
Refinements to build.py

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #15 from pauldu/sdv
Paul Durrant [Mon, 14 Apr 2014 16:43:51 +0000 (17:43 +0100)]
Merge pull request #15 from pauldu/sdv

Uncomment actual build!

11 years agoUncomment actual build!
Paul Durrant [Mon, 14 Apr 2014 16:42:52 +0000 (17:42 +0100)]
Uncomment actual build!

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #14 from pauldu/sdv
Paul Durrant [Mon, 14 Apr 2014 16:37:13 +0000 (17:37 +0100)]
Merge pull request #14 from pauldu/sdv

Add missing file

11 years agoAdd missing file
Paul Durrant [Mon, 14 Apr 2014 16:36:35 +0000 (17:36 +0100)]
Add missing file

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #13 from pauldu/sdv
Paul Durrant [Mon, 14 Apr 2014 16:22:48 +0000 (17:22 +0100)]
Merge pull request #13 from pauldu/sdv

Add SDV to normal driver build

11 years agoAdd SDV to normal driver build
Paul Durrant [Mon, 14 Apr 2014 16:20:58 +0000 (17:20 +0100)]
Add SDV to normal driver build

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #12 from pauldu/gnttab1
Owen Smith [Mon, 14 Apr 2014 14:31:14 +0000 (15:31 +0100)]
Merge pull request #12 from pauldu/gnttab1

Re-worked GNTTAB.

11 years agoRe-worked GNTTAB.
Paul Durrant [Fri, 11 Apr 2014 10:09:20 +0000 (11:09 +0100)]
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>
11 years agoMerge pull request #11 from pauldu/sctx-1421
Paul Durrant [Wed, 9 Apr 2014 11:43:35 +0000 (12:43 +0100)]
Merge pull request #11 from pauldu/sctx-1421

Reserve an entry of the grant table for the crash kernel. Not doing this

11 years agoReserve an entry of the grant table for the crash kernel. Not doing this
Paul Durrant [Wed, 9 Apr 2014 11:38:51 +0000 (12:38 +0100)]
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>
11 years agoMerge pull request #10 from pauldu/master
Ben Chalmers [Thu, 19 Dec 2013 15:21:22 +0000 (07:21 -0800)]
Merge pull request #10 from pauldu/master

Add an error check for an 'EQUOTA' response from xenstore and

Approved-By: Ben Chalmers <ben.chalmers@citrix.com>
11 years agoAdd an error check for an 'EQUOTA' response from xenstore and
Paul Durrant [Thu, 19 Dec 2013 15:09:19 +0000 (15:09 +0000)]
Add an error check for an 'EQUOTA' response from xenstore and
translate it to STATUS_QUOTA_EXCEEDED.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #9 from OwenSmith/master
Paul Durrant [Tue, 17 Dec 2013 14:08:27 +0000 (06:08 -0800)]
Merge pull request #9 from OwenSmith/master

Add option to use emulated boot disk

11 years agoAdd option to use emulated boot disk
Owen Smith [Tue, 17 Dec 2013 13:45:56 +0000 (13:45 +0000)]
Add option to use emulated boot disk

Signed-off-by: Owen Smith <owen.smith@citrix.com>
11 years agoMerge branch 'master' into upstream
Paul Durrant [Mon, 18 Nov 2013 11:13:17 +0000 (11:13 +0000)]
Merge branch 'master' into upstream

11 years agoMake sure watch identifiers are unique
Paul Durrant [Thu, 14 Nov 2013 16:21:37 +0000 (16:21 +0000)]
Make sure watch identifiers are unique

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #6 from xenserver/interrupt
Ben Chalmers [Fri, 1 Nov 2013 09:31:36 +0000 (02:31 -0700)]
Merge pull request #6 from xenserver/interrupt

Fix potential interrupt storm

Approved-By: Ben Chalmers <ben.chalmers@citrix.com>
11 years agoEnable and disable callback via at source rather than
Paul Durrant [Fri, 1 Nov 2013 09:21:42 +0000 (10:21 +0100)]
Enable and disable callback via at source rather than
trying to keep a local disabled flag for the interrupt.
If we don't do this we can get into a interrupt storm on
startup.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoFix 0xC bugcheck in multiple object wait.
Paul Durrant [Fri, 1 Nov 2013 08:55:45 +0000 (09:55 +0100)]
Fix 0xC bugcheck in multiple object wait.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoEnable and disable callback via at source rather than
Paul Durrant [Thu, 31 Oct 2013 15:37:42 +0000 (16:37 +0100)]
Enable and disable callback via at source rather than
trying to keep a local disabled flag for the interrupt.
If we don't do this we can get into a interrupt storm on
startup.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoStop using insane amounts of stack.
Paul Durrant [Thu, 31 Oct 2013 15:32:08 +0000 (16:32 +0100)]
Stop using insane amounts of stack.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoAdd per-cpu information to the set gathered by the system
Paul Durrant [Tue, 29 Oct 2013 13:01:15 +0000 (14:01 +0100)]
Add per-cpu information to the set gathered by the system
module.
We should really add calls to make this information more
available.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoRemove an assertion that is now in the wrong place.
Paul Durrant [Thu, 17 Oct 2013 08:28:27 +0000 (09:28 +0100)]
Remove an assertion that is now in the wrong place.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoKeep track of ActiveDevice rather than ActiveDeviceInstance. If we include
Paul Durrant [Fri, 4 Oct 2013 10:54:11 +0000 (11:54 +0100)]
Keep track of ActiveDevice rather than ActiveDeviceInstance. If we include
the instance then any change in the PCI bus can cause the PV drivers to
become inactive.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoFix up README
Paul Durrant [Fri, 4 Oct 2013 10:48:27 +0000 (11:48 +0100)]
Fix up README

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoNew README.md and INSTALL.md.
Paul Durrant [Tue, 1 Oct 2013 10:52:35 +0000 (11:52 +0100)]
New README.md and INSTALL.md.

Also fix some python/cygwin issues and imported header line endings.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoUpdate build to reflect version
Paul Durrant [Fri, 27 Sep 2013 12:57:18 +0000 (13:57 +0100)]
Update build to reflect version

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoUpdate to 7.2.0
Paul Durrant [Fri, 27 Sep 2013 12:50:22 +0000 (13:50 +0100)]
Update to 7.2.0

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoFix error path
Paul Durrant [Fri, 27 Sep 2013 09:05:53 +0000 (10:05 +0100)]
Fix error path

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge branch 'master' into upstream
Paul Durrant [Fri, 27 Sep 2013 09:02:21 +0000 (10:02 +0100)]
Merge branch 'master' into upstream

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Conflicts:
src/xen/log.c

11 years agoMerge pull request #5 from OwenSmith/ca-115411
Paul Durrant [Fri, 27 Sep 2013 08:36:20 +0000 (01:36 -0700)]
Merge pull request #5 from OwenSmith/ca-115411

 [CA-115411] Skip XS_* responses that are not supported in the windows f...

11 years ago [CA-115411] Skip XS_* responses that are not supported in the windows frontend.
Owen Smith [Fri, 27 Sep 2013 08:20:53 +0000 (09:20 +0100)]
 [CA-115411] Skip XS_* responses that are not supported in the windows frontend.

Add a warning displaying the type, but otherwise do nothing with unknown responses.
(v2) Updated whitespace/tabbing and capitalization

Signed-off-by: Owen Smith <owen.smith@citrix.com>
11 years agoStop asking for a reboot when we install. Any reboot can be deferred to
Paul Durrant [Thu, 26 Sep 2013 14:08:23 +0000 (15:08 +0100)]
Stop asking for a reboot when we install. Any reboot can be deferred to
when the child drivers are installed.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoFix cut'n'paste error
Paul Durrant [Wed, 25 Sep 2013 16:42:35 +0000 (17:42 +0100)]
Fix cut'n'paste error

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoChange to grant table v1
Paul Durrant [Wed, 25 Sep 2013 11:44:50 +0000 (12:44 +0100)]
Change to grant table v1

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoSwitch to Xen 3.4 headers for backwards compatibility
Paul Durrant [Wed, 25 Sep 2013 10:18:42 +0000 (11:18 +0100)]
Switch to Xen 3.4 headers for backwards compatibility

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoFix a couple of debug messages
Paul Durrant [Fri, 20 Sep 2013 13:04:58 +0000 (14:04 +0100)]
Fix a couple of debug messages

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMake sure the FDOs do not appear in the eject list
Paul Durrant [Thu, 19 Sep 2013 14:49:02 +0000 (15:49 +0100)]
Make sure the FDOs do not appear in the eject list

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoUpdate .gitignore
Paul Durrant [Thu, 19 Sep 2013 10:54:05 +0000 (11:54 +0100)]
Update .gitignore

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoUpdate co-installer
Paul Durrant [Thu, 19 Sep 2013 10:24:51 +0000 (11:24 +0100)]
Update co-installer

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoVerious fixes for WHQL
Paul Durrant [Tue, 17 Sep 2013 14:58:10 +0000 (15:58 +0100)]
Verious fixes for WHQL

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #3 from benchalmers/CA-115744-2
Paul Durrant [Mon, 16 Sep 2013 13:13:17 +0000 (06:13 -0700)]
Merge pull request #3 from benchalmers/CA-115744-2

[CA-115744] [SCTX-1538] Do not treat DbgPrint strings as format strings

11 years ago[CA-115744] [SCTX-1538] Do not treat DbgPrint strings as format strings
Ben Chalmers [Mon, 16 Sep 2013 12:36:19 +0000 (13:36 +0100)]
[CA-115744] [SCTX-1538] Do not treat DbgPrint strings as format strings

Our hook for DbgPrint messages was passing these messages as the
format parameter into a printf statement.  If there was a %s or
similar in the string we would then deference the next argument on
the stack, leading to a potential BSOD.

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>
11 years agoFix typo
Paul Durrant [Tue, 10 Sep 2013 14:57:56 +0000 (15:57 +0100)]
Fix typo

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoUse unplug product ID 0xFFFF for now
Paul Durrant [Tue, 10 Sep 2013 10:51:27 +0000 (11:51 +0100)]
Use unplug product ID 0xFFFF for now

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoComplete EMULATED and UNPLUG interfaces
Paul Durrant [Fri, 6 Sep 2013 15:28:32 +0000 (16:28 +0100)]
Complete EMULATED and UNPLUG interfaces

Not tested yet but the code is more or less in its final shape.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoUse pre-defined GUIDs rather than rolling our own.
Paul Durrant [Fri, 30 Aug 2013 17:01:43 +0000 (18:01 +0100)]
Use pre-defined GUIDs rather than rolling our own.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoSwitch to test signing.
Paul Durrant [Thu, 29 Aug 2013 08:52:43 +0000 (09:52 +0100)]
Switch to test signing.

New xenbus.pfx (no password) added to repo.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoGet XENVIF up and running.
Paul Durrant [Thu, 29 Aug 2013 08:26:43 +0000 (09:26 +0100)]
Get XENVIF up and running.

Create a new stub EMULATED interface and make some other tweaks to get
XENVIF to come up and enumerate child devices.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoStart work on XENFILT
Paul Durrant [Tue, 27 Aug 2013 10:48:16 +0000 (11:48 +0100)]
Start work on XENFILT

Start to move towards a new EMULATED interface that will allow child
drivers to check presence of 'DEVICE's (by DeviceID and InstanceID) and
'DISK's (by Controller, Target, Lun tuples). This first commit just puts
in the groundwork for setting the right data on the PDOs.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoRe-factoring for use with upstream Xen.
Paul Durrant [Thu, 22 Aug 2013 14:23:14 +0000 (15:23 +0100)]
Re-factoring for use with upstream Xen.

Strip out XenServer specific parts of the drivers and enable them
to cope with multiple bindings.
Also, refine some of the source, add a common source area to reduce
code duplication, and change the PDO names to reflect the PV driver
vendor and also use a format that should work with Windows Update.

Note that XENFILT is pretty useless at this point. It binds to devices
correctly but all the unplug code is gone, to be replaced with code that
is not reliant upon XenServer-specific patches to QEMU.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #2 from pauldu/ca-112939
Ben Chalmers [Tue, 13 Aug 2013 10:07:52 +0000 (03:07 -0700)]
Merge pull request #2 from pauldu/ca-112939

Ignore attempts to remove device usage types that were not added.

Accepted-By: Ben Chalmers <ben.chalmers@citrix.com>
11 years agoIgnore attempts to remove device usage types that were not added.
Paul Durrant [Tue, 13 Aug 2013 09:15:11 +0000 (10:15 +0100)]
Ignore attempts to remove device usage types that were not added.

ASSERTing on this condition is not particularly helpful as other buggy
software causes BSODs. We should be able to safely ignore and succeed
such IRPs.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
11 years agoMerge pull request #1 from OwenSmith/master
Ben Chalmers [Fri, 9 Aug 2013 12:14:36 +0000 (05:14 -0700)]
Merge pull request #1 from OwenSmith/master

Update minor version number to disambiguate from old mercurial repo.

11 years agoUpdate minor version number to disambiguate from old mercurial repo.
Owen Smith [Fri, 9 Aug 2013 11:01:51 +0000 (12:01 +0100)]
Update minor version number to disambiguate from old mercurial repo.

11 years agoResync with internal repository
Ben Chalmers [Fri, 21 Jun 2013 13:54:35 +0000 (14:54 +0100)]
Resync with internal repository

changeset:   305:e377a99e8721
tag:         tip
user:        Paul Durrant <paul.durrant@citrix.com>
date:        Fri Jun 21 13:19:15 2013 +0100
summary:     [CA-109475] Handle __RangeSetAdd failure.

changeset:   304:7818aaf86215
parent:      303:37f03f68abf5
parent:      302:b576d67847cb
user:        Paul Durrant <paul.durrant@citrix.com>
date:        Fri Jun 21 09:58:03 2013 +0100
summary:     Merge

changeset:   303:37f03f68abf5
parent:      299:f17689532d11
user:        Paul Durrant <paul.durrant@citrix.com>
date:        Fri Jun 21 09:57:04 2013 +0100
summary:     * * *

changeset:   302:b576d67847cb
user:        Ben Chalmers <ben.chalmers@citrix.com>
date:        Wed Jun 19 10:30:32 2013 +0100
summary:     [CP-4195] Add README.md and associated files to xenbus

changeset:   301:407589c56880
user:        Owen Smith <owen.smith@citrix.com>
date:        Thu Jun 13 16:07:04 2013 +0100
summary:     Fix/suppress SDV warnings

changeset:   300:966e06420ce5
user:        Owen Smith <owen.smith@citrix.com>
date:        Wed Jun 12 16:48:22 2013 +0100
summary:     [CA-86240] Update sdv.py and vcxprojs to build targetting Vista, an
d attempt to produce sdv logs

changeset:   299:f17689532d11
user:        Owen Smith <owen.smith@citrix.com>
date:        Thu Jun 06 12:47:30 2013 +0100
summary:     Backed out merge changeset: b35edbab18ee

changeset:   298:b35edbab18ee
parent:      297:0675b68b3e8d
parent:      296:5aefe3d5985a
user:        Owen Smith <owen.smith@citrix.com>
date:        Tue Jun 04 12:18:12 2013 +0100
summary:     Merge

changeset:   297:0675b68b3e8d
parent:      294:28a400f3d92a
user:        Owen Smith <owen.smith@citrix.com>
date:        Tue Jun 04 12:17:26 2013 +0100
summary:     [CA-86240] Generate SDV logs with sdv.py script

changeset:   296:5aefe3d5985a
parent:      295:0fad50b631e3
parent:      294:28a400f3d92a
user:        Paul Durrant <paul.durrant@citrix.com>
date:        Mon Jun 03 17:49:00 2013 +0100
summary:     Merge

changeset:   295:0fad50b631e3
parent:      293:5c23adc1aa58
user:        Paul Durrant <paul.durrant@citrix.com>
date:        Mon Jun 03 17:48:06 2013 +0100
summary:     Fix line endings

changeset:   294:28a400f3d92a
user:        Ben Chalmers <ben.chalmers@citrix.com>
date:        Wed May 29 14:57:17 2013 +0100
summary:     [CP-4685] Add BSD licence header to inf file

11 years ago[CP-4699] Modify build.py to cope with git & jenkins git plugin
Ben Chalmers [Tue, 28 May 2013 15:25:06 +0000 (16:25 +0100)]
[CP-4699] Modify build.py to cope with git & jenkins git plugin

11 years ago[CP-4696] Git repository created for xenbus
Ben Chalmers [Tue, 28 May 2013 11:01:45 +0000 (12:01 +0100)]
[CP-4696] Git repository created for xenbus