HV:transfer page_table_type type

struct map_params's member page_table_type is enum _page_table_type,
transferred it.

Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi
2018-06-29 13:12:47 +08:00
committed by lijinxia
parent b67836f722
commit 31cdf8c7e8
2 changed files with 13 additions and 11 deletions

View File

@@ -190,7 +190,7 @@ void invept(struct vcpu *vcpu)
_invept(INVEPT_TYPE_ALL_CONTEXTS, desc);
}
bool check_mmu_1gb_support(int page_table_type)
bool check_mmu_1gb_support(enum _page_table_type page_table_type)
{
bool status = false;
@@ -201,7 +201,8 @@ bool check_mmu_1gb_support(int page_table_type)
return status;
}
static inline uint32_t check_page_table_present(int page_table_type,
static inline uint32_t
check_page_table_present(enum _page_table_type page_table_type,
uint64_t table_entry)
{
if (page_table_type == PTT_EPT) {
@@ -227,7 +228,8 @@ static inline uint32_t check_page_table_present(int page_table_type,
static uint32_t map_mem_region(void *vaddr, void *paddr,
void *table_base, uint64_t attr, uint32_t table_level,
int table_type, enum mem_map_request_type request_type)
enum _page_table_type table_type,
enum mem_map_request_type request_type)
{
uint64_t table_entry;
uint32_t table_offset;