Paolo Bonzini e5ed0fb010 KVM: x86/mmu: split cpu_role from mmu_role
Snapshot the state of the processor registers that govern page walk into
a new field of struct kvm_mmu.  This is a more natural representation
than having it *mostly* in mmu_role but not exclusively; the delta
right now is represented in other fields, such as root_level.

The nested MMU now has only the CPU role; and in fact the new function
kvm_calc_cpu_role is analogous to the previous kvm_calc_nested_mmu_role,
except that it has role.base.direct equal to !CR0.PG.  For a walk-only
MMU, "direct" has no meaning, but we set it to !CR0.PG so that
role.ext.cr0_pg can go away in a future patch.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-29 12:49:53 -04:00
..
2022-03-26 12:19:04 -07:00
2022-03-31 11:59:03 -07:00
2022-03-23 18:03:08 -07:00
2022-01-16 15:53:00 +02:00
2021-11-01 21:17:39 -07:00
2022-04-03 12:15:47 -07:00
2022-03-28 17:29:53 -07:00
2022-03-28 14:32:39 -07:00
2021-12-11 09:09:45 +01:00