Enable PCI passthru for HVM guest
PATCH 4/4 Enable PCI passthru for HVM guest
4-ht1100.patch: fixup to ht1100 chipset detection
Signed-off-by Wei Wang <[email protected]>
xen/arch/x86/hvm/svm/amd_iommu/Makefile +1 -0
@@ -2,3 +2,4 @@ obj-y += amd-iommu-init.o obj-y += amd-iommu-init.o obj-y += amd-iommu-map.o obj-y += pci-amd-iommu.o +obj-y += ht1100.o
xen/arch/x86/hvm/svm/amd_iommu/amd-iommu-detect.c +4 -0
@@ -224,6 +224,10 @@ int __init scan_for_iommu(iommu_detect_c {int bus, dev, error =0 ; +#if ENABLE_HT1100 +ht1100_fixup (); +#endif +for ( bus =0 ; bus <PCI_MAX_BUS_COUNT && !error; ++bus ) {for ( dev =0 ; dev <PCI_MAX_DEV_COUNT && !error; ++dev )
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h +4 -0
@@ -80,6 +80,10 @@ void flush_command_buffer(struct amd_iom/* find iommu for bdf */ struct amd_iommu *find_iommu_for_device (int bus,int devfn); +#if ENABLE_HT1100 +void __init ht1100_fixup (void ); +#endif +static inline u32 get_field_from_reg_u32 (u32 reg_value,u32 mask,u32 shift) {u32 field;
xen/arch/x86/hvm/svm/amd_iommu/ht1100.c new file +167 -0
167 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel