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] Add privilege check back for hyper

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Add privilege check back for hypercall
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Jan 2007 21:11:00 -0800
Delivery-date: Thu, 18 Jan 2007 21:14:00 -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@xxxxxxxxxxxx
# Date 1168971764 25200
# Node ID 24ce556e30498c3de229517aded4aefd4ac7c1d7
# Parent  7d8670a30445e50fad19a0885113376245727f65
[IA64] Add privilege check back for hypercall

hypercall is allowed when cpl=2

Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx>
---
 xen/arch/ia64/xen/ivt.S |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 7d8670a30445 -r 24ce556e3049 xen/arch/ia64/xen/ivt.S
--- a/xen/arch/ia64/xen/ivt.S   Tue Jan 16 10:40:37 2007 -0700
+++ b/xen/arch/ia64/xen/ivt.S   Tue Jan 16 11:22:44 2007 -0700
@@ -1104,7 +1104,8 @@ ENTRY(break_fault)
        adds r23=IA64_VCPU_BREAKIMM_OFFSET,r22
        ;;
        ld4 r23=[r23];;
-       cmp4.eq p6,p7=r23,r17                   // Xen-reserved breakimm?
+       cmp4.eq p6,p0=r23,r17;;                 // Xen-reserved breakimm?
+       cmp.eq.and p6,p0=2,r19        
 (p6)   br.spnt.many fast_hypercall
        ;;
        br.sptk.many fast_break_reflect

_______________________________________________
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] Add privilege check back for hypercall, Xen patchbot-unstable <=