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-changelog

[Xen-changelog] [xen-unstable] [IA64] Fix a bug in INIT handler

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Fix a bug in INIT handler
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Nov 2006 00:40:16 +0000
Delivery-date: Tue, 14 Nov 2006 16:40:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 77bf1d1628a77bd9a207aeb99d2cbb400671a109
# Parent  37a8dbe24201b0e81e89d652aabf3f8f1952bfeb
[IA64] Fix a bug in INIT handler

I found a bug in INIT handler.  This bug sometimes occurs on
the following conditions.
 1. Create a domVTi
 2. Run a user program on domVTi
 3. Push to INIT switch

When this bug occurs, Xen shows error messages.

This bug occurs if a vCPU of domVTi runs on a pCPU where its
INIT interruption have not occurred yet.  It is because
"arch._thread.on_ustack" member in vcpu structure is always
zero and, accordingly, ar.bspstore doesn't switch to Xen RBS
in the MINSTATE_START_SAVE_MIN_PHYS.

This patch adds a checking of ipsr.vm bit into the
MINSTATE_START_SAVE_MIN_PHYS for domVTi.  If ipsr.vm bit is 1,
ar.bspstore is switched to Xen RBS.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 xen/arch/ia64/linux-xen/minstate.h |    2 ++
 1 files changed, 2 insertions(+)

diff -r 37a8dbe24201 -r 77bf1d1628a7 xen/arch/ia64/linux-xen/minstate.h
--- a/xen/arch/ia64/linux-xen/minstate.h        Tue Oct 31 22:25:17 2006 -0700
+++ b/xen/arch/ia64/linux-xen/minstate.h        Tue Oct 31 22:25:21 2006 -0700
@@ -38,6 +38,8 @@
  */
 #ifdef XEN
 # define MINSTATE_START_SAVE_MIN_PHYS                                          
                \
+(pKStk)        tbit.z pKStk,pUStk=r29,IA64_PSR_VM_BIT;                         
                        \
+       ;;                                                                      
                \
 (pKStk)        movl r3=THIS_CPU(ia64_mca_data);;                               
                        \
 (pKStk)        tpa r3 = r3;;                                                   
                        \
 (pKStk)        ld8 r3 = [r3];;                                                 
                        \

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Fix a bug in INIT handler, Xen patchbot-unstable <=