mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 12:49:24 +00:00
hv: Remove redundant get_dmar_info API calls
get_dmar_info API is called from multiple functions in vtd.c. This patch calls get_dmar_info once during init and uses the cached info during runtime. Tracked-On: #2657 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Xie, Nanlin
parent
308d4e8c4e
commit
b49df10a23
@@ -130,6 +130,10 @@ static struct dmar_info sbl_dmar_info = {
|
||||
.drhd_units = drhd_info_array,
|
||||
};
|
||||
|
||||
/**
|
||||
* @post return != NULL
|
||||
* @post return->drhd_count > 0U
|
||||
*/
|
||||
struct dmar_info *get_dmar_info(void)
|
||||
{
|
||||
return &sbl_dmar_info;
|
||||
|
Reference in New Issue
Block a user