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] More hyperprivops (slow for now)

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] More hyperprivops (slow for now)
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Wed, 15 Jun 2005 20:26:42 +0000
Delivery-date: Sun, 19 Jun 2005 18:03:40 +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 Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1709.1.10, 2005/06/15 14:26:42-06:00, djm@xxxxxxxxxxxxxxx

        More hyperprivops (slow for now)
        Signed-off-by: Dan Magenheimer <dan.magenheimer@xxxxxx>



 privop.c  |   25 ++++++++++++++++++++++++-
 process.c |    2 +-
 2 files changed, 25 insertions(+), 2 deletions(-)


diff -Nru a/xen/arch/ia64/privop.c b/xen/arch/ia64/privop.c
--- a/xen/arch/ia64/privop.c    2005-06-19 14:04:48 -04:00
+++ b/xen/arch/ia64/privop.c    2005-06-19 14:04:48 -04:00
@@ -748,10 +748,16 @@
 #define HYPERPRIVOP_ITC_D              0x5
 #define HYPERPRIVOP_ITC_I              0x6
 #define HYPERPRIVOP_SSM_I              0x7
-#define HYPERPRIVOP_MAX                        0x7
+#define HYPERPRIVOP_GET_IVR            0x8
+#define HYPERPRIVOP_GET_TPR            0x9
+#define HYPERPRIVOP_SET_TPR            0xa
+#define HYPERPRIVOP_EOI                        0xb
+#define HYPERPRIVOP_SET_ITM            0xc
+#define HYPERPRIVOP_MAX                        0xc
 
 char *hyperpriv_str[HYPERPRIVOP_MAX+1] = {
        0, "rfi", "rsm.dt", "ssm.dt", "cover", "itc.d", "itc.i", "ssm.i",
+       "=ivr", "=tpr", "tpr=", "eoi", "itm=",
        0
 };
 
@@ -796,6 +802,23 @@
                return 1;
            case HYPERPRIVOP_SSM_I:
                (void)vcpu_set_psr_i(v);
+               return 1;
+           case HYPERPRIVOP_GET_IVR:
+               (void)vcpu_get_ivr(v,&val);
+               regs->r8 = val;
+               return 1;
+           case HYPERPRIVOP_GET_TPR:
+               (void)vcpu_get_tpr(v,&val);
+               regs->r8 = val;
+               return 1;
+           case HYPERPRIVOP_SET_TPR:
+               (void)vcpu_set_tpr(v,regs->r8);
+               return 1;
+           case HYPERPRIVOP_EOI:
+               (void)vcpu_set_eoi(v,0L);
+               return 1;
+           case HYPERPRIVOP_SET_ITM:
+               (void)vcpu_set_itm(v,regs->r8);
                return 1;
        }
        return 0;
diff -Nru a/xen/arch/ia64/process.c b/xen/arch/ia64/process.c
--- a/xen/arch/ia64/process.c   2005-06-19 14:04:48 -04:00
+++ b/xen/arch/ia64/process.c   2005-06-19 14:04:48 -04:00
@@ -754,7 +754,7 @@
                vcpu_set_gr(current,8,-1L);
                break;
            default:
-               printf("ia64_handle_break: bad ssc code %lx, 
iip=%p\n",ssc,regs->cr_iip);
+               printf("ia64_handle_break: bad ssc code %lx, iip=%p, 
b0=%p\n",ssc,regs->cr_iip,regs->b0);
                break;
        }
        vcpu_increment_iip(current);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] More hyperprivops (slow for now), BitKeeper Bot <=