1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

enable virtual machine extensions

This commit is contained in:
Stefan Lankes 2015-12-08 22:25:14 +01:00
parent 8f4fdc9559
commit b36e758e9e

View file

@ -273,6 +273,8 @@ int cpu_detection(void) {
cr4 |= CR4_PGE;
if (has_fsgsbase())
cr4 |= CR4_FSGSBASE;
if (has_vmx())
cr4 |= CR4_VMXE;
cr4 &= ~CR4_TSD; // => every privilege level is able to use rdtsc
write_cr4(cr4);