]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
xen/pci: solve compilation error on ARM with HAS_PCI enabled
authorRahul Singh <rahul.singh@arm.com>
Fri, 27 Nov 2020 17:07:50 +0000 (18:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Nov 2020 17:07:50 +0000 (18:07 +0100)
commitf7d7d53f6464cff94ead4c15d21e79ce4d9173f5
tree87507f73c027651aaac058df23beff9fa8cfe7a8
parentf7e77e55d33b7e52477d65f4c5e67281384b650f
xen/pci: solve compilation error on ARM with HAS_PCI enabled

If mem-sharing, mem-paging, or log-dirty functionality is not enabled
for architecture when HAS_PCI is enabled, the compiler will throw an
error.

Move code to x86 specific file to fix compilation error.

Also, modify the code to use likely() in place of unlikley() for each
condition to make code more optimized.

No functional change intended.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/pci.c
xen/drivers/passthrough/x86/iommu.c
xen/include/xen/iommu.h