]>
git.saurik.com Git - apple/xnu.git/blob - tools/tests/testkext/testvmx.cpp
9 #if !(defined(__i386__) || defined(__x86_64__))
10 #error VMX only supported on i386/x86_64
13 #include <mach/boolean.h>
17 #define super IOService
18 OSDefineMetaClassAndStructors(testvmx
, super
);
21 testvmx::start( IOService
* provider
)
25 IOLog("%s\n", __PRETTY_FUNCTION__
);
27 if (!super::start(provider
)) {
31 IOLog("Attempting host_vmxon\n");
32 ret
= host_vmxon(FALSE
);
33 IOLog("host_vmxon: %d\n", ret
);
39 testvmx::stop( IOService
* provider
)
41 IOLog("%s\n", __PRETTY_FUNCTION__
);
43 super::stop(provider
);
45 IOLog("Attempting host_vmxoff\n");
47 IOLog("host_vmxoff called\n");