ia64/xen-unstable

view tools/examples/vtpm @ 8964:8946b6dcd49e

Fix x86_64 Xen build.

event_callback_cs and failsafe_callback_cs are x86_32 only.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 22 17:26:39 2006 +0000 (2006-02-22)
parents 2401f414d1ad
children 136aea67b369
line source
1 #!/bin/sh
3 dir=$(dirname "$0")
4 . "$dir/vtpm-common.sh"
6 vtpm_fatal_error=0
8 case "$command" in
9 add)
10 vtpm_create_instance
11 ;;
12 online)
13 vtpm_create_instance
14 ;;
15 remove)
16 vtpm_remove_instance
17 ;;
18 offline)
19 vtpm_remove_instance
20 ;;
21 esac
23 if [ $vtpm_fatal_error -eq 0 ]; then
24 log debug "Successful vTPM operation '$command'."
25 success
26 fi