ia64/xen-unstable

changeset 9319:263901a2a995

[IA64] EFI_RESET_SYSTEM now reboots domU.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Tue Mar 21 09:13:07 2006 -0700 (2006-03-21)
parents 9afd25b90af4
children d18f8fd07fa2
files xen/arch/ia64/xen/dom_fw.c xen/arch/ia64/xen/hypercall.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom_fw.c	Mon Mar 20 09:56:58 2006 -0700
     1.2 +++ b/xen/arch/ia64/xen/dom_fw.c	Tue Mar 21 09:13:07 2006 -0700
     1.3 @@ -18,6 +18,7 @@
     1.4  #include <xen/acpi.h>
     1.5  
     1.6  #include <asm/dom_fw.h>
     1.7 +#include <public/sched.h>
     1.8  
     1.9  static struct ia64_boot_param *dom_fw_init(struct domain *, char *,int,char *,int);
    1.10  extern unsigned long domain_mpa_to_imva(struct domain *,unsigned long mpaddr);
    1.11 @@ -324,7 +325,8 @@ xen_pal_emulator(unsigned long index, u6
    1.12  			    (*efi.reset_system)(EFI_RESET_SHUTDOWN,0,0,NULL);
    1.13  		    }
    1.14  		    else
    1.15 -			    domain_shutdown (current->domain, 0);
    1.16 +			    domain_shutdown (current->domain,
    1.17 +					     SHUTDOWN_poweroff);
    1.18  		    break;
    1.19  	    default:
    1.20  		printk("xen_pal_emulator: UNIMPLEMENTED PAL CALL %lu!!!!\n",
     2.1 --- a/xen/arch/ia64/xen/hypercall.c	Mon Mar 20 09:56:58 2006 -0700
     2.2 +++ b/xen/arch/ia64/xen/hypercall.c	Tue Mar 21 09:13:07 2006 -0700
     2.3 @@ -196,7 +196,8 @@ fw_hypercall (struct pt_regs *regs)
     2.4  			printf("(by dom0)\n ");
     2.5  			(*efi.reset_system)(EFI_RESET_WARM,0,0,NULL);
     2.6  		}
     2.7 -		printf("(not supported for non-0 domain)\n");
     2.8 +		else
     2.9 +			domain_shutdown (current->domain, SHUTDOWN_reboot);
    2.10  		regs->r8 = EFI_UNSUPPORTED;
    2.11  		break;
    2.12  	    case FW_HYPERCALL_EFI_GET_TIME: