Merge pull request #179 from Jakob-Naucke/iommu-platform

qemu: Fix iommu_platform for CCW
This commit is contained in:
Julio Montes 2021-08-19 07:52:15 -05:00 committed by GitHub
commit 68676b43a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1435,6 +1435,9 @@ func (vhostuserDev VhostUserDevice) QemuFSParams(config *Config) []string {
deviceParams = append(deviceParams, "versiontable=/dev/shm/fuse_shared_versions")
}
if vhostuserDev.Transport.isVirtioCCW(config) {
if config.Knobs.IOMMUPlatform {
deviceParams = append(deviceParams, "iommu_platform=on")
}
deviceParams = append(deviceParams, fmt.Sprintf("devno=%s", vhostuserDev.DevNo))
}
if vhostuserDev.Transport.isVirtioPCI(config) && vhostuserDev.ROMFile != "" {