mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
Allow devices to perform runtime power management via VFIO_DEVICE_FEATURE IOCTL. BUG=b:194390621 TEST=host's VFIO_DEVICE_FEATURE can be triggered from guest Change-Id: Id649a1e5fe317dfb315f841a152ec8b81fab8e7c Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3822004 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Victor Ding <victording@chromium.org>
16 lines
488 B
Text
16 lines
488 B
Text
# Copyright 2019 The ChromiumOS Authors
|
|
# 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
|
|
|
|
# 0x3B6E: VFIO_DEVICE_SET_IRQS
|
|
# 0x3B71: VFIO_IOMMU_MAP_DMA
|
|
# 0x3B72: VFIO_IOMMU_UNMAP_DMA
|
|
# 0x3B75: VFIO_DEVICE_FEATURE
|
|
ioctl: arg1 == 0x3B6E || arg1 == 0x3B71 || arg1 == 0x3B72 || arg1 == 0x3B75
|
|
open: return ENOENT
|
|
openat: return ENOENT
|
|
pread64: 1
|
|
pwrite64: 1
|
|
prctl: arg0 == PR_SET_NAME
|