tools/xen-access: Print gla valid/fault information
authorTamas K Lengyel <tamas.lengyel@zentific.com>
Wed, 13 Aug 2014 09:28:20 +0000 (11:28 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 8 Sep 2014 10:42:25 +0000 (11:42 +0100)
Extend the print-out of the memory violations to show gla valid/fault information.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/tests/xen-access/xen-access.c

index 090df5f6c42a69171fea531f2d3ef03b6e739d6a..6cb382d3b8234e268d15e6777586f9dd00529cf5 100644 (file)
@@ -566,13 +566,16 @@ int main(int argc, char *argv[])
                 }
 
                 printf("PAGE ACCESS: %c%c%c for GFN %"PRIx64" (offset %06"
-                       PRIx64") gla %016"PRIx64" (vcpu %d)\n",
+                       PRIx64") gla %016"PRIx64" (valid: %c; fault in gpt: %c; fault with gla: %c) (vcpu %u)\n",
                        req.access_r ? 'r' : '-',
                        req.access_w ? 'w' : '-',
                        req.access_x ? 'x' : '-',
                        req.gfn,
                        req.offset,
                        req.gla,
+                       req.gla_valid ? 'y' : 'n',
+                       req.fault_in_gpt ? 'y' : 'n',
+                       req.fault_with_gla ? 'y': 'n',
                        req.vcpu_id);
 
                 if ( default_access != after_first_access )