linux/include/xen/interface
Olaf Hering ddacf5ef68 xen/pv-on-hvm kexec: add xs_reset_watches to shutdown watches from old kernel
Add new xs_reset_watches function to shutdown watches from old kernel after
kexec boot.  The old kernel does not unregister all watches in the
shutdown path.  They are still active, the double registration can not
be detected by the new kernel.  When the watches fire, unexpected events
will arrive and the xenwatch thread will crash (jumps to NULL).  An
orderly reboot of a hvm guest will destroy the entire guest with all its
resources (including the watches) before it is rebuilt from scratch, so
the missing unregister is not an issue in that case.

With this change the xenstored is instructed to wipe all active watches
for the guest.  However, a patch for xenstored is required so that it
accepts the XS_RESET_WATCHES request from a client (see changeset
23839:42a45baf037d in xen-unstable.hg). Without the patch for xenstored
the registration of watches will fail and some features of a PVonHVM
guest are not available. The guest is still able to boot, but repeated
kexec boots will fail.

[v5: use xs_single instead of passing a dummy string to xs_talkv]
[v4: ignore -EEXIST in xs_reset_watches]
[v3: use XS_RESET_WATCHES instead of XS_INTRODUCE]
[v2: move all code which deals with XS_INTRODUCE into xs_introduce()
    (based on feedback from Ian Campbell); remove casts from kvec assignment]
Signed-off-by: Olaf Hering <olaf@aepfle.de>
[v1: Redid the git description a bit]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2011-09-22 16:32:24 -04:00
..
hvm x86: Call HVMOP_pagetable_dying on exit_mmap. 2010-07-26 23:13:26 -07:00
io xen/pv-on-hvm kexec: add xs_reset_watches to shutdown watches from old kernel 2011-09-22 16:32:24 -04:00
callback.h xen64: define asm/xen/interface for 64-bit 2008-07-16 10:56:18 +02:00
elfnote.h Fix common misspellings 2011-03-31 11:26:23 -03:00
event_channel.h xen: clean up asm/xen/hypervisor.h 2008-12-16 21:50:31 +01:00
features.h xen: support GSI -> pirq remapping in PV on HVM guests 2010-10-22 21:25:42 +01:00
grant_table.h xen: Xen PCI platform device driver. 2010-07-22 16:46:09 -07:00
memory.h xen: implement XENMEM_machphys_mapping 2010-11-12 15:00:06 -08:00
physdev.h xen: use PHYSDEVOP_get_free_pirq to implement find_unbound_pirq 2010-12-02 14:28:22 +00:00
sched.h watchdog: Xen watchdog driver 2011-03-15 16:02:18 +00:00
vcpu.h xen: add missing definitions in include/xen/interface/vcpu.h which ia64/xen needs 2008-04-24 23:57:32 +02:00
version.h xen: add /sys/hypervisor support 2009-03-30 09:27:06 -07:00
xen.h xen: cleancache shim to Xen Transcendent Memory 2011-05-26 10:02:21 -06:00
xencomm.h xen: import arch generic part of xencomm 2008-04-24 23:57:32 +02:00