pgd_alloc and [cd]tors

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

 



Jeremy Fitzhardinge wrote:
> Is there any real use in having a ctor/dtor for the pgd cache?  Given
> that all pgd allocation happens via pgd_alloc/pgd_free, why not just
> fold the [cd]tor in?
>
> I'm asking because Xen wants pgd[3] to be unshared in the PAE case, and
> it looks to me like the easiest way to handle that is by making
> pgd_alloc/free pv-ops and doing the appropriate thing in the Xen code. 
> Would need to sort out the vmalloc mapping replication as well, but I
> think that's pretty straightforward.
>   

Actually, vmalloc mapping replication is not quite straightforward - you 
have to replicate it under locks and track all pgds using pgd_list if 
you support large pages.

Zach


[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux