Commit 6080308
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 <[email protected]>1 parent 6cdf60a commit 6080308
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
326 | 332 | | |
327 | 333 | | |
328 | 334 | | |
| |||
473 | 479 | | |
474 | 480 | | |
475 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
476 | 509 | | |
477 | 510 | | |
478 | 511 | | |
| |||
0 commit comments