ia64/xen-unstable

changeset 12665:62686b2e13ea

[IA64] HVM domains need to trigger do_softirq for PAL_HALT_LIGHT too

call do_softirq() to enter scheduler when VTI does PAL_HALT_LIGHT,
like xen-ia64-unstable.hg changeset:

12520:bcd2960d6dfd018de58fc0113c37d30edbe802c5

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
author awilliam@xenbuild.aw
date Thu Nov 30 15:57:47 2006 -0700 (2006-11-30)
parents 439051df45f3
children 9f56556f08cb
files xen/arch/ia64/xen/fw_emul.c
line diff
     1.1 --- a/xen/arch/ia64/xen/fw_emul.c	Thu Nov 30 15:57:42 2006 -0700
     1.2 +++ b/xen/arch/ia64/xen/fw_emul.c	Thu Nov 30 15:57:47 2006 -0700
     1.3 @@ -32,6 +32,7 @@
     1.4  #include <asm/uaccess.h>
     1.5  #include <xen/console.h>
     1.6  #include <xen/hypercall.h>
     1.7 +#include <xen/softirq.h>
     1.8  
     1.9  static DEFINE_SPINLOCK(efi_time_services_lock);
    1.10  
    1.11 @@ -611,8 +612,10 @@ xen_pal_emulator(unsigned long index, u6
    1.12  	    case PAL_HALT_LIGHT:
    1.13  		if (VMX_DOMAIN(current)) {
    1.14  			/* Called by VTI.  */
    1.15 -			if (!is_unmasked_irq(current))
    1.16 +			if (!is_unmasked_irq(current)) {
    1.17  				do_sched_op_compat(SCHEDOP_block, 0);
    1.18 +				do_softirq();
    1.19 +			}
    1.20  			status = PAL_STATUS_SUCCESS;
    1.21  		}
    1.22  		break;