commit | 6be517c56229cfe57f3fd57b0e731fb0bef257b5 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Mon Dec 12 17:19:39 2022 +0000 |
committer | Alan Stokes <alanstokes@google.com> | Wed Dec 14 11:54:49 2022 +0000 |
tree | 29eb3a55e5021d4629490127dde1e7cc0ded0e59 | |
parent | aa6113bcb7bd620c96e3ac480fb76b02e0353e7c [diff] |
Move config validation to the builder And remove it from the constructor. This allows us to fail earlier and reject invalid values immediately. In some cases throw IllegalArgumentException etc rather than the checked VirtualMachineException, following API guidelines. Don't allow memory or encrypted storage size of 0 to be specified explicitly. Use the builder when deserializing, to ensure we validate there too. Fix one test to match (we throw the exception at a different place). Bug: 261037705 Test: atest MicrodroidTests Change-Id: If788a1832f9718fa6713f35cb869517d5d7c8a34
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.