Skip to content

Commit 9e91f14

Browse files
ZideChen0acrnsi
authored andcommitted
hv: correctly grant DRHD register access rights to hypervisor
Need to call hv_access_memory_region_update() explicitly for DRHD registers to correctly grant access rights for hypervisor. Currently, other hv_access_memory_region_update() calls happen to cover the DRHD addresses for currently supported platforms. Tracked-On: #3194 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
1 parent c71cf75 commit 9e91f14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hypervisor/arch/x86/vtd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ static int32_t register_hrhd_units(void)
213213
drhd_rt->index = i;
214214
drhd_rt->drhd = &platform_dmar_info->drhd_units[i];
215215
drhd_rt->dmar_irq = IRQ_INVALID;
216+
217+
hv_access_memory_region_update(drhd_rt->drhd->reg_base_addr, PAGE_SIZE);
218+
216219
ret = dmar_register_hrhd(drhd_rt);
217220
if (ret != 0) {
218221
break;

0 commit comments

Comments
 (0)