commit | d2f7ad12852f5e7b2f7debf5e5b5b931a93f29b1 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Thu Jun 29 11:48:29 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Thu Jul 06 16:03:46 2023 +0000 |
tree | eaa34c9b1d385d44f3142a9d5852cc8b380cf09a | |
parent | 887364660bf96ffa08ab51b991399c105b9a25ae [diff] |
vmbase: Only share if hyp has DYNAMIC_MEM_SHARE For correctness, always check that DYNAMIC_MEM_SHARE is supported by the hypervisor before calling its backend functions to share/unshare memory in MemorySharer. Note that Gunyah (only hyp without DYNAMIC_MEM_SHARE) already defines those functions as unimplemented!(), meaning that the logic surrounding the newly-introduced checks can be assumed to already prevent those functions from being called so that this patch should not result in any noticeable change. This also adds support for using MemorySharer (and therefore the VirtIO devices) on platforms that don't support DYNAMIC_MEM_SHARE but also don't provide a static swiotlb e.g. non-protected KVM. Test: atest DebugPolicyHostTests#testNoAdbInDebugPolicy_withDebugLevelNone_boots Test: atest rialto_test vmbase_example.integration_test Change-Id: I327000188faa3b8dd74c7029999729ef7516ef66
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.