WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH] [VT] SMP VMX guest AP bring up need calldo_boot_

To: "Li, Xin B" <xin.b.li@xxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] [VT] SMP VMX guest AP bring up need calldo_boot_vcpu in hypervisor
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Thu, 29 Sep 2005 15:51:31 +0800
Delivery-date: Thu, 29 Sep 2005 07:51:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXEgd7m9cvPRxVcSk+fcsS8QJnOxQASJe4w
Thread-topic: [Xen-devel] [PATCH] [VT] SMP VMX guest AP bring up need calldo_boot_vcpu in hypervisor
Jun suggested to use another elegant way, pls ignore this one.
-Xin

>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@xxxxxxxxx>
>
>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@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-devel
>

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

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [Xen-devel] [PATCH] [VT] SMP VMX guest AP bring up need calldo_boot_vcpu in hypervisor, Li, Xin B <=