Avi Kivity wrote: > Han, Weidong wrote: >> When user wants to assign device with IOMMU, but IOMMU is not >> enabled, add warning messages to prompt user this situation, and >> return error. Or device will be assigned but it cannot work. >> > > If the device has does not do DMA (say a serial port) then it can be > assigned. Can we check the device for dma capability and allow this > special case? Do you have any hint to check it? This warning be triggered only when user wants to assign device with IOMMU. If user doesn't want to use IOMMU to assign device, he can use "-pcidevice host=xx:yy.z,dma=none". Regards, Weidong -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html