direct-io.hg

changeset 11668:9eb80d41c724

[HVM] Disable VMX/SVM on auxiliary processors when shutting down an SMP system.

With Intel VT, VMXOFF needs to be executed before halting the
CPU. Without this fix Xen or Linux is unable to start up the CPU after
a kexec reboot.

Tested using x86_32 on a Pentium D 930.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
author kfraser@localhost.localdomain
date Fri Sep 29 11:28:04 2006 +0100 (2006-09-29)
parents bcd0e18f7881
children e229687561cf
files xen/arch/x86/smp.c
line diff
     1.1 --- a/xen/arch/x86/smp.c	Fri Sep 29 11:26:33 2006 +0100
     1.2 +++ b/xen/arch/x86/smp.c	Fri Sep 29 11:28:04 2006 +0100
     1.3 @@ -21,6 +21,7 @@
     1.4  #include <asm/smpboot.h>
     1.5  #include <asm/hardirq.h>
     1.6  #include <asm/ipi.h>
     1.7 +#include <asm/hvm/hvm.h>
     1.8  #include <mach_apic.h>
     1.9  
    1.10  /*
    1.11 @@ -306,6 +307,7 @@ static void stop_this_cpu (void *dummy)
    1.12  
    1.13      local_irq_disable();
    1.14      disable_local_APIC();
    1.15 +    hvm_disable();
    1.16  
    1.17      for ( ; ; )
    1.18          __asm__ __volatile__ ( "hlt" );