Commit 69e2ba2e authored by Quentin Perret's avatar Quentin Perret Committed by Greg Kroah-Hartman
Browse files

ANDROID: KVM: arm64: Restrict host-to-hyp MMIO donations



Nothing currently prevents the donation of an MMIO region to the
hypervisor for backing e.g. guest stage-2 page-tables, tracing buffers,
hyp vm and vcpu metadata, or any other donation to EL2. However, the
only confirmed use-case for MMIO donations are for protecting the IOMMU
registers as well as for vendor module usage.

Restrict the donation of MMIO regions to these two paths only by
introducing a new helper function.

Bug: 264070847
Change-Id: I914508fb3e3547fcfabca8557bdf7948cb796099
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
parent 3f060ac3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment