freebsd-nq/sys
Justin T. Gibbs 283d6f7287 Monitor and emit events for XenStore changes to XenBus trees
of the devices we manage.  These changes can be due to writes
we make ourselves or due to changes made by the control domain.
The goal of these changes is to insure that all state transitions
can be detected regardless of their source and to allow common
device policies (e.g. "onlined" backend devices) to be centralized
in the XenBus bus code.

sys/xen/xenbus/xenbusvar.h:
sys/xen/xenbus/xenbus.c:
sys/xen/xenbus/xenbus_if.m:
	Add a new method for XenBus drivers "localend_changed".
	This method is invoked whenever a write is detected to
	a device's XenBus tree.  The default implementation of
	this method is a no-op.

sys/xen/xenbus/xenbus_if.m:
sys/dev/xen/netfront/netfront.c:
sys/dev/xen/blkfront/blkfront.c:
sys/dev/xen/blkback/blkback.c:
	Change the signature of the "otherend_changed" method.
	This notification cannot fail, so it should return void.

sys/xen/xenbus/xenbusb_back.c:
	Add "online" device handling to the XenBus Back Bus
	support code.  An online backend device remains active
	after a front-end detaches as a reconnect is expected
	to occur in the near future.

sys/xen/interface/io/xenbus.h:
	Add comment block further explaining the meaning and
	driver responsibilities associated with the XenBus
	Closed state.

sys/xen/xenbus/xenbusb.c:
sys/xen/xenbus/xenbusb.h:
sys/xen/xenbus/xenbusb_back.c:
sys/xen/xenbus/xenbusb_front.c:
sys/xen/xenbus/xenbusb_if.m:
	o Register a XenStore watch against the local XenBus tree
	  for all devices.
	o Cache the string length of the path to our local tree.
	o Allow the xenbus front and back drivers to hook/filter both
	  local and otherend watch processing.
	o Update the device ivar version of "state" when we detect
	  a XenStore update of that node.

sys/dev/xen/control/control.c:
sys/xen/xenbus/xenbus.c:
sys/xen/xenbus/xenbusb.c:
sys/xen/xenbus/xenbusb.h:
sys/xen/xenbus/xenbusvar.h:
sys/xen/xenstore/xenstorevar.h:
	Allow clients of the XenStore watch mechanism to attach
	a single uintptr_t worth of client data to the watch.
	This removes the need to carefully place client watch
	data within enclosing objects so that a cast or offsetof
	calculation can be used to convert from watch to enclosing
	object.

Sponsored by:	Spectra Logic Corporation
MFC after:	1 week
2011-06-11 04:59:01 +00:00
..
amd64 Implement BUS_ADJUST_RESOURCE() for the x86 drivers that sit between the 2011-06-10 12:30:16 +00:00
arm MFC 2011-05-13 20:58:48 +00:00
boot o Bump the EFI loader version to 3.1. 2011-06-07 00:59:31 +00:00
bsm Add ECAPMODE, "Not permitted in capability mode", a new kernel errno 2011-03-01 13:14:28 +00:00
cam Increase maximum supported number of ranges per TRIM command from 256 to 512 2011-06-03 07:25:36 +00:00
cddl Remove C constructs that are incompatible with C++ from various 2011-06-10 20:10:30 +00:00
compat Commit the missing linux_videdev2_compat.h (lost somewhere between 2011-05-04 13:09:20 +00:00
conf - Eliminate an incorrect include path from the mthca build. 2011-06-10 22:38:31 +00:00
contrib Add _mbuf() variants of various inpcb-related interfaces, including lookup, 2011-06-04 16:33:06 +00:00
crypto Fix a bug in the result of manual assembly. 2011-03-02 14:56:58 +00:00
ddb Fix making kernel dumps from the debugger by creating a command 2011-06-07 01:28:12 +00:00
dev Monitor and emit events for XenStore changes to XenBus trees 2011-06-11 04:59:01 +00:00
fs Add support for flock(2) locks to the new NFSv4 client. I think this 2011-06-05 20:22:56 +00:00
gdb Modify kdb_trap() so that it re-calls the dbbe_trap function as long as 2011-02-18 22:25:11 +00:00
geom MFC 2011-06-03 17:09:15 +00:00
gnu Fix typo in unused function name 2011-05-22 09:58:48 +00:00
i386 Implement BUS_ADJUST_RESOURCE() for the x86 drivers that sit between the 2011-06-10 12:30:16 +00:00
ia64 Add the model number for the Montvale processor (marketed as Itanium 2 9100). 2011-06-11 02:22:11 +00:00
isa Move VT switching hack for suspend/resume from bus drivers to syscons.c 2011-05-09 18:46:49 +00:00
kern - When printing bufs with show buf the lblkno is often more useful than 2011-06-10 22:15:36 +00:00
kgssapi
libkern Fix typos - remove duplicate "is". 2011-02-23 09:22:33 +00:00
mips MFC 2011-06-04 22:05:20 +00:00
modules Rename recently added USB serial driver. 2011-06-04 20:40:24 +00:00
net Set curvnet context in a callout-trigerred code path. 2011-06-07 20:46:03 +00:00
net80211 Certain adapters have HT40 support on some but not all channels. The 2011-06-04 15:05:32 +00:00
netatalk
netgraph Sync ng_nat with recent (r222806) ipfw_nat changes: 2011-06-07 06:48:42 +00:00
netinet Correct comments and debug logging in ipsec to better match reality. 2011-06-08 03:02:11 +00:00
netinet6 Add the missing call to ip6_ipsec_filtertunnel() to be able to control 2011-06-08 10:59:36 +00:00
netipsec Release SP's refcount in key_get_spdbyid(). 2011-05-09 13:16:21 +00:00
netipx
netnatm
netncp
netsmb
nfs Change the sysctl naming for the old and new NFS clients 2011-05-15 20:52:43 +00:00
nfsclient In the VOP_PUTPAGES() implementations, change the default error from 2011-06-01 21:00:28 +00:00
nfsserver Add a lock flags argument to the VFS_FHTOVP() file system 2011-05-22 01:07:54 +00:00
nlm Add a lock flags argument to the VFS_FHTOVP() file system 2011-05-22 01:07:54 +00:00
ofed MFC 2011-05-27 16:09:10 +00:00
opencrypto After the r219999 is merged to stable/8, rename fallocf(9) to falloc(9) 2011-04-01 13:28:34 +00:00
pc98 remove code for dynamic offlining/onlining of CPUs on x86 2011-06-08 08:12:15 +00:00
pci Do a sweep of the tree replacing calls to pci_find_extcap() with calls to 2011-03-23 13:10:15 +00:00
powerpc MFC 2011-06-04 22:05:20 +00:00
rpc This patch is believed to fix a problem in the kernel rpc for 2011-04-27 18:19:26 +00:00
security - Add a FEATURE for capsicum (security_capabilities). 2011-03-04 09:03:54 +00:00
sparc64 - For the case when tl1_align(_trap) is used to call rsf_fatal via 2011-06-07 23:15:21 +00:00
sys Implement fully asynchronous partial truncation with softupdates journaling 2011-06-10 22:48:35 +00:00
teken mdoc: reorder sections consistently 2011-06-02 09:56:53 +00:00
tools GNU awk does not output escaped newlines in multi-line printc statements. This 2011-03-31 21:33:33 +00:00
ufs Implement fully asynchronous partial truncation with softupdates journaling 2011-06-10 22:48:35 +00:00
vm In the VOP_PUTPAGES() implementations, change the default error from 2011-06-01 21:00:28 +00:00
x86 Tidy up r222866. 2011-06-08 23:44:59 +00:00
xdr
xen Monitor and emit events for XenStore changes to XenBus trees 2011-06-11 04:59:01 +00:00
Makefile Include sys/xen in cscope tag file generation. 2011-06-10 20:51:41 +00:00