acrn-hypervisor/hypervisor/include/arch/x86
Junjie Mao f347d15e7d hv: cpu: use the physical address limit from CPUID when available
Per SDM Vol. 2:

    If CPUID.80000008H:EAX[7:0] is supported, the maximum physical address
    number supported should come from this field.

This patch gets the maximum physical address number from CPUID leaf
0x80000008 and calculates the physical address mask when the leaf is
available.

Currently ACRN does not support platforms w/o this leaf and will panic
on such platforms.

Also call get_cpu_capabilities() earlier since the physical address mask
is required for initializing paging.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-05-15 17:25:24 +08:00
..
guest hv: vlapic: simple vlapic_rd/wr input 2018-05-15 17:19:38 +08:00
apicreg.h Fix compiler warnings when building for UEFI 2018-05-15 17:19:38 +08:00
assign.h ptdev: refine the functions name & code position 2018-05-15 17:19:38 +08:00
cpu.h hv: cpu: use the physical address limit from CPUID when available 2018-05-15 17:25:24 +08:00
cpuid.h hv: cpu: use the physical address limit from CPUID when available 2018-05-15 17:25:24 +08:00
gdt.h initial import 2018-05-11 14:44:28 +08:00
hv_arch.h add data structure in vm for enable trusty feature 2018-05-15 17:19:36 +08:00
idt.h initial import 2018-05-11 14:44:28 +08:00
intr_ctx.h initial import 2018-05-11 14:44:28 +08:00
io.h initial import 2018-05-11 14:44:28 +08:00
ioapic.h initial import 2018-05-11 14:44:28 +08:00
irq.h uefi: remove old interrupt injection method 2018-05-15 17:19:37 +08:00
lapic.h hv: lapic: export write_lapic_reg32 2018-05-15 17:19:38 +08:00
mmu.h hv: cpu: use the physical address limit from CPUID when available 2018-05-15 17:25:24 +08:00
msr.h initial import 2018-05-11 14:44:28 +08:00
multiboot.h UEFI: change the efi_ctx passing method 2018-05-15 17:19:39 +08:00
softirq.h initial import 2018-05-11 14:44:28 +08:00
timer.h initial import 2018-05-11 14:44:28 +08:00
trusty.h trusty: add key_info for trusty bring-up 2018-05-15 17:19:39 +08:00
vmexit.h initial import 2018-05-11 14:44:28 +08:00
vmx.h hv: pass-through xsave feature to guests 2018-05-15 17:25:23 +08:00
vtd.h initial import 2018-05-11 14:44:28 +08:00
zeropage.h vm load: fix bug in loading kernel 2018-05-15 17:19:37 +08:00