X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_halt.c;h=5316edc965437f1aa6edcde1c5b701f4430139c1;hb=bbef87558ec784cd99c72b759aa78a8c47aa5fd3;hp=0975cc3643aa4aeb6988d50370d3f69715f93149;hpb=e70e95962c26832628d586e07f9cd1a2e1852d72;p=palacios.git diff --git a/palacios/src/palacios/svm_halt.c b/palacios/src/palacios/svm_halt.c index 0975cc3..5316edc 100644 --- a/palacios/src/palacios/svm_halt.c +++ b/palacios/src/palacios/svm_halt.c @@ -25,15 +25,20 @@ #include #include -// From GeekOS -void Yield(void); + + +#ifndef DEBUG_HALT +#undef PrintDebug +#define PrintDebug(fmt, args...) +#endif + // // This should trigger a #GP if cpl!=0, otherwise, yield to host // -int handle_svm_halt(struct guest_info * info) +int v3_handle_svm_halt(struct guest_info * info) { if (info->cpl!=0) { v3_raise_exception(info, GPF_EXCEPTION); @@ -52,7 +57,7 @@ int handle_svm_halt(struct guest_info * info) PrintDebug("GeekOS Yield\n"); rdtscll(yield_start); - Yield(); + V3_Yield(); rdtscll(yield_stop);