xen: add batch completion callbacks
authorJeremy Fitzhardinge <jeremy@xensource.com>
Tue, 16 Oct 2007 18:51:30 +0000 (11:51 -0700)
committerJeremy Fitzhardinge <jeremy@goop.org>
Tue, 16 Oct 2007 18:51:30 +0000 (11:51 -0700)
commit91e0c5f3dad47838cb2ecc1865ce789a0b7182b1
tree8c72d3f7bd574088fc457f0ce2117d6d986dac2c
parentf0d733942750c1ee6358c3a4a1a5d7ba73b7122f
xen: add batch completion callbacks

This adds a mechanism to register a callback function to be called once
a batch of hypercalls has been issued.  This is typically used to unlock
things which must remain locked until the hypercall has taken place.

[ Stable folks: pre-req for 2.6.23 bugfix "xen: deal with stale cr3
  values when unpinning pagetables" ]

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Stable Kernel <stable@kernel.org>
arch/x86/xen/multicalls.c
arch/x86/xen/multicalls.h