mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
qemu: remove multidev in qemu/fsdev parameter on arm64
As the current qemu of arm64 is so old, the new multidev parameter in 9pfsdev is not supported on arm64, so disabled it temporarily. Fixes:#466 Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
@@ -464,12 +464,21 @@ func generic9PVolume(volume types.Volume, nestedRun bool) govmmQemu.FSDevice {
|
||||
}
|
||||
}
|
||||
|
||||
func genericAppend9PVolume(devices []govmmQemu.Device, volume types.Volume, nestedRun bool) (govmmQemu.FSDevice, error) {
|
||||
d := generic9PVolume(volume, nestedRun)
|
||||
return d, nil
|
||||
}
|
||||
|
||||
func (q *qemuArchBase) append9PVolume(devices []govmmQemu.Device, volume types.Volume) ([]govmmQemu.Device, error) {
|
||||
if volume.MountTag == "" || volume.HostPath == "" {
|
||||
return devices, nil
|
||||
}
|
||||
|
||||
d := generic9PVolume(volume, q.nestedRun)
|
||||
d, err := genericAppend9PVolume(devices, volume, q.nestedRun)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
devices = append(devices, d)
|
||||
return devices, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user