Skip to contentSkip to conversation

level in kvm_mmu_page_role

DISCUSSION Sanidhya Kashyap 2 participants 2 messages Feb 13, 2012 – Feb 14, 2012 KVM

lore
Share & tools
lore
#0 lore raw

I have been going through the kvm code but didn't get the significance of level in kvm_mmu_page_role. So, it would be nice if anyone can explain it what is its use?

Thanks,
Sanidhya

#1 lore raw
Quoted 5 lines · Sanidhya Kashyap

I have been going through the kvm code but didn't get the significance of level in kvm_mmu_page_role. So, it would be nice if anyone can explain it what is its use?

It's the page table level. Level 1 contains page table entries pointing to 4k pages. Level 2 contains page directory entries pointing to level 1 page tables, or pointers to 2M pages, and so forth.

Signature · 1 line
error compiling committee.c: too many arguments to function