mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 04:02:05 +00:00
HV: initialize IOMMU before PCI device discovery
In later patches we use information from DMAR tables to guide discovery and initialization of PCI devices. Tracked-On: #4134 Signed-off-by: Alexander Merritt <alex.merritt@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
ea131eea41
commit
810169ad20
@ -224,12 +224,12 @@ void init_pcpu_post(uint16_t pcpu_id)
|
|||||||
timer_init();
|
timer_init();
|
||||||
setup_notification();
|
setup_notification();
|
||||||
setup_posted_intr_notification();
|
setup_posted_intr_notification();
|
||||||
init_pci_pdev_list();
|
|
||||||
|
|
||||||
if (init_iommu() != 0) {
|
if (init_iommu() != 0) {
|
||||||
panic("failed to initialize iommu!");
|
panic("failed to initialize iommu!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init_pci_pdev_list(); /* init_iommu must come before this */
|
||||||
ptdev_init();
|
ptdev_init();
|
||||||
|
|
||||||
if (init_sgx() != 0) {
|
if (init_sgx() != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user