All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zhai, Edwin" <edwin.zhai@intel.com>
To: Keir Fraser <keir@xensource.com>
Cc: Tim <Tim.Deegan@xensource.com>,
	xen-devel@lists.xensource.com, "Zhai,
	Edwin" <edwin.zhai@intel.com>
Subject: Re: HVM smp guest save/restore support
Date: Wed, 24 Jan 2007 21:30:24 +0800	[thread overview]
Message-ID: <20070124133024.GC15711@edwin-srv.sh.intel.com> (raw)
In-Reply-To: <C1DBDEF0.815D%keir@xensource.com>

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

On Tue, Jan 23, 2007 at 03:49:04PM +0000, Keir Fraser wrote:
> All hvm vcpu context restore should be done via the new hvm domctl, and the
> wakeup of APs can be implemented there (rather than in common/ directory).

how about this patch?
thanks,

> 
>  -- Keir
> 

-- 
best rgds,
edwin

[-- Attachment #2: smp_fix_save_restore.patch --]
[-- Type: text/plain, Size: 538 bytes --]

diff -r bea505a69722 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c	Tue Jan 23 15:58:05 2007 +0000
+++ b/xen/arch/x86/hvm/vmx/vmx.c	Wed Jan 24 17:37:51 2007 +0800
@@ -659,6 +659,12 @@ int vmx_load_vmcs_ctxt(hvm_domain_contex
         printk("vmx_vmcs restore failed!\n");
         domain_crash(v->domain);
         return -EINVAL;
+    }
+
+    /* wake up this vcpu for smp support */
+    if ( is_hvm_vcpu(v) &&
+            test_and_clear_bit(_VCPUF_down, &v->vcpu_flags) ) {
+        vcpu_wake(v);
     }
 
     return 0;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2007-01-24 13:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 15:34 HVM smp guest save/restore support Zhai, Edwin
2007-01-23 15:49 ` Keir Fraser
2007-01-24 13:30   ` Zhai, Edwin [this message]
2007-01-24 18:32     ` Keir Fraser
2007-01-25  3:30       ` Zhai, Edwin
2007-01-25 12:29         ` Keir Fraser

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=20070124133024.GC15711@edwin-srv.sh.intel.com \
    --to=edwin.zhai@intel.com \
    --cc=Tim.Deegan@xensource.com \
    --cc=keir@xensource.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.