Commit cafe7e5
KVM: arm64: vgic: Check that new ITEs could be saved in guest memory
Try to improve the predictability of ITS save/restores by failing
commands that would lead to failed saves. More specifically, fail any
command that adds an entry into an ITS table that is not in guest
memory, which would otherwise lead to a failed ITS save ioctl. There
are already checks for collection and device entries, but not for
ITEs. Add the corresponding check for the ITT when adding ITEs.
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220510001633.552496-2-ricarkol@google.com1 parent b2d229d commit cafe7e5
1 file changed
Lines changed: 35 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
897 | 909 | | |
898 | 910 | | |
899 | 911 | | |
| |||
908 | 920 | | |
909 | 921 | | |
910 | 922 | | |
911 | | - | |
912 | | - | |
913 | | - | |
| 923 | + | |
914 | 924 | | |
915 | 925 | | |
916 | 926 | | |
| |||
933 | 943 | | |
934 | 944 | | |
935 | 945 | | |
936 | | - | |
937 | 946 | | |
938 | 947 | | |
939 | 948 | | |
940 | 949 | | |
941 | | - | |
| 950 | + | |
942 | 951 | | |
943 | 952 | | |
944 | 953 | | |
| |||
964 | 973 | | |
965 | 974 | | |
966 | 975 | | |
967 | | - | |
968 | 976 | | |
969 | 977 | | |
970 | 978 | | |
971 | 979 | | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
977 | 1000 | | |
978 | 1001 | | |
979 | 1002 | | |
| |||
1061 | 1084 | | |
1062 | 1085 | | |
1063 | 1086 | | |
1064 | | - | |
| 1087 | + | |
1065 | 1088 | | |
1066 | 1089 | | |
1067 | 1090 | | |
| |||
0 commit comments