On 2/4/22 20:18, David Matlack wrote:
On Fri, Feb 04, 2022 at 06:57:01AM -0500, Paolo Bonzini wrote:__kvm_mmu_new_pgd looks at the MMU's root_level and shadow_root_level via fast_pgd_switch.Those checks are just for performance correct (to skip iterating through the list of roots)? Either way, it's probably worth including a Fixes tag below.
There's no bug because __kvm_mmu_new_pgd is passed a correct new_role. But it's unnecessarily complex as shown by patches 7 and 9.
Paolo