mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
hv: debug: mark the mmio address for npk log as hv owned
Otherwise, page fault will be triggered when writing npk log to these mmio addresses. Tracked-On: #2589 Signed-off-by: Zhi Jin <zhi.jin@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
1de4450e9f
commit
2fa810076b
@ -93,6 +93,10 @@ void npk_log_setup(struct hv_npk_log_param *param)
|
||||
for (i = 0U; i < phys_cpu_num; i++) {
|
||||
per_cpu(npk_log_ref, i) = 0U;
|
||||
}
|
||||
hv_access_memory_region_update(base,
|
||||
phys_cpu_num * (HV_NPK_LOG_REF_MASK
|
||||
+ 1U) * sizeof(struct npk_chan));
|
||||
|
||||
}
|
||||
param->res = HV_NPK_LOG_RES_OK;
|
||||
npk_log_enabled = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user