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

[Xen-ia64-devel] A patch to remove dcr.63 for running_on_xen indicator


  • To: "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>
  • From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
  • Date: Tue, 16 Aug 2005 12:21:04 +0800
  • Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 16 Aug 2005 04:19:24 +0000
  • List-id: DIscussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • Thread-index: AcWYaSAKDEpFITOYRmOMPwJnp5q9pQAADjIQADg3V1AALzs7IAAA1IBAAJG2/gAAqDjkoAAncIggAKI8w2A=
  • Thread-topic: A patch to remove dcr.63 for running_on_xen indicator

Dan:
        The attached patch is target to remove dcr.63 bit usage to
indicate running_on_xen or not, thus avoid future IPF spec violation
(reserve bits should be 0 base on spec).
        Please comments.
        BTW, currnet XENLinux tree (yesterday) can't run on native
environment for some reason. So I only test that on XEN environment.
Eddie



diff -r 84356b86adf0 arch/ia64/xen/xensetup.S
--- a/arch/ia64/xen/xensetup.S  Fri Aug 12 21:15:45 2005
+++ b/arch/ia64/xen/xensetup.S  Mon Aug 15 18:44:21 2005
@@ -16,12 +16,17 @@
 
        .text
 GLOBAL_ENTRY(early_xen_setup)
-       mov r8=cr.dcr;;
-       extr.u r8=r8,63,1
+       rsm psr.ic
+       movl r9=XSI_BASE;;
+       ld8.s r8=[r9];;
+       tnat.nz.unc p6,p7=r8    // p6=1: No share memory
+(p6)   mov r8=0
+(p7)   mov r8=1                // on XEN
        movl r9=running_on_xen;;
        st4 [r9]=r8;;
-       cmp.ne p7,p0=r8,r0;;
 (p7)   movl r10=xen_ivt;;
 (p7)   mov cr.iva=r10
+       ssm psr.ic
+       srlz.d
        br.ret.sptk.many rp;;
 END(xen_init)

Attachment: running_on_xen_det.patch.xeno
Description: running_on_xen_det.patch.xeno

Attachment: running_on_xen_det.patch.hv
Description: running_on_xen_det.patch.hv

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

 


Rackspace

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