Skip to content
Commit a770f6f2 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@redhat.com>
parent 22ccb142
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment