ia64/xen-unstable

view tools/examples/vtpm @ 11100:905ff6e616cc

[HVM] Add stubs to Linux for the new hvm_op hypercall.
Signed-off-by: Steven Smith <ssmith@xensource.com>
author kfraser@localhost.localdomain
date Mon Aug 14 11:33:50 2006 +0100 (2006-08-14)
parents 9ec0b4f10b4f
children b071319927b6
line source
1 #!/bin/sh
3 dir=$(dirname "$0")
4 . "$dir/vtpm-hotplug-common.sh"
6 vtpm_fatal_error=0
8 case "$command" in
9 add)
10 vtpm_create_instance
11 ;;
12 remove)
13 vtpm_remove_instance
14 ;;
15 esac
17 if [ $vtpm_fatal_error -eq 0 ]; then
18 log debug "Successful vTPM operation '$command'."
19 success
20 else
21 fatal "Error while executing vTPM operation '$command'."
22 fi