DM: change VM_SYSMEM/VM_MMIO to VM_MEMMAP_SYSMEM/VM_MEMMAP_MMIO

these MACROs are only for MEMMAP

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ
2018-04-18 11:49:18 +08:00
committed by Jack Ren
parent 25ef14edac
commit 4f6bdee0c5
2 changed files with 10 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ struct vm_memseg {
uint64_t gpa;
};
#define VM_SYSMEM 0
#define VM_MEMMAP_SYSMEM 0
#define VM_MMIO 1
/**
@@ -126,7 +126,7 @@ struct vm_memmap {
/** @type: memory mapping type */
uint32_t type;
/** @using_vma: using vma_base to get vm0_gpa,
* only for type == VM_SYSTEM
* only for type == VM_MEMMAP_SYSMEM
*/
uint32_t using_vma;
/** @gpa: user OS guest physical start address of memory mapping */
@@ -138,7 +138,8 @@ struct vm_memmap {
*/
uint64_t hpa;
/** @vma_base: service OS user virtual start address of
* memory, only for type == VM_SYSMEM && using_vma == true
* memory, only for type == VM_MEMMAP_SYSMEM &&
* using_vma == true
*/
uint64_t vma_base;
};