Files
linux/arch
Quentin Perret 2c06d861a9 ANDROID: KVM: arm64: Don't update IOMMUs unnecessarily
When handling host stage-2 faults the hypervisor currently updates the
CPU _and_ IOMMUs page-tables. However, since we currently proactively
map accessible PA ranges into IOMMUs, updating them during stage-2
faults is unnecessary -- it only needs to be done during ownership
transitions. Optimize this by skipping the IOMMU updates from the host
memory abort path, which also reduces contention on the host stage-2
lock during boot and saves up to 1.1 sec of boot time on Pixel 6.

Bug: 232879742
Change-Id: Icb6f1b2d10de8cc2f976bbc94b9b79ad7aaa6135
Signed-off-by: Quentin Perret <qperret@google.com>
(cherry picked from commit 20c6e1ba55)
Signed-off-by: Mostafa Saleh <smostafa@google.com>
2022-11-24 12:41:32 +00:00
..
2022-11-03 23:59:15 +09:00
2022-11-15 16:38:36 +00:00
2022-09-24 10:01:09 +02:00
2022-11-16 10:04:35 +00:00
2022-11-15 16:38:36 +00:00
2022-11-16 10:04:35 +00:00
2022-11-16 10:04:35 +00:00
2022-11-02 08:51:19 +01:00