-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arc: Add ArcVmDataMigrationStrategy policy
This policy will be used to control the data migration strategy for ARC VM devices migrating from virtio-fs to virtio-blk. Currently the policy supports only two values i.e. 0 (default) which means do not show the migration UI and 1 which means to show the migration UI and let the user decide. We can add more values in the future to customize the migration flow. Bug: b/288615363 Test: deploy to DUT and verify new policy in chrome://policy Test: verify the perf in chrome://prefs-internals Test: override the policy by placing a json file in /etc/opt/chrome/policies/managed/ and verify the updated policy in chrome://policy BYPASS_POLICY_COMPATIBILITY_CHECK=Backporting the policy (cherry picked from commit ca54eb4) Change-Id: I204ddf360c97777f4104a22706075ab637f146be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4642778 Reviewed-by: Victor-Gabriel Savu <vsavu@google.com> Auto-Submit: Muhammad Hasan Khan <mhasank@chromium.org> Commit-Queue: Muhammad Hasan Khan <mhasank@chromium.org> Reviewed-by: Youkichi Hosoi <youkichihosoi@chromium.org> Reviewed-by: Josh Horwich <jhorwich@chromium.org> Reviewed-by: Bartosz Fabianowski <bartfab@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1162285} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4644304 Reviewed-by: Alexander Hendrich <hendrich@chromium.org> Cr-Commit-Position: refs/branch-heads/5845@{#195} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Showing
8 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...licy/resources/templates/policy_definitions/Miscellaneous/ArcVmDataMigrationStrategy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
caption: Migration strategy for ARC VM Data Migration | ||
desc: |- | ||
Setting the policy specifies the action to take when the user's ARC data directory was created with virtio-fs. Unless virtio-fs data is migrated to virtio-blk, Android apps might run slower on ARC VM. | ||
Setting the policy to: | ||
* <ph name="DO_NOT_PROMPT">DoNotPrompt</ph> means do not ask the user to go through the migration flow. This is the default value when policy is unset. | ||
* <ph name="PROMPT">Prompt</ph> (or an unsupported value) means that, at sign-in, user is prompted to go through the data migration flow. This can take up to 10 minutes. | ||
This policy only applies to ARM devices migrating to ARCVM. | ||
device_only: false | ||
default: 0 | ||
example_value: 1 | ||
features: | ||
dynamic_refresh: false | ||
per_profile: false | ||
items: | ||
- caption: Do not prompt users to migrate. | ||
name: DoNotPrompt | ||
value: 0 | ||
- caption: Prompt users to migrate. | ||
name: Prompt | ||
value: 1 | ||
owners: | ||
- youkichihosoi@chromium.org | ||
- mhasank@chromium.org | ||
- arc-commercial@google.com | ||
schema: | ||
enum: | ||
- 0 | ||
- 1 | ||
type: integer | ||
supported_on: | ||
- chrome_os:114- | ||
tags: [] | ||
type: int-enum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters