hax: Add HAX_DISABLE_UNRESTRICTED_GUEST env. variable.
After this patch is applied, if HAX_DISABLE_UNRESTRICTED_GUEST
is defined to either '1' or 'true' in the environment, the VT-x
"unrestricted guest" CPU feature will be ignored.
This will force the emulator to use HAX emulation inside a
single TCG vCPU thread (while unrestricted guest mode allows
one to run multiple vCPUs on multiple cores, and uses a different
CPU emulation code path).
This is useful to debug the code path used when running the
emulator on pre-2010 CPUs, which don't support unrestricted
1 file changed