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:
parent
8f4fdc9559
commit
b36e758e9e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue