blob: 20ab7223c36ae3a2e1d99380e06844d13276e882 [file] [log] [blame]
# 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.
# Create the runtime directory for removable media and MyFiles. Set its ugid
# to 655360:656360, which corresponds to root:system on the Android side.
d= /run/arcvm/media 0755 655360 656360
# Create the directory for mojo proxy.
d= /run/arcvm/mojo 0770 crosvm crosvm
# Create the directory for android-data bind mount.
d= /run/arcvm/android-data 0770 crosvm 655360
d= /run/arcvm/android-data/mount 0770 crosvm 655360
# Create the directory mounted as /var/run/arc/testharness.
# ugid 656360:656360 maps to system:system on the Android side.
d= /run/arcvm/testharness 0770 656360 656360
# Create directories for APK Cache. APK cache is located at
# /var/run/arc/apkcache on guest side.
# ugid 656360:656360 maps to system:system on the Android side.
# /mnt/stateful_partition/unencrypted/apkcache is the directory where
# the cached files are stored. The location of this directory is
# inherited from ARC P, where it is created in arc_setup:
# http://cs/chromeos_public/src/platform2/arc/setup/arc_setup.cc?l=1523&rcl=d968662f948f87ebb4b3f353cd78c6674f0c9a3d
# /run/arcvm/apkcache is the bind mount point of the
# /mnt/stateful_partition/unencrypted/apkcache
d= /mnt/stateful_partition/unencrypted/apkcache 700 656360 656360
d= /run/arcvm/apkcache 700 656360 656360
# Set the mode for ARCVM CGroups(arcvm and arcvm-vcpus) CFS throttling
# to user+group writeable with user as root and group as crosvm.
#
# Core-scheduling is enabled on crosvm and its vcpu threads, but the device
# processes do not enable core-scheduling. Having a mix of core-scheduling
# enabled and disabled tasks on the same cgroup causes performance degradation
# and hence we seperate it into 2 groups. crosvm and vcpu threads are grouped
# into arcvm-vcpus cgroup and devices are grouped into arcvm cgroup.
d= /sys/fs/cgroup/cpu/arcvm 0770 root crosvm
z= /sys/fs/cgroup/cpu/arcvm/cpu.cfs_period_us 0664 root crosvm
z= /sys/fs/cgroup/cpu/arcvm/cpu.cfs_quota_us 0664 root crosvm
z= /sys/fs/cgroup/cpu/arcvm/cpu.shares 0664 root crosvm
d= /sys/fs/cgroup/cpu/arcvm-vcpus 0770 root crosvm
z= /sys/fs/cgroup/cpu/arcvm-vcpus/cpu.cfs_period_us 0664 root crosvm
z= /sys/fs/cgroup/cpu/arcvm-vcpus/cpu.cfs_quota_us 0664 root crosvm
z= /sys/fs/cgroup/cpu/arcvm-vcpus/cpu.shares 0664 root crosvm
# crosvm needs write permission on cgroup tasks file to move the processes
# to ARCVM cgroups(arcvm and arcvm-vcpus).
z= /sys/fs/cgroup/cpu/arcvm/tasks 0664 root crosvm
z= /sys/fs/cgroup/cpu/arcvm-vcpus/tasks 0664 root crosvm