Commit 3fcc07ee authored by Yi-De Wu's avatar Yi-De Wu Committed by Todd Kjos
Browse files

FROMLIST: virt: geniezone: Add demand paging support



This page fault handler helps GenieZone hypervisor to do demand paging.
On a lower level translation fault, GenieZone hypervisor will first
check the fault GPA (guest physical address or IPA in ARM) is valid
e.g. within the registered memory region, then it will setup the
vcpu_run->exit_reason with necessary information for returning to
gzvm driver.

With the fault information, the gzvm driver looks up the physical
address and call the MT_HVC_GZVM_MAP_GUEST to request the hypervisor
maps the found PA to the fault GPA (IPA).

There is one exception, for protected vm, we will populate full VM's
memory region in advance in order to improve performance.

Change-Id: Ia295ef4c43201d731202d03e74889fa6403e7176
Signed-off-by: default avatarYingshiuan Pan <yingshiuan.pan@mediatek.com>
Signed-off-by: default avatarJerry Wang <ze-yu.wang@mediatek.com>
Signed-off-by: default avatarYi-De Wu <yi-de.wu@mediatek.com>
Bug: 301179926
Link: https://lore.kernel.org/all/20230919111210.19615-14-yi-de.wu@mediatek.com/
parent 6a1a3089
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment