Commit fbdb81c
committed
feat(vmm): add offset/gpa conversion functions
This is because vCPUs reason in GPAs while the secret-free UFFD
protocol is guest_memfd-offset-based.
Note that offset_to_gpa is not used yet, but will likely be needed to
support async PF to pass the GPA to a new ioctl when notifying KVM of a
fault resolution.
Signed-off-by: Nikita Kalyazin <kalyazin@amazon.com>1 parent 57812bf commit fbdb81c
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
| |||
964 | 970 | | |
965 | 971 | | |
966 | 972 | | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
967 | 1000 | | |
968 | 1001 | | |
969 | 1002 | | |
| |||
0 commit comments