mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
dfc4b88040
By default virtio-IOMMU is disabled. It can be enabled per pass-through device. Sample command lines: default: virtio IOMMU disabled on pass-through device: --vfio=/sys/bus/pci/devices/0000:00:02.0 Explicitly disable virtio IOMMU: --vfio=/sys/bus/pci/devices/0000:00:02.0,iommu=off Enable virtio IOMMU on the desired pass-through device: --vfio=/sys/bus/pci/devices/0000:00:02.0,iommu=on BUG=b:181736020 TEST=passthru one device with iommu=on TEST=passthru two devices with iommu=on from different VFIO group TEST=passthru two devices with iommu=on from same VFIO group TEST=passthru one device with iommu=on and another device with iommu=off Change-Id: Id74d2210f774a90ba5e83671e76e061cb8fec758 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2757276 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: David Stevens <stevensd@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org>
13 lines
392 B
Text
13 lines
392 B
Text
# Copyright 2021 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|
|
|
|
prctl: arg0 == PR_SET_NAME
|
|
open: return ENOENT
|
|
openat: return ENOENT
|
|
|
|
# 0x3B71: VFIO_IOMMU_MAP_DMA
|
|
# 0x3B72: VFIO_IOMMU_UNMAP_DMA
|
|
ioctl: arg1 == 0x3B71 || arg1 == 0x3B72
|