mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: vtd: allocate drhd_dev_scope based on board file
Determine the size of drhd_dev_scope based on DRHD_MAX_DEVSCOPE_COUNT in board file instead of hardcoding. The current default value 16 will be used if it is not defined in board file to keep compatibility, a warning will be raised in this case. Tracked-On: #8494 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
committed by
acrnsi-robot
parent
65f84d6ae6
commit
5c351bee0f
@@ -473,7 +473,7 @@ static inline uint16_t dma_frcd_up_sid(uint64_t up_sid)
|
||||
}
|
||||
|
||||
#define MAX_DRHDS DRHD_COUNT
|
||||
#define MAX_DRHD_DEVSCOPES 16U
|
||||
#define MAX_DRHD_DEVSCOPES DRHD_MAX_DEVSCOPE_COUNT
|
||||
|
||||
#define DMAR_CONTEXT_TRANSLATION_TYPE_TRANSLATED 0x00U
|
||||
#define DMAR_CONTEXT_TRANSLATION_TYPE_RESERVED 0x01U
|
||||
|
Reference in New Issue
Block a user