All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus@valinux.co.jp>
To: xen-devel@lists.xensource.com
Cc: Magnus Damm <magnus@valinux.co.jp>, magnus.damm@gmail.com
Subject: [PATCH] hvm: disable on smp
Date: Fri, 29 Sep 2006 15:44:31 +0900	[thread overview]
Message-ID: <20060929064431.24864.50465.sendpatchset@localhost> (raw)
In-Reply-To: <20060929064425.24864.5149.sendpatchset@localhost>

hvm: disable hvm on smp

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>

--- 0001/xen/arch/x86/smp.c
+++ work/xen/arch/x86/smp.c	2006-09-29 14:47:34.000000000 +0900
@@ -21,6 +21,7 @@
 #include <asm/smpboot.h>
 #include <asm/hardirq.h>
 #include <asm/ipi.h>
+#include <asm/hvm/hvm.h>
 #include <mach_apic.h>
 
 /*
@@ -306,6 +307,7 @@ static void stop_this_cpu (void *dummy)
 
     local_irq_disable();
     disable_local_APIC();
+    hvm_disable();
 
     for ( ; ; )
         __asm__ __volatile__ ( "hlt" );

      reply	other threads:[~2006-09-29  6:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-29  6:44 [PATCH] hvm: clear vmxe if vmxoff Magnus Damm
2006-09-29  6:44 ` Magnus Damm [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060929064431.24864.50465.sendpatchset@localhost \
    --to=magnus@valinux.co.jp \
    --cc=magnus.damm@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.