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] Fix incorrect re-enablement of interrupts (found by Tris

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix incorrect re-enablement of interrupts (found by Tristan Gingold)
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Oct 2005 08:32:16 +0000
Delivery-date: Wed, 12 Oct 2005 08:35:43 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 djm@xxxxxxxxxxxxxxx
# Node ID f81e637e7741424448108ab242e6fd472e583641
# Parent  98fb7e03a886148f687f84ce0e475f98be1e7ffc
Fix incorrect re-enablement of interrupts (found by Tristan Gingold)

diff -r 98fb7e03a886 -r f81e637e7741 xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Mon Oct  3 22:27:27 2005
+++ b/xen/arch/ia64/xen/vcpu.c  Fri Oct  7 15:37:41 2005
@@ -1043,9 +1043,10 @@
 void vcpu_safe_set_itm(unsigned long val)
 {
        unsigned long epsilon = 100;
+       unsigned long flags;
        UINT64 now = ia64_get_itc();
 
-       local_irq_disable();
+       local_irq_save(flags);
        while (1) {
 //printf("*** vcpu_safe_set_itm: Setting itm to %lx, itc=%lx\n",val,now);
                ia64_set_itm(val);
@@ -1053,7 +1054,7 @@
                val = now + epsilon;
                epsilon <<= 1;
        }
-       local_irq_enable();
+       local_irq_restore(flags);
 }
 
 void vcpu_set_next_timer(VCPU *vcpu)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix incorrect re-enablement of interrupts (found by Tristan Gingold), Xen patchbot -unstable <=