diff options
author | Keir Fraser <keir@xensource.com> | 2007-10-30 10:13:43 +0000 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-10-30 10:13:43 +0000 |
commit | ca560bd3f58928f2b7d0d1530d22b090bf1a0fd2 (patch) | |
tree | 3ff51af1c112389042aa7cf243688ffe03abb441 /xen/arch/x86/shutdown.c | |
parent | cb9e907b6f5a64151dda8c38b60ea764a8d38daf (diff) | |
download | xen-ca560bd3f58928f2b7d0d1530d22b090bf1a0fd2.tar.gz xen-ca560bd3f58928f2b7d0d1530d22b090bf1a0fd2.tar.bz2 xen-ca560bd3f58928f2b7d0d1530d22b090bf1a0fd2.zip |
Intel(R) Trusted Execution Technology (Intel(R) TXT) support for Xen.
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Diffstat (limited to 'xen/arch/x86/shutdown.c')
-rw-r--r-- | xen/arch/x86/shutdown.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xen/arch/x86/shutdown.c b/xen/arch/x86/shutdown.c index c66c3fa019..760b260bc2 100644 --- a/xen/arch/x86/shutdown.c +++ b/xen/arch/x86/shutdown.c @@ -21,6 +21,7 @@ #include <asm/io.h> #include <asm/processor.h> #include <asm/mpspec.h> +#include <asm/tboot.h> /* reboot_str: comma-separated list of reboot options. */ static char __initdata reboot_str[10] = ""; @@ -219,6 +220,9 @@ void machine_restart(void) smp_send_stop(); + if ( tboot_in_measured_env() ) + tboot_shutdown(TB_SHUTDOWN_REBOOT); + /* Rebooting needs to touch the page at absolute address 0. */ *((unsigned short *)__va(0x472)) = reboot_mode; @@ -328,3 +332,13 @@ static int __init reboot_init(void) return 0; } __initcall(reboot_init); + +/* + * Local variables: + * mode: C + * c-set-style: "BSD" + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + */ |