HV:modified vm_description and vm_hw_info memebers' type

transfer num_vcpus,exp_num_vcpus to uint16_t.
transfer vm_hw_num_cores to uint16_t.

Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi
2018-07-10 11:05:40 +08:00
committed by lijinxia
parent 39159ebe16
commit 0ccd74b947
8 changed files with 20 additions and 19 deletions

View File

@@ -469,7 +469,7 @@ int ept_mmap(struct vm *vm, uint64_t hpa,
uint64_t gpa, uint64_t size, uint32_t type, uint32_t prot)
{
struct map_params map_params;
int i;
uint16_t i;
struct vcpu *vcpu;
/* Setup memory map parameters */
@@ -516,7 +516,7 @@ int ept_update_mt(struct vm *vm, uint64_t hpa,
{
struct map_params map_params;
struct vcpu *vcpu;
int i;
uint16_t i;
/* Setup memory map parameters */
map_params.page_table_type = PTT_EPT;