Is there shadow page table cache during context switch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all:
         Recently i am looking at the code of the implementation of
shadow page table of kvm. There is one thing that i am confused. Is
there implementation for caching the shadow page table during context
switch? From the code, when there is action of setting cr3 in the
guest os, it will call new_cr3 which will free the mmu roots. When
entering the guest again, because the root pages are invalid page now,
it will load mmu and allocate roots again. So for every context
switch, the shadow page table will be re-constructed. Is that right?

Thanks

-- 
Zhongshu
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux