#include <i386/eflags.h>
#include <i386/seg.h>
-#ifndef DEBUG
-#include <debug.h>
-#endif
-
#define VMX_FAIL_INVALID -1
#define VMX_FAIL_VALID -2
#define VMX_SUCCEED 0
".word %P0 \n\t"
".code32 \n\t"
"5:"
- :: "i" (KERNEL_CS)
+ :: "i" (KERNEL32_CS)
);
}
__vmxoff(void)
{
int result;
+#if defined (__x86_64__)
+ __VMXOFF(result);
+#else
if (ml_is64bit()) {
/* don't put anything between these lines! */
enter_64bit_mode();
} else {
__VMXOFF(result);
}
+#endif
return result;
}
__vmxon(addr64_t *v)
{
int result;
+#if defined (__x86_64__)
+ __VMXON(v, result);
+#else
if (ml_is64bit()) {
/* don't put anything between these lines! */
enter_64bit_mode();
} else {
__VMXON(v, result);
}
+#endif
return result;
}