[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Add privilege check back for hypercall



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.