dm: passthrough opregion to uos gpu

This commit is contained in:
Zhipeng Gong
2018-10-18 09:23:09 +08:00
committed by Zhao Yakui
parent 3a0f83ed73
commit e5b21a2e90
3 changed files with 24 additions and 0 deletions

View File

@@ -298,6 +298,10 @@ acrn_prepare_zeropage(struct vmctx *ctx, int setup_size)
/* Create/add e820 table entries in zeropage */
zeropage->e820_nentries = acrn_create_e820_table(ctx, zeropage->e820);
if (opregion_start != 0) {
zeropage->e820_nentries = add_e820_entry(zeropage->e820, zeropage->e820_nentries,
opregion_start, OPREGION_SIZE, E820_TYPE_RESERVED);
}
return 0;
}