Commit 8ef228c
KVM: x86/mmu: Set mmu->sync_page as NULL for direct paging
mmu->sync_page for direct paging is never called.
And both mmu->sync_page and mm->invlpg only make sense in shadow paging.
Setting mmu->sync_page as NULL for direct paging makes it consistent
with mm->invlpg which is set NULL for the case.
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Link: https://lore.kernel.org/r/20230216154115.710033-5-jiangshanlai@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 51dddf6 commit 8ef228c
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1789 | 1789 | | |
1790 | 1790 | | |
1791 | 1791 | | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | 1792 | | |
1799 | 1793 | | |
1800 | 1794 | | |
| |||
4510 | 4504 | | |
4511 | 4505 | | |
4512 | 4506 | | |
4513 | | - | |
| 4507 | + | |
4514 | 4508 | | |
4515 | 4509 | | |
4516 | 4510 | | |
| |||
5198 | 5192 | | |
5199 | 5193 | | |
5200 | 5194 | | |
5201 | | - | |
| 5195 | + | |
5202 | 5196 | | |
5203 | 5197 | | |
5204 | 5198 | | |
| |||
0 commit comments