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-devel

[Xen-devel] [PATCH] xenalyze: Always zero inflight data on a vmexit

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xenalyze: Always zero inflight data on a vmexit
From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Date: Mon, 22 Nov 2010 12:39:29 +0000
Cc: george.dunlap@xxxxxxxxxxxxx
Delivery-date: Mon, 22 Nov 2010 04:40:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

diff -r 61d71976769e -r 2a404c7a4fa2 xenalyze.c
--- a/xenalyze.c        Mon Nov 22 12:15:00 2010 +0000
+++ b/xenalyze.c        Mon Nov 22 12:38:56 2010 +0000
@@ -4963,6 +4963,7 @@
         init_hvm_data(h, v);
 
     h->vmexit_valid=1;
+    bzero(&h->inflight, sizeof(h->inflight));
 
     if(ri->event == TRC_HVM_VMEXIT64) {
         if(v->guest_paging_levels != 4)
@@ -5037,11 +5038,9 @@
         switch(h->exit_reason)
         {
         case EXIT_REASON_EXCEPTION_NMI:
-            bzero(&h->inflight.pf_xen, sizeof(h->inflight.pf_xen));
             h->post_process = hvm_exception_nmi_generic_postprocess;
             break;
         case EXIT_REASON_APIC_ACCESS:
-            bzero(&h->inflight.pf_xen, sizeof(h->inflight.pf_xen));
             h->post_process = hvm_apic_access_postprocess;
         default:
             ;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xenalyze: Always zero inflight data on a vmexit, George Dunlap <=