]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: MMU: Inherit a shadow page's guest level count from vcpu setup
authorAvi Kivity <avi@redhat.com>
Sun, 21 Dec 2008 17:20:09 +0000 (19:20 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 21 Dec 2008 17:20:09 +0000 (19:20 +0200)
commite54dd18d96ed3bee625becbadb95f732220a17d9
tree9332cce0c3cb26456a1e7dafc76af2082679d994
parentec7808079ed4978009bcade9d21db99e2a193dcf
KVM: MMU: Inherit a shadow page's guest level count from vcpu setup

Instead of "calculating" it on every shadow page allocation, set it once
when switching modes, and copy it when allocating pages.

This doesn't buy us much, but sets up the stage for inheriting more
information related to the mmu setup.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c