diff options
author | Lai Jiangshan <[email protected]> | 2023-02-17 07:53:18 +0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-03-16 17:19:53 -0700 |
commit | ed335278bd1282641748b2b0ca23291c457038ef (patch) | |
tree | d8272893185cd5044581101b78a701581af0eda4 /lib/mpi/mpi-mod.c | |
parent | 2c86c444e2751a867bfa6a059a80ba67ef9d441a (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions