mmu: refine the checking of entry present

- change the input param of check_page_table_present from struct map_params
  to page_table_type
- check EPT present bits misconfiguration in check_page_table_present
- change var "table_present" to more suitable name "entry_present"

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Tian, Kevin <kevin.tian@intel.com>
This commit is contained in:
Jason Chen CJ
2018-04-11 11:00:53 +08:00
committed by Jack Ren
parent 60425f91b4
commit 2d6c75408e
2 changed files with 56 additions and 28 deletions

View File

@@ -280,6 +280,7 @@ enum _page_table_level {
enum _page_table_present {
PT_NOT_PRESENT = 0,
PT_PRESENT = 1,
PT_MISCFG_PRESENT = 2,
};
/* Page size */