Li, Xin B
2005-Sep-28  23:10 UTC
[Xen-devel] [PATCH] [VT] SMP VMX guest AP bring up need call do_boot_vcpu in hypervisor
SMP VMX guest AP bring up need call do_boot_vcpu in hypervisor.
Current call to do_boot_vcpu always from domain, however, for SMP VMX
guest AP bring up, it is called from xen hypervisor.
Signed-off-by: Xin Li <xin.b.li@intel.com>
diff -r f069a06e650f xen/common/domain.c
--- a/xen/common/domain.c   Wed Sep 28 21:18:30 2005
+++ b/xen/common/domain.c   Thu Sep 29 07:00:15 2005
@@ -390,8 +390,9 @@
         goto out;
     }
-    if ( copy_from_user(c, ctxt, sizeof(*c)) )
-    {
+    if (vcpu && (ctxt->flags & VGCF_VMX_GUEST)) {
+        memcpy(c, ctxt, sizeof(*c));
+    } else if ( copy_from_user(c, ctxt, sizeof(*c)) ) {
         rc = -EFAULT;
         goto out;
     }
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel