freebsd-dev/sys/dev/xen
Justin T. Gibbs 8b8bfa3567 Enhance documentation, improve interoperability, and fix defects in
FreeBSD's front and back Xen blkif interface drivers.

sys/dev/xen/blkfront/block.h:
sys/dev/xen/blkfront/blkfront.c:
sys/dev/xen/blkback/blkback.c:
	Replace FreeBSD specific multi-page ring impelementation with
	support for both the Citrix and Amazon/RedHat versions of this
	extension.

sys/dev/xen/blkfront/blkfront.c:
	o Add a per-instance sysctl tree that exposes all negotiated
	  transport parameters (ring pages, max number of requests,
	  max request size, max number of segments).
	o In blkfront_vdevice_to_unit() add a missing return statement
	  so that we properly identify the unit number for high numbered
	  xvd devices.

sys/dev/xen/blkback/blkback.c:
	o Add static dtrace probes for several events in this driver.
	o Defer connection shutdown processing until the front-end
	  enters the closed state.  This avoids prematurely tearing
	  down the connection when buggy front-ends transition to the
	  closing state, even though the device is open and they
	  veto the close request from the tool stack.
	o Add nodes for maximum request size and the number of active
	  ring pages to the exising, per-instance, sysctl tree.
	o Miscelaneous style cleanup.

sys/xen/interface/io/blkif.h:
	o Add extensive documentation of the XenStore nodes used to
	  implement the blkif interface.
	o Document the startup sequence between a front and back driver.
	o Add structures and documenatation for the "discard" feature
	  (AKA Trim).
	o Cleanup some definitions related to FreeBSD's request
	  number/size/segment-limit extension.

sys/dev/xen/blkfront/blkfront.c:
sys/dev/xen/blkback/blkback.c:
sys/xen/xenbus/xenbusvar.h:
	Add the convenience function xenbus_get_otherend_state() and
	use it to simplify some logic in both block-front and block-back.

MFC after:	1 day
2012-02-15 06:45:49 +00:00
..
balloon Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00
blkback Enhance documentation, improve interoperability, and fix defects in 2012-02-15 06:45:49 +00:00
blkfront Enhance documentation, improve interoperability, and fix defects in 2012-02-15 06:45:49 +00:00
console kern cons: introduce infrastructure for console grabbing by kernel 2011-12-17 15:08:43 +00:00
control Properly handle suspend/resume events in the Xen device 2011-09-20 23:44:34 +00:00
evtchn merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
netback Fix the netback driver build for i386. 2012-02-02 17:54:35 +00:00
netfront ether_ifattach() sets if_mtu to ETHERMTU, don't bother set it again 2012-01-07 09:41:57 +00:00
pcifront - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
xenpci Make XENHVM work on i386. The __ffs() function counts bits starting from 2012-01-16 02:38:45 +00:00