Commit 0a8a5f2
committed
KVM: x86: Use standard mmu_notifier invalidate hooks for APIC access page
Now that KVM honors past and in-progress mmu_notifier invalidations when
reloading the APIC-access page, use KVM's "standard" invalidation hooks
to trigger a reload and delete the one-off usage of invalidate_range().
Aside from eliminating one-off code in KVM, dropping KVM's use of
invalidate_range() will allow common mmu_notifier to redefine the API to
be more strictly focused on invalidating secondary TLBs that share the
primary MMU's page tables.
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20230602011518.787006-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 878940b commit 0a8a5f2
4 files changed
Lines changed: 3 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1600 | 1600 | | |
1601 | 1601 | | |
1602 | 1602 | | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1603 | 1606 | | |
1604 | 1607 | | |
1605 | 1608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10435 | 10435 | | |
10436 | 10436 | | |
10437 | 10437 | | |
10438 | | - | |
10439 | | - | |
10440 | | - | |
10441 | | - | |
10442 | | - | |
10443 | | - | |
10444 | | - | |
10445 | | - | |
10446 | | - | |
10447 | | - | |
10448 | | - | |
10449 | | - | |
10450 | | - | |
10451 | | - | |
10452 | 10438 | | |
10453 | 10439 | | |
10454 | 10440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2237 | 2237 | | |
2238 | 2238 | | |
2239 | 2239 | | |
2240 | | - | |
2241 | | - | |
2242 | | - | |
2243 | 2240 | | |
2244 | 2241 | | |
2245 | 2242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 157 | | |
163 | 158 | | |
164 | 159 | | |
| |||
521 | 516 | | |
522 | 517 | | |
523 | 518 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | 519 | | |
537 | 520 | | |
538 | 521 | | |
| |||
892 | 875 | | |
893 | 876 | | |
894 | 877 | | |
895 | | - | |
896 | 878 | | |
897 | 879 | | |
898 | 880 | | |
| |||
0 commit comments