Commit f4e7403
KVM: arm64: nv: Handle VNCR_EL2-triggered faults backed by guest_memfd
Handle faults for memslots backed by guest_memfd in arm64 nested
virtualization triggered by VNCR_EL2.
* Introduce is_gmem output parameter to kvm_translate_vncr(), indicating
whether the faulted memory slot is backed by guest_memfd.
* Dispatch faults backed by guest_memfd to kvm_gmem_get_pfn().
* Update kvm_handle_vncr_abort() to handle potential guest_memfd errors.
Some of the guest_memfd errors need to be handled by userspace instead
of attempting to (implicitly) retry by returning to the guest.
Suggested-by: Marc Zyngier <[email protected]>
Reviewed-by: Marc Zyngier <[email protected]>
Signed-off-by: Fuad Tabba <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent a7b57e0 commit f4e7403
1 file changed
Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | | - | |
| 1175 | + | |
1176 | 1176 | | |
| 1177 | + | |
1177 | 1178 | | |
1178 | 1179 | | |
1179 | 1180 | | |
| |||
1216 | 1217 | | |
1217 | 1218 | | |
1218 | 1219 | | |
1219 | | - | |
1220 | | - | |
| 1220 | + | |
| 1221 | + | |
1221 | 1222 | | |
1222 | 1223 | | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1223 | 1239 | | |
1224 | 1240 | | |
1225 | 1241 | | |
| |||
1292 | 1308 | | |
1293 | 1309 | | |
1294 | 1310 | | |
1295 | | - | |
| 1311 | + | |
1296 | 1312 | | |
1297 | 1313 | | |
1298 | 1314 | | |
1299 | 1315 | | |
1300 | 1316 | | |
1301 | 1317 | | |
1302 | | - | |
| 1318 | + | |
1303 | 1319 | | |
1304 | 1320 | | |
1305 | 1321 | | |
1306 | 1322 | | |
1307 | 1323 | | |
1308 | | - | |
1309 | 1324 | | |
1310 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1311 | 1335 | | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1312 | 1341 | | |
1313 | 1342 | | |
1314 | 1343 | | |
| |||
0 commit comments