Enumsยง
Constantsยง
- BOOT_
GDT_ ๐OFFSET - BOOT_
IDT_ ๐OFFSET - EFER_
LMA ๐ - EFER_
LME ๐ - MTRR_
ENABLE ๐ - MTRR_
MEMTYPE_ ๐UC - MTRR_
MEMTYPE_ ๐WB - MTRR_
PHYS_ ๐BASE_ MSR - MTRR_
PHYS_ ๐MASK_ MSR - MTRR_
VAR_ ๐VALID - VAR_
MTRR_ ๐NUM_ MASK - X86_
CR0_ ๐PE - X86_
CR0_ ๐PG - X86_
CR4_ ๐PAE
Functionsยง
- configure_
segments_ and_ sregs - Configures the GDT, IDT, and segment registers for long mode.
- configure_
segments_ and_ sregs_ flat32 - Configures the GDT, IDT, and segment registers for 32-bit protected mode with paging disabled.
- count_
variable_ mtrrs - Returns the count of variable MTRR entries specified by the list of
msrs. - get_
max_ ๐len - get_
mtrr_ ๐pairs - get_
power_ ๐of_ two - is_
mtrr_ msr - Returns
trueif the given MSRidis a MTRR entry. - set_
default_ msrs - Returns the default value of MSRs at reset.
- set_
long_ mode_ msrs - Configure Model specific registers for long (64-bit) mode.
- set_
mtrr_ msrs - Returns a set of MSRs containing the MTRR configuration.
- setup_
page_ tables - Configures the system page tables and control registers for long mode with paging. Prepares identity mapping for the low 4GB memory.
- vcpu_
supported_ variable_ mtrrs - Returns the number of variable MTRR entries supported by
vcpu. - write_
gdt_ ๐table - write_
idt_ ๐value