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

[Xen-changelog] [xen-unstable] Tools: Make xen-access test compile in 32 bits mode



# HG changeset patch
# User Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
# Date 1328797733 28800
# Node ID 62404735e437320bfdfdc302eabe752ba32a6171
# Parent  85c14cbc8f7823f4a41933c526b808176fe32891
Tools: Make xen-access test compile in 32 bits mode

Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 85c14cbc8f78 -r 62404735e437 tools/tests/Makefile
--- a/tools/tests/Makefile      Thu Feb 09 06:20:49 2012 -0800
+++ b/tools/tests/Makefile      Thu Feb 09 06:28:53 2012 -0800
@@ -11,9 +11,7 @@
 SUBDIRS-y += regression
 endif
 SUBDIRS-y += x86_emulator
-ifneq ($(XEN_TARGET_ARCH),x86_32)
 SUBDIRS-y += xen-access
-endif
 
 .PHONY: all clean install distclean
 all clean distclean: %: subdirs-%
diff -r 85c14cbc8f78 -r 62404735e437 tools/tests/xen-access/xen-access.c
--- a/tools/tests/xen-access/xen-access.c       Thu Feb 09 06:20:49 2012 -0800
+++ b/tools/tests/xen-access/xen-access.c       Thu Feb 09 06:28:53 2012 -0800
@@ -600,14 +600,15 @@
             case MEM_EVENT_REASON_VIOLATION:
                 rc = xc_hvm_get_mem_access(xch, domain_id, req.gfn, &access);
 
-                printf("PAGE ACCESS: %c%c%c for GFN %lx (offset %06lx) gla 
%016lx (vcpu %d)\n",
-                        req.access_r ? 'r' : '-',
-                        req.access_w ? 'w' : '-',
-                        req.access_x ? 'x' : '-',
-                        req.gfn,
-                        req.offset,
-                        req.gla,
-                        req.vcpu_id);
+                printf("PAGE ACCESS: %c%c%c for GFN %"PRIx64" (offset %06"
+                       PRIx64") gla %016"PRIx64" (vcpu %d)\n",
+                       req.access_r ? 'r' : '-',
+                       req.access_w ? 'w' : '-',
+                       req.access_x ? 'x' : '-',
+                       req.gfn,
+                       req.offset,
+                       req.gla,
+                       req.vcpu_id);
 
                 if ( default_access != after_first_access )
                     rc = xc_hvm_set_mem_access(xch, domain_id, 
after_first_access, req.gfn, 1);
@@ -617,8 +618,10 @@
                 rsp.p2mt = req.p2mt;
                 break;
             case MEM_EVENT_REASON_INT3:
-                printf("INT3: rip=%016lx, gfn=%lx (vcpu %d)\n", req.gla, 
req.gfn,
-                        req.vcpu_id);
+                printf("INT3: rip=%016"PRIx64", gfn=%"PRIx64" (vcpu %d)\n", 
+                       req.gla, 
+                       req.gfn,
+                       req.vcpu_id);
 
                 /* Reinject */
                 rc = xc_hvm_inject_trap(xch, domain_id, req.vcpu_id, 3, -1, 0);

_______________________________________________
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®.