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-ia64-devel

[Xen-ia64-devel] [PATCH 2/2] prevent soft lockup warning: linux part

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 2/2] prevent soft lockup warning: linux part
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 9 Aug 2007 17:34:13 +0900
Delivery-date: Thu, 09 Aug 2007 01:31:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070809082927.GB23813%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070809081831.GA23813%yamahata@xxxxxxxxxxxxx> <20070809082927.GB23813%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1186648381 -32400
# Node ID b28786127bf9a973f8b8ac1f47ec469012c1d168
# Parent  840b9df48b6a4f0f569963dba01885bde2946b6b
prevent soft lockup when domain destroy. linux part.
repeat domain destroy hypercall until success.
PATCHNAME: prevent_soft_lockup_linux_part

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 840b9df48b6a -r b28786127bf9 arch/ia64/xen/xcom_privcmd.c
--- a/arch/ia64/xen/xcom_privcmd.c      Tue Aug 07 09:37:41 2007 +0100
+++ b/arch/ia64/xen/xcom_privcmd.c      Thu Aug 09 17:33:01 2007 +0900
@@ -305,7 +305,13 @@ xencomm_privcmd_domctl(privcmd_hypercall
                return ret;
        }
 
-       ret = xencomm_arch_hypercall_domctl (op_desc);
+       ret = xencomm_arch_hypercall_domctl(op_desc);
+       if (kern_op.cmd == XEN_DOMCTL_destroydomain) {
+               while (ret == -EAGAIN) {
+                       schedule(); /* prevent softlock up message */
+                       ret = xencomm_arch_hypercall_domctl(op_desc);
+               }
+       }
 
        /* FIXME: should we restore the handle?  */
        if (copy_to_user(user_op, &kern_op, sizeof(xen_domctl_t)))


-- 
yamahata

Attachment: 155_b28786127bf9_prevent_soft_lockup_linux_part.patch
Description: Text Data

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