Commit 95fb5b0
kvm: x86/mmu: Support MMIO in the TDP MMU
In order to support MMIO, KVM must be able to walk the TDP paging
structures to find mappings for a given GFN. Support this walk for
the TDP MMU.
Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell
machine. This series introduced no new failures.
This series can be viewed in Gerrit at:
https://linux-review.googlesource.com/c/virt/kvm/kvm/+/2538
v2: Thanks to Dan Carpenter and kernel test robot for finding that root
was used uninitialized in get_mmio_spte.
Signed-off-by: Ben Gardon <bgardon@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Message-Id: <20201014182700.2888246-19-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 46044f7 commit 95fb5b0
3 files changed
Lines changed: 72 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3479 | 3479 | | |
3480 | 3480 | | |
3481 | 3481 | | |
3482 | | - | |
3483 | | - | |
3484 | | - | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
3485 | 3487 | | |
3486 | 3488 | | |
3487 | | - | |
3488 | | - | |
3489 | | - | |
3490 | | - | |
| 3489 | + | |
| 3490 | + | |
3491 | 3491 | | |
3492 | | - | |
3493 | 3492 | | |
3494 | 3493 | | |
3495 | 3494 | | |
3496 | | - | |
3497 | | - | |
| 3495 | + | |
3498 | 3496 | | |
3499 | 3497 | | |
| 3498 | + | |
3500 | 3499 | | |
3501 | 3500 | | |
3502 | 3501 | | |
3503 | | - | |
3504 | 3502 | | |
3505 | 3503 | | |
3506 | 3504 | | |
3507 | 3505 | | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
3508 | 3538 | | |
3509 | 3539 | | |
3510 | 3540 | | |
3511 | 3541 | | |
3512 | 3542 | | |
3513 | | - | |
3514 | | - | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
3515 | 3546 | | |
3516 | 3547 | | |
3517 | | - | |
3518 | | - | |
3519 | 3548 | | |
3520 | 3549 | | |
3521 | 3550 | | |
3522 | | - | |
| 3551 | + | |
3523 | 3552 | | |
3524 | | - | |
3525 | | - | |
3526 | | - | |
| 3553 | + | |
3527 | 3554 | | |
3528 | 3555 | | |
3529 | | - | |
| 3556 | + | |
| 3557 | + | |
3530 | 3558 | | |
3531 | 3559 | | |
3532 | 3560 | | |
| |||
3538 | 3566 | | |
3539 | 3567 | | |
3540 | 3568 | | |
3541 | | - | |
| 3569 | + | |
3542 | 3570 | | |
3543 | 3571 | | |
3544 | 3572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
1128 | 1131 | | |
1129 | 1132 | | |
1130 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
0 commit comments