Commit ed33527
KVM: x86/mmu: Allow the roots to be invalid in FNAME(invlpg)
Don't assume the current root to be valid, just check it and remove
the WARN().
Also move the code to check if the root is valid into FNAME(invlpg)
to simplify the code.
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Link: https://lore.kernel.org/r/20230216235321.735214-2-jiangshanlai@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 2c86c44 commit ed33527
2 files changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5787 | 5787 | | |
5788 | 5788 | | |
5789 | 5789 | | |
5790 | | - | |
5791 | | - | |
| 5790 | + | |
5792 | 5791 | | |
5793 | 5792 | | |
5794 | 5793 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
866 | | - | |
867 | | - | |
| 866 | + | |
868 | 867 | | |
869 | | - | |
870 | 868 | | |
871 | 869 | | |
872 | 870 | | |
| |||
0 commit comments