On Thu, Apr 14, 2022 at 5:32 PM Lai Jiangshan <jiangshanlai@xxxxxxxxx> wrote: > > All new kinds of sp added in this patchset are in the hash too. > I think role.guest_pae_root is needed to distinguish it from a sp for a level-3 guest page in a 4-level pagetable. Or just role.guest_root_level(or role.root_level) and it can replace role.passthrough_depth and role.guest_pae_root and role.pae_root. role.pae_root will be (role.root_level == 3 || role.root_level == 2) && role.level == 3 && (host is 32bit || !tdp_enabled)