AMD IOMMU: Fix boot output on non-iommu system
PATCH 1/1 AMD IOMMU: Fix boot output on non-iommu system
Hi,
A better boot output for non-iommu system.
Thanks,
Wei
Signed-off-by Wei Wang <[email protected]>
Signature · 11 lines
AMD GmbH, Germany Operating System Research Center Legal Information: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34 85609 Dornach b. München Geschäftsführer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis München Registergericht München, HRB Nr. 43632
xen/drivers/passthrough/amd/pci_amd_iommu.c +4 -10
@@ -161,21 +161,15 @@ int amd_iov_detect(void) {INIT_LIST_HEAD (&amd_iommu_head); -if (amd_iommu_detect_acpi () !=0 ) - { -AMD_IOMMU_DEBUG ("Error detection\n" ); -return -ENODEV ; - } - -if ( !iommu_found () ) - { -printk ("AMD_IOV: IOMMU not found!\n" ); +if ( (amd_iommu_detect_acpi () !=0 ) || (iommu_found () ==0 ) ) + { +printk ("AMD-Vi: IOMMU not found!\n" );return -ENODEV ; }if (amd_iommu_init () !=0 ) { -AMD_IOMMU_DEBUG ("Error initialization\n" ); +printk ("Error initialization\n" );return -ENODEV ; }return 0 ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel