Skip to contentSkip to conversation

missing vtsc counter for hvm guests

PATCH New Dan Magenheimer 1 participant 1 message Oct 6, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 missing vtsc counter for hvm guests

This counter line got dropped somewhere along the way. Confused me a bit because the count was always being reported as 0.

xen/arch/x86/hvm/hvm.c +1 -0
diff -r 10cfcbef68ee xen/arch/x86/hvm/hvm.c
@@ -202,6 +202,7 @@ u64 hvm_get_guest_tsc(struct vcpu *v)
     if ( v->domain->arch.vtsc )
     {
         tsc = hvm_get_guest_time(v);
+        v->domain->arch.vtsc_kerncount++;
     }
     else
     {