]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Introduce kvm_init_shadow_mmu helper function
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:30:44 +0000 (17:30 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:32 +0000 (10:52 +0200)
commit4f748026ad3ddba8f45df87f062bb9dc6a1d83d2
treeb02791abecb83a1b9772b95c333581087ab622f5
parent359bb7672c8c5c5b81af5646dd33877e3ae6c4e4
KVM: MMU: Introduce kvm_init_shadow_mmu helper function

Some logic of the init_kvm_softmmu function is required to
build the Nested Nested Paging context. So factor the
required logic into a seperate function and export it.
Also make the whole init path suitable for more than one mmu
context.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h