Skip to contentSkip to conversation

xenalyze: Always zero inflight data on a vmexit

PATCH New George Dunlap 1 participant 1 message Nov 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenalyze: Always zero inflight data on a vmexit

xenalyze.c +1 -2
diff -r 61d71976769e -r 2a404c7a4fa2 xenalyze.c
@@ -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:
             ;