X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_halt.c;h=a3749c1de907fa8c455e8058b4ab5b40209d7a93;hb=8ee31494ea28d1756689574fb69791746daac3f3;hp=299421cffd32076f8a76ac1b4efeb2f6b4852713;hpb=c502aac6baf363d633aca6ec883b05476634e854;p=palacios.releases.git diff --git a/palacios/src/palacios/svm_halt.c b/palacios/src/palacios/svm_halt.c index 299421c..a3749c1 100644 --- a/palacios/src/palacios/svm_halt.c +++ b/palacios/src/palacios/svm_halt.c @@ -12,11 +12,21 @@ int handle_svm_halt(struct guest_info * info) // What we will hackishly do instead is resume on any event // Plus is this totally GeekOS specific + ullong_t yield_start = 0; + ullong_t yield_stop = 0; + uint32_t gap = 0; + PrintDebug("GeekOS Yield\n"); + rdtscll(yield_start); Yield(); + rdtscll(yield_stop); + + + v3_update_time(info, yield_stop - yield_start); + gap = yield_stop - yield_start; - PrintDebug("GeekOS Yield Done\n"); + PrintDebug("GeekOS Yield Done (%d cycles)\n", gap); info->rip+=1;