mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
fix wrong initialization of EFER
This commit is contained in:
parent
907a40b74a
commit
020339c32a
1 changed files with 2 additions and 1 deletions
|
@ -343,7 +343,8 @@ static void filter_cpuid(struct kvm_cpuid2 *kvm_cpuid)
|
|||
static void setup_system_64bit(struct kvm_sregs *sregs)
|
||||
{
|
||||
sregs->cr0 |= X86_CR0_PE;
|
||||
sregs->efer |= EFER_LME;
|
||||
sregs->cr4 |= X86_CR4_PAE;
|
||||
sregs->efer |= EFER_LME|EFER_LMA;
|
||||
}
|
||||
|
||||
static void setup_system_page_tables(struct kvm_sregs *sregs, uint8_t *mem)
|
||||
|
|
Loading…
Add table
Reference in a new issue