mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-13 13:56:19 +00:00
hv: Build fix - ACRN partition mode
Patch to fix compile issue. Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
parent
c5dcb34f39
commit
925503ce36
@ -173,8 +173,9 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
|
|||||||
&vm_desc->GUID[0],
|
&vm_desc->GUID[0],
|
||||||
sizeof(vm_desc->GUID));
|
sizeof(vm_desc->GUID));
|
||||||
#ifdef CONFIG_PARTITION_MODE
|
#ifdef CONFIG_PARTITION_MODE
|
||||||
ept_mr_add(vm, vm_desc->start_hpa,
|
ept_mr_add(vm, (uint64_t *)vm->arch_vm.nworld_eptp,
|
||||||
0UL, vm_desc->mem_size, EPT_RWX|EPT_WB);
|
vm_desc->start_hpa, 0UL, vm_desc->mem_size,
|
||||||
|
EPT_RWX|EPT_WB);
|
||||||
init_vm_boot_info(vm);
|
init_vm_boot_info(vm);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@ static int vdev_pt_remap_bar(struct pci_vdev *vdev, uint32_t idx,
|
|||||||
|
|
||||||
if (new_base != 0U) {
|
if (new_base != 0U) {
|
||||||
/* Map the physical BAR in the guest MMIO space */
|
/* Map the physical BAR in the guest MMIO space */
|
||||||
error = ept_mr_add(vm,
|
error = ept_mr_add(vm, (uint64_t *)vm->arch_vm.nworld_eptp,
|
||||||
vdev->pdev.bar[idx].base, /* HPA */
|
vdev->pdev.bar[idx].base, /* HPA */
|
||||||
new_base, /*GPA*/
|
new_base, /*GPA*/
|
||||||
vdev->bar[idx].size,
|
vdev->bar[idx].size,
|
||||||
|
Loading…
Reference in New Issue
Block a user