diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-02-10 07:30:31 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-29 12:49:17 -0400 |
commit | 39e7e2bf321ac7784823e61abcbdf1459aeaee94 (patch) | |
tree | 198eaf1a553d7ce15712a2b59b8d2ef19aa99c26 /arch/x86/kvm/svm/nested.c | |
parent | 82ffa13f7933cdc9aa3d22c9bc5c8d9c9f610af1 (diff) | |
download | linux-39e7e2bf321ac7784823e61abcbdf1459aeaee94.tar.gz linux-39e7e2bf321ac7784823e61abcbdf1459aeaee94.tar.bz2 linux-39e7e2bf321ac7784823e61abcbdf1459aeaee94.zip |
KVM: x86/mmu: pull computation of kvm_mmu_role_regs to kvm_init_mmu
The init_kvm_*mmu functions, with the exception of shadow NPT,
do not need to know the full values of CR0/CR4/EFER; they only
need to know the bits that make up the "role". This cleanup
however will take quite a few incremental steps. As a start,
pull the common computation of the struct kvm_mmu_role_regs
into their caller: all of them extract the struct from the vcpu
as the very first step.
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
0 files changed, 0 insertions, 0 deletions