All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/HAP: use %pv printk() format where suitable
@ 2015-10-30 17:50 Jan Beulich
  2015-10-30 19:13 ` Andrew Cooper
  2015-11-02 16:39 ` George Dunlap
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Beulich @ 2015-10-30 17:50 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap, Andrew Cooper

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/mm/hap/hap.c
+++ b/xen/arch/x86/mm/hap/hap.c
@@ -671,8 +671,7 @@ static int hap_page_fault(struct vcpu *v
 {
     struct domain *d = v->domain;
 
-    HAP_ERROR("Intercepted a guest #PF (%u:%u) with HAP enabled.\n",
-              d->domain_id, v->vcpu_id);
+    HAP_ERROR("Intercepted a guest #PF (%pv) with HAP enabled\n", v);
     domain_crash(d);
     return 0;
 }
@@ -692,8 +691,7 @@ static int hap_invlpg(struct vcpu *v, un
         return 1;
     }
 
-    HAP_ERROR("Intercepted a guest INVLPG (%u:%u) with HAP enabled.\n",
-              v->domain->domain_id, v->vcpu_id);
+    HAP_ERROR("Intercepted a guest INVLPG (%pv) with HAP enabled\n", v);
     domain_crash(v->domain);
     return 0;
 }




[-- Attachment #2: x86-HAP-guest-id.patch --]
[-- Type: text/plain, Size: 845 bytes --]

x86/HAP: use %pv printk() format where suitable

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/mm/hap/hap.c
+++ b/xen/arch/x86/mm/hap/hap.c
@@ -671,8 +671,7 @@ static int hap_page_fault(struct vcpu *v
 {
     struct domain *d = v->domain;
 
-    HAP_ERROR("Intercepted a guest #PF (%u:%u) with HAP enabled.\n",
-              d->domain_id, v->vcpu_id);
+    HAP_ERROR("Intercepted a guest #PF (%pv) with HAP enabled\n", v);
     domain_crash(d);
     return 0;
 }
@@ -692,8 +691,7 @@ static int hap_invlpg(struct vcpu *v, un
         return 1;
     }
 
-    HAP_ERROR("Intercepted a guest INVLPG (%u:%u) with HAP enabled.\n",
-              v->domain->domain_id, v->vcpu_id);
+    HAP_ERROR("Intercepted a guest INVLPG (%pv) with HAP enabled\n", v);
     domain_crash(v->domain);
     return 0;
 }

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-02 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-30 17:50 [PATCH] x86/HAP: use %pv printk() format where suitable Jan Beulich
2015-10-30 19:13 ` Andrew Cooper
2015-11-02 16:39 ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.