mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +00:00
hv: remove the constraint "MMU and EPT must both support large page or not"
There're some virtual platform which doesn't meet this constraint. So remove this constraint. Tracked-On: #6329 Signed-off-by: Fei Li <fei1.li@intel.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include <types.h>
|
||||
#include <asm/lib/atomic.h>
|
||||
#include <asm/cpufeatures.h>
|
||||
#include <asm/pgtable.h>
|
||||
#include <asm/cpu_caps.h>
|
||||
#include <asm/mmu.h>
|
||||
@@ -72,7 +73,7 @@ static inline bool ppt_large_page_support(enum _page_table_level level, __unused
|
||||
if (level == IA32E_PD) {
|
||||
support = true;
|
||||
} else if (level == IA32E_PDPT) {
|
||||
support = pcpu_has_vmx_ept_vpid_cap(VMX_EPT_1GB_PAGE);
|
||||
support = pcpu_has_cap(X86_FEATURE_PAGE1GB);
|
||||
} else {
|
||||
support = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user