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] Fix a bug in INIT handler

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] Fix a bug in INIT handler
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Tue, 31 Oct 2006 11:44:15 +0900
Delivery-date: Thu, 02 Nov 2006 13:48:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

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. (e.g.: attached 
file "INIT_handler_fault_messages.txt")

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>

Best regards,
 Kan

Attachment: INIT_handler_fault_messages.txt
Description: Text document

Attachment: minstate.patch
Description: Binary data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>